FSDMGR_DiskIoControl (Windows CE 5.0)

Send Feedback

This function is called by an FSD to access DeviceIoControl functions exported by a block driver.

DWORD FSDMGR_DiskIoControl( HDSKhDsk,DWORD dwIoControlCode,LPVOID lpInBuf,DWORD nInBufSize,LPVOID lpOutBuf,DWORD nOutBufSize,LPDWORD lpBytesReturned,LPOVERLAPPED lpOverlapped);

Parameters

  • hDsk
    [in] Handle to the disk; this is the same value that was passed to FSD_MountDisk. This handle is not a true Win32 handle.
  • dwIoControlCode
    [in] IOCTL for the operation. This value identifies the specific operation to perform and the type of device on which to perform the operation.
  • lpInBuf
    [in] Long pointer to a buffer that contains the data required to perform the operaton. Set to NULL, if the dwIoControlCode parameter specifies an operation that does not require input data.
  • nInBufSize
    [in] Size, in bytes, of the buffer pointed to by lpInBuf.
  • lpOutBuf
    [out] Long pointer to a buffer that receives the output data for the operation. Set to NULL, if the dwIoControlCode parameter specifies an operation that does not produce output data.
  • nOutBufSize
    [out] Size, in bytes, of the buffer pointed to by lpOutBuf.
  • lpBytesReturned
    [out] Long pointer to a variable that receives the size, in bytes, of the data stored into the buffer pointed to by lpOutBuffer. Even when an operation produces no output data, and lpOutBuf is NULL, the FSDMGR_DiskIoControl function uses the variable pointed to by lpBytesReturned. After such an operation, the value of the variable has no meaning.
  • lpOverlapped
    [in] Ignored; set to NULL.

Return Values

A nonzero value indicates success. Zero indicates failure. To obtain extended error information, call the GetLastError function.

Requirements

OS Versions: Windows CE 2.10 and later.
Header: Fsdmgr.h.
Link Library: Fsdmgr.lib.

See Also

FSD_MountDisk | GetLastError | DeviceIoControl

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.