Share via


CeFsIoControl

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This function sends an I/O control to a file system driver (FSD). It may not be supported by all file system drivers, and not all implementations support all I/O controls.

Syntax

BOOL CeFsIoControl(
  LPCWSTR pszDir,
  DWORD dwIoControlCode,
  LPVOID lpInBuffer,
  DWORD nInBufferSize,
  LPVOID lpOutBuffer,
  DWORD nOutBufferSize,
  LPDWORD lpBytesReturned,
  LPOVERLAPPED lpOverlapped
);

Parameters

  • pszDir
    [in] String representing the system mount point. Set to NULL to access the object store file system.
  • dwIoControlCode
    [in] File system I/O control code.
  • lpInBuffer
    [in] Long pointer to a buffer that contains the data required to perform the operation. Set to NULL if the dwIoControlCode parameter specifies an operation that does not require input data.
  • nInBufferSize
    [in] Size, in bytes, of the buffer pointed to by lpInBuffer.
  • lpOutBuffer
    [out] Long pointer to a buffer that receives the output data for the operation. Set to NULL if dwIoControlCode does not produce output data.
  • nOutBufferSize
    [in] Size, in bytes, of the buffer pointed to by lpOutBuffer.
  • lpBytesReturned
    [out] Long pointer to a variable that receives the size, in bytes, of the data stored in the buffer pointed to by lpOutBuffer.
  • lpOverlapped
    [in] Ignored. Set to NULL.

Return Value

TRUE indicates success. FALSE indicates failure. If this function is not supported by an FSD, it returns FALSE, and GetLastError returns ERROR_NOT_SUPPORTED.

Requirements

Header winbase.h
Library Device.lib
Windows Embedded CE Windows CE 5.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

FSD Functions
MyFSD_FsIoControl

Other Resources

GetLastError