microsoft / Network-Adapter-Class-Extension

Network Adapter Class Extension to WDF (NetAdapter Cx) makes it easy to write high quality and high speed drivers for Network Interface Controllers
MIT License
54 stars 17 forks source link

Driver using Automatic Synchronization does not work anymore #15

Open dapaulid opened 1 year ago

dapaulid commented 1 year ago

It seems to me that the Windows 11 2021 Update broke compatibility with devices that use automatic synchronization:

WDF_OBJECT_ATTRIBUTES_INIT_CONTEXT_TYPE(&attributes, MY_DEVICE);
attributes.SynchronizationScope = WdfSynchronizationScopeDevice;
status = WdfDeviceCreate( &DeviceInit, &attributes, &device );

This makes a subsequent call to NetAdapterCreate fail with STATUS_WDF_INCOMPATIBLE_EXECUTION_LEVEL (0xc020020c). Before the update (on Windows 10) the driver worked correctly.

Is this expected behavior, or could this be a regression?