CommonLibSSE NG
SHELL32.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "REX/W32/BASE.h"
4 
5 namespace REX::W32
6 {
7  // known folder ids
8  inline constexpr GUID FOLDERID_Documents{ 0xFDD39AD0u, 0x238Fu, 0x46AFu, { 0xADu, 0xB4u, 0x6Cu, 0x85u, 0x48u, 0x03u, 0x69u, 0xC7u } };
9  inline constexpr GUID FOLDERID_Pictures{ 0x33E28130u, 0x4E1Eu, 0x4676u, { 0x83u, 0x5Au, 0x98u, 0x39u, 0x5Cu, 0x3Bu, 0xC3u, 0xBBu } };
10  inline constexpr GUID FOLDERID_ProgramData{ 0x62AB5D82u, 0xFDC1u, 0x4DC3u, { 0xA9u, 0xDDu, 0x07u, 0x0Du, 0x1Du, 0x49u, 0x5Du, 0x97u } };
11 
12  // known folder flags
13  inline constexpr auto KF_FLAG_DEFAULT{ 0x00000000u };
14  inline constexpr auto KF_FLAG_FORCE_APP_DATA_REDIRECTION{ 0x00080000u };
15  inline constexpr auto KF_FLAG_RETURN_FILTER_REDIRECTION_TARGET{ 0x00040000u };
16  inline constexpr auto KF_FLAG_FORCE_PACKAGE_REDIRECTION{ 0x00020000u };
17  inline constexpr auto KF_FLAG_NO_PACKAGE_REDIRECTION{ 0x00010000u };
18  inline constexpr auto KF_FLAG_FORCE_APPCONTAINER_REDIRECTION{ 0x00020000u };
19  inline constexpr auto KF_FLAG_NO_APPCONTAINER_REDIRECTION{ 0x00010000u };
20  inline constexpr auto KF_FLAG_CREATE{ 0x00008000u };
21  inline constexpr auto KF_FLAG_DONT_VERIFY{ 0x00004000u };
22  inline constexpr auto KF_FLAG_DONT_UNEXPAND{ 0x00002000u };
23  inline constexpr auto KF_FLAG_NO_ALIAS{ 0x00001000u };
24  inline constexpr auto KF_FLAG_INIT{ 0x00000800u };
25  inline constexpr auto KF_FLAG_DEFAULT_PATH{ 0x00000400u };
26  inline constexpr auto KF_FLAG_NOT_PARENT_RELATIVE{ 0x00000200u };
27  inline constexpr auto KF_FLAG_SIMPLE_IDLIST{ 0x00000100u };
28  inline constexpr auto KF_FLAG_ALIAS_ONLY{ 0x80000000u };
29 }
30 
31 namespace REX::W32
32 {
33  std::int32_t SHGetKnownFolderPath(const GUID& a_id, std::uint32_t a_flags, void* a_token, wchar_t** a_path) noexcept;
34 }
Definition: BSDirectInputManager.h:8
constexpr auto KF_FLAG_INIT
Definition: SHELL32.h:24
constexpr GUID FOLDERID_ProgramData
Definition: SHELL32.h:10
constexpr auto KF_FLAG_FORCE_PACKAGE_REDIRECTION
Definition: SHELL32.h:16
constexpr auto KF_FLAG_SIMPLE_IDLIST
Definition: SHELL32.h:27
constexpr auto KF_FLAG_DONT_VERIFY
Definition: SHELL32.h:21
constexpr auto KF_FLAG_CREATE
Definition: SHELL32.h:20
constexpr auto KF_FLAG_NO_APPCONTAINER_REDIRECTION
Definition: SHELL32.h:19
constexpr auto KF_FLAG_RETURN_FILTER_REDIRECTION_TARGET
Definition: SHELL32.h:15
constexpr auto KF_FLAG_FORCE_APPCONTAINER_REDIRECTION
Definition: SHELL32.h:18
constexpr auto KF_FLAG_DONT_UNEXPAND
Definition: SHELL32.h:22
std::int32_t SHGetKnownFolderPath(const GUID &a_id, std::uint32_t a_flags, void *a_token, wchar_t **a_path) noexcept
constexpr auto KF_FLAG_NO_PACKAGE_REDIRECTION
Definition: SHELL32.h:17
constexpr auto KF_FLAG_NO_ALIAS
Definition: SHELL32.h:23
constexpr auto KF_FLAG_NOT_PARENT_RELATIVE
Definition: SHELL32.h:26
constexpr GUID FOLDERID_Documents
Definition: SHELL32.h:8
constexpr auto KF_FLAG_DEFAULT
Definition: SHELL32.h:13
constexpr auto KF_FLAG_FORCE_APP_DATA_REDIRECTION
Definition: SHELL32.h:14
constexpr auto KF_FLAG_DEFAULT_PATH
Definition: SHELL32.h:25
constexpr GUID FOLDERID_Pictures
Definition: SHELL32.h:9
constexpr auto KF_FLAG_ALIAS_ONLY
Definition: SHELL32.h:28
Definition: BASE.h:62