Hi all :
Currently we are working on a bus driver, which have a driver interface
registered for application program to use. When the driver working on the
WinXP/Win2003, everything seems just fine. But when we tried the driver on
Win2K, something werid happens.
1.When application program uses CreateFile to grab the file handler to the
PDO we created, it always success.
2.If we close the handler and then grab the handler again, it still success,
and everything works fine.
3.We remove the PDO(turn off a device), then when the PDO is created again
(represent the same device), Application program can not use CreateFile to
get the file handle, ever. The only way to get the file handle is reboot the
PC.
Agani, this problem will not happen on WinXP and Win2003. Are there anything
I have to take a special care for Win2000 ?
Thanks
Smore
Are you managing the device interface state properly? Ie, are you
calling IoSetDeviceInterfaceState to FALSE on getting every remove and
setting it to TRUE on every START?
d
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Smore Hung
Sent: Monday, October 03, 2005 7:19 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] CreateFile : weird problem on Win2K
Hi all :
Currently we are working on a bus driver, which have a driver interface
registered for application program to use. When the driver working on
the
WinXP/Win2003, everything seems just fine. But when we tried the driver
on
Win2K, something werid happens.
1.When application program uses CreateFile to grab the file handler to
the
PDO we created, it always success.
2.If we close the handler and then grab the handler again, it still
success,
and everything works fine.
3.We remove the PDO(turn off a device), then when the PDO is created
again
(represent the same device), Application program can not use CreateFile
to
get the file handle, ever. The only way to get the file handle is reboot
the
PC.
Agani, this problem will not happen on WinXP and Win2003. Are there
anything
I have to take a special care for Win2000 ?
Thanks
Smore
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com