From: Ed Lau [elau@midcore.com] Sent: Monday, February 12, 2001 12:49 PM To: NT Developers Interest List Subject: [ntdev] Re: How can i load driver from kernel mode You can use the (undocumented) call ZwLoadDriver(...) to load the driver and then use IoGetDeviceObjectPointer(...) to get a pointer to the driver's device object. This pointer can be used in calls to IoCallDriver(...) if you need that functionality. The call to ZwLoadDriver(...) will cause the loader to call the second driver's DriverEntry(...) function. The prototype for ZwLoadDriver() is: NTSYSAPI NTSTATUS NTAPI ZwLoadDriver(IN PUNICODE_STRING RegistryPath); where RegistryPath is in the form: \\Registry\\Machine\\System\\CurrentControlSet\\Services\\MyDriver The registry key for your driver must exist. Also, the call must be made while your first driver is at PASSIVE_LEVEL (such as during DriverEntry()). Of course, this is an undocumented function, so use it at your own risk. Ed Lau MidCore Software, Inc. 900 Straits Tpke Middlebury, CT 06762 ----- Original Message ----- From: Gladkov Vladimir To: NT Developers Interest List Sent: Monday, February 12, 2001 12:28 PM Subject: [ntdev] How can i load driver from kernel mode Hello All! Hope I'll be more lucky this time... How can I load another driver from within kernel mode? (I need something similar to CreateService in usermode) Thanks! --- You are currently subscribed to ntdev as: elau@midcore.com To unsubscribe send a blank email to leave-ntdev-2362O@lists.osr.com --- You are currently subscribed to ntdev as: GlennEverhart@FirstUSA.com To unsubscribe send a blank email to leave-ntdev-247T@lists.osr.com