IWDFIoRequest::GetReadParameters method

The GetReadParameters method retrieves the request parameters for a read-type request.

Syntax


void  GetReadParameters(
  [out] SIZE_T   *pSizeInBytes,
  [out] LONGLONG *pllOffset,
  [out] ULONG    *pulKey
);

Parameters

pSizeInBytes [out]

A pointer to a variable that receives the size, in bytes, to read. To retrieve the data for reading, the driver calls the IWDFIoRequest::GetOutputMemory method.

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

pllOffset [out]

A pointer to a variable that receives the offset, in bytes, to begin reading from the device or the file on the device. If the device does not support absolute read addresses, pllOffset can be ignored. For more information, see the following Remarks section.

Client applications specify this value in the Offset and OffsetHigh members of the OVERLAPPED structure. A pointer to OVERLAPPED is passed in the Microsoft Win32 ReadFile or ReadFileEx function.

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

pulKey [out]

A pointer to a variable that receives a key that the driver can use to sort the I/O request in a way that the driver determines.

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

Return value

None

Remarks

A call to GetReadParameters fails if the request type is not a read type.

For devices that support addressing (for example, a disk device), the value that the pllOffset parameter points to is typically the byte offset into the device. For devices that do not support addressing (for example, a serial port), the driver can ignore the value at pllOffset.

Although the driver can optionally specify NULL for each of the pSizeInBytes, pllOffset, and pulKey parameters, the driver must specify at least one non-NULL parameter for GetReadParameters 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::GetOutputMemory

 

 

Send comments about this topic to Microsoft

Show: