IWDFIoRequest::GetDeviceIoControlParameters method

The GetDeviceIoControlParameters method retrieves the request parameters for a device I/O control-type request.

Syntax


void  GetDeviceIoControlParameters(
  [out] ULONG  *pControlCode,
  [out] SIZE_T *pInBufferSize,
  [out] SIZE_T *pOutBufferSize
);

Parameters

pControlCode [out]

A pointer to a variable that receives the control code that identifies the specific operation to be performed.

This parameter is optional. The driver can pass NULL if the driver does not require the information.

pInBufferSize [out]

A pointer to a variable that receives the size, in bytes, of the input data buffer for the request. To retrieve the input data buffer, the driver calls the IWDFIoRequest::GetInputMemory method.

This parameter is optional. The driver can pass NULL if the driver does not require the information.

pOutBufferSize [out]

A pointer to a variable that receives the size, in bytes, of the output data buffer for the request. To retrieve the output data buffer, the driver calls the IWDFIoRequest::GetOutputMemory method.

This parameter is optional. The driver can pass NULL if the driver does not require the information.

Return value

None

Remarks

The call to GetDeviceIoControlParameters fails if the request type is not a device I/O control type.

Although the driver can optionally specify NULL for each of the pControlCode, pInBufferSize, and pOutBufferSize parameters, the driver must specify at least one non-NULL parameter for GetDeviceIoControlParameters to execute successfully.

Requirements

Target platform

End of support

Unavailable in UMDF 2.0 and later.

Minimum UMDF version

1.5

Header

Wudfddi.h (include Wudfddi.h)

DLL

WUDFx.dll

See also

IWDFIoRequest
IWDFIoRequest::GetInputMemory
IWDFIoRequest::GetOutputMemory

 

 

Send comments about this topic to Microsoft

Show: