Share via


FSDMGR_DiskIoControl (Windows Embedded CE 6.0)

1/6/2010

This function is called by a file system driver (FSD) to access DeviceIoControl functions exported by a block driver.

Syntax

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

Parameters

  • hDsk
    [in] Handle of the disk; this is the same value that was passed to the FSD_MountDisk function.
  • dwIoControlCode
    [in] I/O control for the operation. This value identifies the 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 dwIoControlCode 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 dwIoControlCode 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 set to NULL, this function uses the variable pointed to by this parameter. After such an operation, the value of the variable has no meaning.
  • lpOverlapped
    [in] Ignored. Set to NULL.

Return Value

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

Requirements

Header fsdmgr.h
Library Fsdmgr.lib
Windows Embedded CE Windows CE 2.10 and later

See Also

Reference

FSDMGR Functions
FSD Functions
FSD_MountDisk

Other Resources

GetLastError
DeviceIoControl