Partager via


RESTORE_CONTEXT_FLAGS enumeration

Defines values that are used in the CreateFileRestoreContext function to specify the file restore context for the volume or for the physical drive. These enumeration values are used in the Flags argument to the CreateFileRestoreContext function.

Note

FMAPI can only be used in the Windows Preinstallation Environment (WinPE) for Windows Vista, Windows Server 2008, and later. Applications that use FMAPI must license WinPE.

Syntax

typedef enum  { 
  ContextFlagVolume                  = 0x00000001,
  ContextFlagDisk                    = 0x00000002,
  FlagScanRemovedFiles               = 0x00000004,
  FlagScanRegularFiles               = 0x00000008,
  FlagScanIncludeRemovedDirectories  = 0x00000010
} RESTORE_CONTEXT_FLAGS;

Constants

ContextFlagVolume

Indicates that the string in the Volume parameter to the CreateFileRestoreContext function represents a path of a volume

This flag cannot be combined with ContextFlagDisk.

.

ContextFlagDisk

Indicates that the string in the Volume parameter to the CreateFileRestoreContext function represents a path of a physical disk.

This flag cannot be combined with ContextFlagVolume.

FlagScanRemovedFiles

Indicates that the ScanRestorableFiles function will search for files that have been deleted.

FlagScanRegularFiles

Indicates that the that ScanRestorableFiles function will search for files that have not been deleted (also called "regular files").

FlagScanIncludeRemovedDirectories

Indicates that the that the ScanRestorableFiles function will search for directories that have been deleted. This flag is only used with the FlagScanRemovedFiles flag.

Remarks

Note that there is no associated header file for this enumeration.

Requirements

Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2008 [desktop apps only]

See also

CreateFileRestoreContext