Packet Sniffer SDK DLL Edition

Events :: OnAsyncRequest

 Previous Next

Fires immediately after asynchronous NDIS request completed.

Syntax:

void __stdcall OnAsyncRequest(DWORD_PTR Param, DWORD_PTR Key, DWORD RequestType, DWORD Oid, 
LPVOID pBuffer, DWORD BufferSize, DWORD BytesUsed, DWORD BytesNeeded, DWORD NdisStatus);

Parameters:

Param

[in] OnAsyncRequest event handler parameter. May be set by the AdpSetOnAsyncRequest function call.

Key

[in] This parameter value has been passed to the AdpAsyncRequest function.

RequestType

[in] The type of the NDIS request to the network adapter (see NDIS REQUEST TYPE).

Oid

[in] The code of the NDIS request to the network adapter (see NDIS OIDs).

pBuffer

[in] Buffer containing NDIS request input parameters, also may be used for request results.

BufferSize

[in] Data buffer size.

BytesUsed

[in] Contains the size of the sent/received data in bytes after request is completed.

BytesNeeded

[in] If the buffer size is too small, this parameter will contain the proper buffer size value (see NDIS_STATUS_INVALID_LENGTH or NDIS_STATUS_BUFFER_TOO_SHORT).

NdisStatus

[in] NDIS request completion status (see NDIS STATUS)

Description:

PSSDK library fires OnAsyncRequest immediately after NDIS request completion (after AdpAsyncRequest function execution has been completed).

See also:HNAdapter, AdpSetOnAsyncRequest, AdpAsyncRequest, AdpSyncRequest, NDIS_REQUEST_TYPE, NDIS_OIDs, NDIS_STATUS