From: Miguel Monteiro [jmonteiro@criticalsoftware.com] Sent: Monday, April 09, 2001 6:55 AM To: NT Developers Interest List Subject: [ntdev] How do I start a kernel-mode driver at boot time Hi, Until now I've been installing/starting kernel-mode driver experiments using local Service Control Manager (SCM) services; these allow me to install the driver on-demand basis: hService = CreateService (hSCM, szDriver, szDriver, SERVICE_ALL_ACCESS, SERVICE_KERNEL_DRIVER, SERVICE_DEMAND_START, // On-demand start SERVICE_ERROR_NORMAL, szPath, NULL, NULL, NULL, NULL, NULL); Now I need to install my driver at boot time. However, using SERVICE_BOOT_START returns the "invalid parameter" error. I'm not sure, but on NT 4 I think it was simple to change this. But on Win2K SP1 (my driver-development environment) the Settings>Control Panel>Administrative Tools>Services doesn't help much. I can see my driver at the Software Environment>Drivers on the System Information tool, but it doesn't help much either, as I don't know how to change the Start Mode field: Name/Description: myDriver File: \??\c:\test\mydriver.sys Type: Kernel Driver Started: True Start Mode: Manual <--- (I need to change this to "Boot") State: Running Status: OK Error Control: Normal Accept Pause: False Accept Stop: True The idea is simply to install the driver in such a way it remains active (being re-enabled at boot time - and though surviving reboots) until explicitly stopped/removed (which is also convenient, of course). Help would be appreciated. Thanks in advance, Miguel Monteiro jmonteiro@criticalsoftware.com www.criticalsoftware.com ------------------------------------------------------------ «Humour and love are God's answers to Human weaknesses» ------------------------------------------------------------ --- You are currently subscribed to ntdev as: GlennEverhart@FirstUSA.com To unsubscribe send a blank email to leave-ntdev-247T@lists.osr.com