STATUS_BLOCK

typedef struct _STATUS_BLOCK {
    VP_STATUS Status;
    ULONG Information;
} STATUS_BLOCK, *PSTATUS_BLOCK;

STATUS_BLOCK is a substructure within the VIDEO_REQUEST_PACKET structure. A miniport driver’s HwVidStartIO function must set the status block of each VRP that it gets.

Members

Status
Is set to a status code indicating the result of the requested operation, such as:

Code

Description

NO_ERROR

The requested operation has been carried out and completed successfully.

ERROR_INVALID_FUNCTION

The miniport driver does not handle this request.

ERROR_NOT_ENOUGH_MEMORY

There is insufficient memory to process the request.

ERROR_INVALID_PARAMETER

A parameter in the VRP is invalid.

ERROR_INSUFFICIENT_BUFFER

Either the VRP InputBuffer is too small to provide the data required to process the given request or the OutputBuffer is too small to return the requested data.

ERROR_IO_PENDING

An operation has not yet completed.

ERROR_MORE_DATA

The driver has additional data to be returned but has already filled the given VRP OutputBuffer.

Information
Supplies additional information about the completed operation. The meaning of the value varies according to VRP. Generally, this member is used to return the minimum size required for the input buffer if the VRP passes data in the InputBuffer. Alternatively, it contains the number of bytes of data transferred if the requested operation returns data in the VRP OutputBuffer.

See Also

HwVidStartIO, VIDEO_REQUEST_PACKET