FILE_KNOWN_FOLDER_INFORMATION structure (ntifs.h)

The FILE_KNOWN_FOLDER_INFORMATION structure contains information about a known folder (for example, Documents, Downloads, Pictures, and so forth).

Syntax

typedef struct _FILE_KNOWN_FOLDER_INFORMATION {
  FILE_KNOWN_FOLDER_TYPE Type;
} FILE_KNOWN_FOLDER_INFORMATION, *PFILE_KNOWN_FOLDER_INFORMATION;

Members

Type

A FILE_KNOWN_FOLDER_TYPE value that identifies the known folder.

Remarks

When a function is called to set or query information for a file object with a FILE_INFORMATION_CLASS value of FileKnownFolderInformation, that function’s FileInformation parameter points to a caller-allocated FILE_KNOWN_FOLDER_INFORMATION structure. The See Also section lists a few such set/query functions.

Requirements

Requirement Value
Minimum supported server Windows Server 2022
Header ntifs.h

See also

FILE_INFORMATION_CLASS

FILE_KNOWN_FOLDER_TYPE

NtQueryInformationFile

NtSetInformationFile

ZwQueryInformationFile

ZwSetInformationFile