NdisOpenNDKAdapter function
[This documentation is preliminary and is subject to change.]
The NdisOpenNDKAdapter function opens NDK adapter instances on an NDK-enabled NDIS miniport adapter binding.
Syntax
NDIS_STATUS NdisOpenNDKAdapter(
_In_ NDIS_HANDLE NdisBindingHandle,
_In_ PNDIS_OPEN_NDK_ADAPTER_PARAMETERS Parameters,
_Outptr_ NDK_ADAPTER **ppNdkAdapter
);
Parameters
NdisBindingHandle [in]
The handle returned by the NdisOpenAdapterEx function that identifies the target adapter on the binding.Parameters [in]
A pointer to an NDIS_OPEN_NDK_ADAPTER_PARAMETERS structure that specifies parameters for an NDK_ADAPTER instance on an NDK-capable miniport adapter.ppNdkAdapter
A pointer to a variable that holds the pointer to an NDK_ADAPTER structure. On return from NdisOpenNDKAdapter, the NDK_ADAPTER structure referenced by ppNdkAdapter identifies the NDK adapter opened.
Return value
NdisOpenNDKAdapter can return one of the following values:
| Return code | Description |
|---|---|
| NDIS_STATUS_SUCCESS | The NDK adapter was successfully opened. |
| NDIS_STATUS_BAD_VERSION | The requested version number is not supported. |
| NDIS_STATUS_ADAPTER_NOT_READY | The NDK functionality of the miniport adapter is not enabled. |
| NDIS_STATUS_RESOURCES | NDIS was unable to open the NDK adapter due to insufficient resources. |
Remarks
An NDIS protocol driver calls NdisOpenNDKAdapter to open and close NDK adapter instances on a given NDK-enabled NDIS miniport adapter binding.
When the protocol driver is done with NDK adapters, the driver calls the NdisCloseNDKAdapter function to close NDK adapter instances.
Requirements
Version |
Supported in NDIS 6.30 and later versions. |
Header |
Ndisndk.h (include Ndis.h) |
IRQL |
PASSIVE_LEVEL |
See also
NDIS_OPEN_NDK_ADAPTER_PARAMETERS
Send comments about this topic to Microsoft
Build date: 6/21/2012