T
Thomas Johansen
Hi
I have written 2 none PnP device driver, that is based on very simple driver
code. (Lecacy)
They are launch with the following registry values: (From the INF file)
DisplayName = %MyDrv.SVCDESC%
ServiceType = 1 ; SERVICE_KERNEL_DRIVER
StartType = 2 ; SERVICE_AUTO_START
ErrorControl = 1 ; SERVICE_ERROR_NORMAL
ServiceBinary = %12%\MyDrv.sys
LoadOrderGroup = MyGroup
1:
If I read the DDK dokumentation about load order, the LoadOrderGroup is only
valid for driveres with StartType 0 and 1.
Is this true?
From DDK Documentation:
"The Service Control Manager loads drivers of StartType SERVICE_AUTO_START
that are not yet loaded.
The Service Control Manager processes the service database information with
respect to the services' DependOnGroup and DependOnServices. This
information is from Dependencies entries in INF AddService entries. Note
that the Dependencies information is only processed for non-PnP drivers
because any necessary PnP drivers were loaded in an earlier step of system
startup. The Service Control Manager ignores INF LoadOrderGroup information.
"
If I set an diffrent LoadOrderGroup in my drivers I can see that they are
loaded in an diffrent order. Why is that if Service Control Manager ignores
the LoadOrderGroup ????
2: One of my drivers makes the system crash at boot if I select a StartType
og 0 or 1 for it (SERVICE_BOOT_START or SERVICE_SYSTEM_START), but there
DriverEntry() function is more or less the same (The crashing driver is
spawning a thread.) Any idea what could be wrong ?
Thomas
I have written 2 none PnP device driver, that is based on very simple driver
code. (Lecacy)
They are launch with the following registry values: (From the INF file)
DisplayName = %MyDrv.SVCDESC%
ServiceType = 1 ; SERVICE_KERNEL_DRIVER
StartType = 2 ; SERVICE_AUTO_START
ErrorControl = 1 ; SERVICE_ERROR_NORMAL
ServiceBinary = %12%\MyDrv.sys
LoadOrderGroup = MyGroup
1:
If I read the DDK dokumentation about load order, the LoadOrderGroup is only
valid for driveres with StartType 0 and 1.
Is this true?
From DDK Documentation:
"The Service Control Manager loads drivers of StartType SERVICE_AUTO_START
that are not yet loaded.
The Service Control Manager processes the service database information with
respect to the services' DependOnGroup and DependOnServices. This
information is from Dependencies entries in INF AddService entries. Note
that the Dependencies information is only processed for non-PnP drivers
because any necessary PnP drivers were loaded in an earlier step of system
startup. The Service Control Manager ignores INF LoadOrderGroup information.
"
If I set an diffrent LoadOrderGroup in my drivers I can see that they are
loaded in an diffrent order. Why is that if Service Control Manager ignores
the LoadOrderGroup ????
2: One of my drivers makes the system crash at boot if I select a StartType
og 0 or 1 for it (SERVICE_BOOT_START or SERVICE_SYSTEM_START), but there
DriverEntry() function is more or less the same (The crashing driver is
spawning a thread.) Any idea what could be wrong ?
Thomas