ClientEventSendPossible

TDI_STATUS
ClientEventSendPossible (
IN PVOID TdiEventContext,
IN PVOID ConnectionContext,
IN ULONG BytesAvailable
);

ClientEventSendPossible is a routine a buffering TDI driver calls in response to a TDI_EVENT_SEND_POSSIBLE event. The driver calls ClientEventSendPossible after it has completed a nonblocking send using STATUS_DEVICE_NOT_READY.

ClientEventSendPossible indicates to the client that the TDI driver has buffers available for a send operation, and how much buffer storage is available. These indications do not guarantee the success of a nonblocking send operation specifying the indicated amount of buffer storage.

Parameters

TdiEventContext

Points to the context the client specifies in an IRP when it issues the TDI_SET_EVENT_HANDLER request message to register ClientEventSendPossible.

ConnectionContext

Points to the context the client associates with the connection endpoint identifier.

BytesAvailable

Specifies the number of bytes available in the TDI driver for buffering sends.

Return Value

ClientEventSendPossible can return the following status code:

STATUS_SUCCESS

For more information about status codes, see Part II, Chapter 10.

See Also

TDI_SET_EVENT_HANDLER