[HIVESYS] Move ndis to the "NDIS Wrapper" group. CORE-18790

Miniport drivers import from NDIS, but NDIS does not support being
loaded as a dependent driver (it does not have DllInitialize).
Instead, NDIS needs to load before all possible miniport drivers,
even boot-start ones. We achieve this by placing it in its own service
order group, which loads before the NDIS group.

All our miniport drivers are demand-start, so would automatically start
later. The ndisprot driver from the ticket is likely the first boot-start
miniport we've encountered. Since DriverEntry did not run,
AdapterListHead was NULL, resulting in the crash.
This commit is contained in:
Thomas Faber 2023-01-14 15:24:51 -05:00
parent 669b2f4465
commit 6c06760547
No known key found for this signature in database
GPG key ID: 076E7C3D44720826

View file

@ -1694,9 +1694,9 @@ HKLM,"SYSTEM\CurrentControlSet\Services\Mup","ImagePath",0x00020000,"system32\dr
HKLM,"SYSTEM\CurrentControlSet\Services\Mup","Start",0x00010001,0x00000000
HKLM,"SYSTEM\CurrentControlSet\Services\Mup","Type",0x00010001,0x00000002
; NDIS driver - the only boot-start network driver
; NDIS driver - needs to load before any drivers in the NDIS group
HKLM,"SYSTEM\CurrentControlSet\Services\Ndis","ErrorControl",0x00010001,0x00000001
HKLM,"SYSTEM\CurrentControlSet\Services\Ndis","Group",0x00000000,"NDIS"
HKLM,"SYSTEM\CurrentControlSet\Services\Ndis","Group",0x00000000,"NDIS Wrapper"
HKLM,"SYSTEM\CurrentControlSet\Services\Ndis","ImagePath",0x00020000,"system32\drivers\ndis.sys"
HKLM,"SYSTEM\CurrentControlSet\Services\Ndis","Start",0x00010001,0x00000000
HKLM,"SYSTEM\CurrentControlSet\Services\Ndis","Type",0x00010001,0x00000001