Is this so strange or difficult?
Damn, your not stomping your feet are you?
m.
----- Original Message -----
From: “Shadow”
> To: “Windows System Software Devs Interest List”
> Sent: Friday, July 28, 2006 7:27 AM
> Subject: Re[2]: [ntdev] strcpy in DDK
>> No.
>> The handle leads to a file which stores the data.
>> I want it to store data in a string variable.
>> I changed the device extension structure, so that there is no handle
>> now, just a string variable.
>>
>>
>> ---------------------------------------------------------------------
>> Hi, All.
>>
>> Need your help(due to my newbity in DDK).
>> I have a device driver, that I’m trying to modify.
>>
>> It sets up a devise extension, used to store data.
>> typedef struct _DEVICE_EXTENSION
>> {
>> …
>> HANDLE hLogFile;
>> …
>> }
>> hLogFile manages a log file created by ZwCreateFile.
>>
>> But I want it to store data in some string variable for further
>> operations.
>>
>> So, I’ve changed ‘HANDLE hLogFile’ to ‘char hLogFile[4096]’.
>>
>> After that I found where the code calls hLogFile.
>> Here it is:
>> char vals[3]={0};
>> …
>>
> ZwCreateFile(pDevExt->hLogFile,NULL,NULL,NULL,&io_status,&vals,strlen(vals),
> NULL,NULL);
>> And changed that to:
>> char vals[3]={0};
>> …
>> strcpy(pKeyboardDeviceExtension->hLogFile,vals);
>>
>> But after my changes the driver just crashes the system to reboot.
>>
>>
>> Any ideas?
>>
>> ---------------------------------------------------------------------
>>
>> > what data do u want to modify? The handle!!! — Questions? First
>> > check the Kernel Driver FAQ at
>> > http://www.osronline.com/article.cfm?id=256 To unsubscribe, visit
>> > the List Server section of OSR Online at
>> > http://www.osronline.com/page.cfm?name=ListServer
>>
>>
>>
>>
>> —
>> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>>
>> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer