Share via


FSCTL_SET_EXTENDED_FLAGS

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This I/O control sets the extended flags on a file.

Parameters

  • hDevice
    [in] Handle to the file or alternate stream on which to set the extended flags. To retrieve a device handle, call the CreateFile function.
  • dwIoControlCode
    [in] Set to FSCTL_SET_EXTENDED_FLAGS.
  • lpInBuf
    [in] Pointer to a DWORD that contains the flag to set. See the Remarks section for a description of the flags.
  • nInBufSize
    [in] Set to sizeof(DWORD).
  • lpOutBuf
    Not used.
  • nOutBufSize
    Not used.
  • lpBytesReturned
    Not used.
  • lpOverlapped
    Not used.

Return Values

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

Remarks

The lpInBuf contains the following flag.

Flag Description

CE_FILE_FLAG_TRANS_DATA

Write operations to this file are transaction-safe.

See Also

Reference

FS I/O Controls
CreateFile