Doesn’t matter what the driver is doing. If you open a non overlapped handle, the io manager makes all io synchronous . It also serilaizes them so your driver will only see one io request at a time.
d
debt from my phone
-----Original Message-----
From: xxxxx@yahoo.com
Sent: Thursday, April 07, 2011 7:31 AM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] a quick question about DeviceIoControl…
Thank you all for your replays , @ peter i can not do that since the driver is queuing the IRPS
i am still confused a bit on this point “do i need to change the driver in order to do this?”
Can’t i do something like this in user mode or do i need to edit the driver code?
OVERLAPPED iostruct;
iostruct.hEvent = CreateEvent(NULL,TRUE,FALSE,NULL);
DWORD result = DeviceIoControl(Handetodevice,
IOCTL_CODE,
NULL,NULL,Buffer,
BufferLength,&BytesWritten,&iostruct);
WaitForSingleObject(iostruct.hEvent,INFINITE);
Thank you !!
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer