I followed the instructions and the RtEthSample code to implement a NetAdapter client in my WDF driver. The adapter is created successfully and I can see the corresponding network connection in the control panel.
The problem is that when I call NetAdapterStart from my EvtDevicePrepareHardware handler, it fails with status 0xc0000001.
Now, I'm not sure if I got everything correct when setting the adapter's capabilities using NetAdapterSetLinkLayerCapabilities and friends, so I left the stuff out where I'm unsure.
Therefore I wonder, are there any preconditions that must be met before calling NetAdapterStart other than passing a valid handle from NetAdapterCreate?
I followed the instructions and the RtEthSample code to implement a NetAdapter client in my WDF driver. The adapter is created successfully and I can see the corresponding network connection in the control panel.
The problem is that when I call
NetAdapterStart
from myEvtDevicePrepareHardware
handler, it fails with status0xc0000001
.Now, I'm not sure if I got everything correct when setting the adapter's capabilities using
NetAdapterSetLinkLayerCapabilities
and friends, so I left the stuff out where I'm unsure.Therefore I wonder, are there any preconditions that must be met before calling
NetAdapterStart
other than passing a valid handle fromNetAdapterCreate
?