In 9x you can dynamically load a driver (certain types, at least) by doing
this:
File is driver.vxd
CreateFile(“\\.\driver”, 0, 0, 0, 0, FILE_FLAG_DELETE_ON_CLOSE, 0);
It may be required that your driver have an IOCTL interface, as that’s the
only type of driver I’ve tested this method against.
The FILE_FLAG_DELETE_ON_CLOSE will cause the driver to be dynamically
unloaded after you call CloseHandle on the handle you’re returned from
CreateFile.
I also have only tried this with .VXD’s so I’m not sure this will work for
.sys files.
This URL on msdn have more information:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/win9x/devio
_886c.asp
Hope that helps,
Matt Miller
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of kedar
Sent: Thursday, June 19, 2003 6:11 AM
To: NT Developers Interest List
Subject: [ntdev] loading a driver dynamically in windows98
Hai All,
I have a driver and an application which load driver dynamically using
StartService() function the application works fine in windows2000 and
fails in windows98 SE. MSDN says the StartService works only for windowsNT
or later.
Could anyone of you please tell me how to load a driver(.sys) file
dynamically in windows98 SE.
Any kind of information would be helpful.
Thanks in advance.
Regards,
Kedar.
You are currently subscribed to ntdev as: xxxxx@positivenetworks.net
To unsubscribe send a blank email to xxxxx@lists.osr.com