Share via


FSCTL_USER (Compact 2013)

3/26/2014

This user-defined I/O control can be used to define additional file system I/O controls.

Syntax

BOOL DeviceIoControl(
    HANDLE hDevice,           // handle to device
    DWORD dwIoControlCode,    // use FSCTL_USER
    LPVOID lpInBuffer,        // pointer to input buffer
    DWORD nInBufferSize,      // input buffer size
    LPVOID lpOutBuffer,       // pointer to output buffer
    DWORD nOutBufferSize,     // output buffer size
    LPDWORD lpBytesReturned,  // number of bytes returned
    OVERLAPPED lpOverlapped   // pointer to OVERLAPPED structure
);

Parameters

  • hDevice
    User-defined.
  • dwIoControlCode
    User-defined.
  • lpInBuf
    User-defined.
  • nInBufSize
    User-defined.
  • lpOutBuf
    User-defined.
  • nOutBufSize
    User-defined.
  • lpBytesReturned
    User-defined.

Return Values

If the operation succeeds, the DeviceIoControl function returns a nonzero value. If the operation fails, DeviceIoControl returns zero. For extended error information, call GetLastError.

Requirements

Header

fsioctl.h

See Also

Reference

FS I/O Controls

Other Resources

DeviceIoControl