NDK_FN_QUERY_ADAPTER_INFO routine

The NdkQueryAdapterInfo (NDK_FN_QUERY_ADAPTER_INFO) function retrieves information about limits and capabilities of an NDK adapter.

Syntax


NDK_FN_QUERY_ADAPTER_INFO NdkQueryAdapterInfo;

NTSTATUS NdkQueryAdapterInfo(
  _In_  NDK_ADAPTER *pNdkAdapter,
  _Out_writes_bytes_to_opt_(*pBufferSize, *pBufferSize) NDK_ADAPTER_INFO *pInfo,
  _Inout_ ULONG *pBufferSize
)
{ ... }

Parameters

pNdkAdapter [in]

A pointer to an NDK adapter (NDK_ADAPTER) instance.

pInfo

A pointer to a buffer that contains an NDK_ADAPTER_INFO structure. If the request completes with STATUS_SUCCESS, the NDK provider fills the structure with adapter information.

pBufferSize

On input, this parameter is a pointer to a variable that holds the size, in bytes, of the buffer that the pInfo parameter points to. On output, the variable receives the size, in bytes, of the adapter information that was written into the buffer.

Return value

The NdkQueryAdapterInfo function returns one of the following NTSTATUS codes.

Return codeDescription
STATUS_SUCCESS

The request completed successfully.

STATUS_BUFFER_TOO_SMALL

The value in the *pBufferSize parameter specified a buffer size that was too small to hold the adapter information. *pBufferSize is updated with the required size.

Other status codes

An error occurred.

 

Remarks

NdkQueryAdapterInfo retrieves the adapter information in an NDK_ADAPTER_INFO structure. The structure contains information on various limits and capabilities of the adapter.

NdkQueryAdapterInfo requires an IRQL equal to PASSIVE_LEVEL and it blocks until the request is completed.

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2012

Version

Supported in NDIS 6.30 and later.

Header

Ndkpi.h (include Ndkpi.h)

IRQL

PASSIVE_LEVEL

See also

NDK_ADAPTER
NDK_ADAPTER_DISPATCH
NDK_ADAPTER_INFO

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft