Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
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 CreateFilefunction.

dwIoControlCode

[in] Set to FSCTL_SET_EXTENDED_FLAGS.

lpInBuf

[in] Pointer to a DWORD that contains the flag to set. See the Remarkssection 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 DeviceIoControlfunction returns a nonzero value. If the operation fails, DeviceIoControlreturns zero. If the operation fails, DeviceIoControlreturns zero. For extended error information, call GetLastError.

Remarks

The lpInBufcontains the following flag.

Flag Description

CE_FILE_FLAG_TRANS_DATA

Write operations to this file are transaction-safe.

See Also