Edit

Share via


DIRECTORY_FLAGS enumeration (fileapi.h)

The DIRECTORY_FLAGS enumeration defines the flags that can be used with the CreateDirectory2 function to specify how the directory should be created.

Syntax

typedef enum DIRECTORY_FLAGS {
  DIRECTORY_FLAGS_NONE,
  DIRECTORY_FLAGS_DISALLOW_PATH_REDIRECTS
} ;

Constants

 
DIRECTORY_FLAGS_NONE
Indicates that no flags are set.
DIRECTORY_FLAGS_DISALLOW_PATH_REDIRECTS
Prevent specified path name from being redirected by reparse points or symbolic links.

Requirements

Requirement Value
Minimum supported client Windows 11 24H2 [desktop apps | UWP apps]
Minimum supported server Windows Server 2025 [desktop apps | UWP apps]
Header fileapi.h (include Windows.h)

See also

CreateDirectory2a

CreateDirectory2w