Packet Sniffer SDK VCL Edition

HNAdapter :: Events :: OnAsyncRequest

 Previous Next

Fires immediately after asynchronous NDIS request completed.

Syntax:

TOnAsyncRequest  = procedure (Sender: TObject; 
                                 Key: Pointer; 
                         RequestType: DWORD; 
                                 Oid: DWORD; 
                             pBuffer: Pointer; 
                          BufferSize: DWORD; 
                           BytesUsed: DWORD; 
                         BytesNeeded: DWORD; 
                          NdisStatus: DWORD) of object;

Parameters:

Key

[in] This parameter value has been passed to the AsyncRequest 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 AsyncRequest function execution has been completed).

See also:HNAdapter, AsyncRequest, SyncRequest, NDIS_REQUEST_TYPE, NDIS_OIDs, NDIS_STATUS