How does it work?

MagNumDB is a database that contains about 300,000 items. These items are constants, names, values all extracted from more than 4,000 header files (.h, .hxx, .hpp, .idl, etc.) provided by standard Windows and Visual Studio SDKs.
Some values have been extracted from the very special uuid.lib file that contains the value of thousands of guids and property keys, not present anywhere else in header files.

 "C2P5"

To build this database, we have written a powerful C/C++ parser named C2P5 (for C/CPP/PreProcessor/Parser), tailored specifically for this task. C2P5 is capable of preprocessing, parsing and partially evaluating all header files as if they were included in a one big virtual project (that of course, does not compile). It currently supports the following preprocessor and C/C++ constructs:

  • #define preprocessor that define constants
  • #define preprocessor that define expression to compute constants
  • C and C++ enum definitions
  • Special GUID constructs like DECLSPEC_UUID, DEFINE_GUIDSTRUCT or MIDL_INTERFACE
  • Some IDL constructs
  • Etc.

The parser remembers dynamic preprocessor definitions (#if, #ifdef, etc.) that are conditions for constants definitions and expression computation. All parsed items are saved in the database, as well as the associated conditions. There may be more than one item corresponding to a given name, if there are differences in their associated conditions.

C2P5 supports the following types of constants, regardless of the way they are defined in source files:

  • integer, signed or unsigned, from 8-bit to 128-bit
  • floating point number, single (32-bit) or double (64-bit)
  • globally unique identifier, or guid, uuid, CLSID, IID, etc.
  • string, in narrow, wide, or utf-8/16/32 formats
  • character, in narrow, wide, or utf-8/16/32 formats
  • pointer, a constant cast as a pointer
  • property key, or PKEY, a combination of a guid (fmtid) and a 32-bit integer (id).

 Powered by

C2P5 and this MagNumDB web site are written in C# and use a Lucene database as a full-text search engine. C2P5 uses a custom ANTLR4cs C grammar for expression parsing, not for preprocessor parsing.

 

 Frequently Asked Questions

  • Q: Can I run custom queries? A: Yes. You can use Lucene's query syntax. Note the Database is case insensitive. Check out the list of columns with their corresponding database column names:

    • Index: the item's index.
    • Name: the item's name, or title. For enum values, it's prefixed with the enum's name.
      Corresponding database field: title.
    • Type: the item's type, expressed in a specific, universal system.
      Corresponding Lucene's field: valuetype, but use the value of the Storage type column for queries on items type.
    • Value: the item's value. For string values, it's displayed as is w/o quotes nor escaping.
      Corresponding database field: value. There is also a typedvalue field that can contain Lucene's Int32, Int64, Float, Double or String typed values.
    • Hex Value: the item's hexadecimal value, only valid for integer types.
      There is no corresponding database field.
    • Signed Value: the item's signed value, only valid for integer and double types. Useful when you found a unsigned number and want to get the corresponding signed value (uint -> int for example).
      There is no corresponding database field.
    • Source lines(s): the source lines from which the item was extracted. Comments and characters such as TAB, CR are preserved.
      Corresponding database field: source.
    • File path: the file path from which the item was extracted, terminated by the line index.
      Corresponding database field: filepath. There are also directory and filename fields. filename is useful to query for values in a given file.
    • Score: Lucene's score value. Items are returned sorted by score.
    • Guid formats: a utility columns that proposes all possible guid formats. Only valid for guid types.
      There is no corresponding database field
    • Char type: the character encoding (narrow, wide, etc.). Only valid for char and string values.
      Corresponding database field: chartype.
    • Storage type: the exact storage type in the database. Only used for specific queries.
      Corresponding database field: valuetype.
    • Conditions: the list of preprocessor conditions for a given item. If a condition is surrounded with a REVERSE function, it means the reverse condition of what's surrounded was the condition.
      Corresponding database field: conditions. There may be multiple conditions fields for one item.

    Some important points to note:

    • If you search for a negative number (like error codes expressed using signed integers), you can surround the search with double quotes, for example searching for "-2147009290" is equivalent to searching for 0x80073CF6, 80073CF6 (or even 3CF6 in this specific case). If you don't surround negative numbers with double quotes, the system will search for signed and unsigned corresponding values.
    • The full-text search uses items' name, value, hex value, guid formats, source lines, etc. so refine your search if you get back too many items.
    • You can search for guid binary values using just a part of their full definition. For example, if you search for '79eac9c5', it will get you 3 guid entries
    • Leading wild card search (*whatever) is allowed, but it may slow down the search significantly.

    Here are some example or custom queries:

    title:wm_user returns the WM_USER Windows message item, not all items that reference the WM_USER token.

    title:wm_u* returns all items (Windows messages probably) whose name starts with WM_U*.

    value:1024 AND title:wm_* returns all items (Windows messages probably) whose name starts with WM_U* and value is 1024. Note AND must be UPPERCASE for Lucene's to understand it as an AND operator.

    value:"00000002-0000-0000-C000-000000000046" returns the IMalloc IID guid value.

  • Q: I always get back 400 items at most. Why? A: The MagNumDb site currently limits the number of returned items to this value by design. This should be enough for most real search scenarios (like enums with a big list of values).
  • Q: Some values are empty. Why? A: The expression evaluator cannot sometimes compute the final value, because it sometimes require contextual information (custom defines, compiler architecture, etc.) that the parser doesn't have. You can enable the Source line(s) column to check what's the corresponding source and try to work it out by yourself. The origin file path and line number is also included.
  • Q: Can I get all values for a given enum? A: Sure. For example, __VSHPROPID is the name of an enum, and a query like this: parent:__VSHPROPID will get all the enum's values (66 entries).
  • Q: I sometimes get back items whose name starts with "__magnumdb__enum_". Why? A: C allows unnamed enums. The MagNumDb parser just gives them a name, using the defining file name and a counter.

 Database Metrics

  • Last update date: Tuesday, 17 October 2017
  • Items count: 304412
  • Parsed files count: 4278
  • Windows SDK version: 10.0.16299.0

 

 Contact

We welcome feedback.
Seen anything missing? A bug? A wrong value? Do you have any suggestion for improvements? Do you have an idea for a cool new feature?

Please contact us here

 About MagNumDB

MagNumDB  2017 Simon Mourier V1.0.3. All rights reserved.

Profile for Simon Mourier at Stack Overflow, Q&A for professional and enthusiast programmers


All product names, logos, and brands are property of their respective owners. All company, product and service names used in this website are for identification purposes only.

All values, names, source code fragments displayed here have been extracted from files that are property of their respective owners.

THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND OTHER THAN AS SPECIFICALLY SET FORTH IN THE LICENSE AGREEMENT, INCLUDING WITHOUT LIMITATION WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Index Score Name Type Value Hex value Signed value Guid formats Char type Storage type Source line(s) File path Conditions
Index Score Name Type Value Hex value Signed value Guid formats Char type Storage type Source line(s) File path Conditions
1 5.311372 ContentAccessRestrictionLevel::Hide Int32 3 0x00000003 3 System.Int32
Hide  = 3
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.16299.0\winrt\windows.media.contentrestrictions.idl(92,0)
2 5.311372 AnimationEffect::Hide Int32 25 0x00000019 25 System.Int32
Hide                 = 25,
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.16299.0\winrt\windows.ui.core.animationmetrics.idl(128,0)
3 5.311372 MapElementCollisionBehavior::Hide Int32 0 0x00000000 0 System.Int32
Hide          = 0,
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.16299.0\winrt\windows.ui.xaml.controls.maps.idl(628,0)
4 5.311372 FastPlayFallbackBehaviour::Hide Int32 1 0x00000001 1 System.Int32
Hide    = 1,
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.16299.0\winrt\windows.ui.xaml.media.idl(779,0)
5 3.540915 JOYTYPE_DEVICEHIDE Int32 65536 0x00010000 65536 System.Int32
#define JOYTYPE_DEVICEHIDE              0x00010000l /* Hide unclassified devices */
#define JOYTYPE_DEVICEHIDE              0x00010000l /* Hide unclassified devices */
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.16299.0\shared\dinputd.h(273,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
  • Ifndef JOY_HW_NONE
6 3.540915 JOYTYPE_MOUSEHIDE Int32 131072 0x00020000 131072 System.Int32
#define JOYTYPE_MOUSEHIDE               0x00020000l /* Hide mice */
#define JOYTYPE_MOUSEHIDE               0x00020000l /* Hide mice */
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.16299.0\shared\dinputd.h(274,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
  • Ifndef JOY_HW_NONE
7 3.540915 JOYTYPE_KEYBHIDE Int32 262144 0x00040000 262144 System.Int32
#define JOYTYPE_KEYBHIDE                0x00040000l /* Hide keyboards */
#define JOYTYPE_KEYBHIDE                0x00040000l /* Hide keyboards */
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.16299.0\shared\dinputd.h(275,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
  • Ifndef JOY_HW_NONE
8 3.540915 JOYTYPE_GAMEHIDE Int32 524288 0x00080000 524288 System.Int32
#define JOYTYPE_GAMEHIDE                0x00080000l /* Hide game controllers */
#define JOYTYPE_GAMEHIDE                0x00080000l /* Hide game controllers */
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.16299.0\shared\dinputd.h(276,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
  • Ifndef JOY_HW_NONE
9 3.540915 JOYTYPE_HIDEACTIVE Int32 1048576 0x00100000 1048576 System.Int32
#define JOYTYPE_HIDEACTIVE              0x00100000l /* Hide flags are active */
#define JOYTYPE_HIDEACTIVE              0x00100000l /* Hide flags are active */
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.16299.0\shared\dinputd.h(277,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
  • Ifndef JOY_HW_NONE
10 3.540915 DIBUTTON_BROWSER_HISTORY Int32 671106057 0x28004409 671106057 System.Int32
#define DIBUTTON_BROWSER_HISTORY                0x28004409 /* Show/Hide History */
#define DIBUTTON_BROWSER_HISTORY                0x28004409 /* Show/Hide History */
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.16299.0\um\dinput.h(4232,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
11 3.129756 MapElementCollisionBehavior Enum
enum MapElementCollisionBehavior
                    {
                        Hide          = 0,
                        RemainVisible = 1
                    };
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.16299.0\winrt\windows.ui.xaml.controls.maps.idl(626,0)
12 3.129756 FastPlayFallbackBehaviour Enum
enum FastPlayFallbackBehaviour
                {
                    Skip    = 0,
                    Hide    = 1,
                    Disable = 2
                };
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.16299.0\winrt\windows.ui.xaml.media.idl(776,0)
13 3.129756 AFX_CONTROLBAR_BUTTONS_NUM Int32 3 0x00000003 3 System.Int32
#define AFX_CONTROLBAR_BUTTONS_NUM 3  // Hide + Expand + Menu
%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\VC\atlmfc\include\afxdockablepane.h(28,0)
14 3.0983 CONNDLG_HIDE_BOX Int32 8 0x00000008 8 System.Int32
#define CONNDLG_HIDE_BOX    0x00000008 /* Hide persistent connect checkbox  */
#define CONNDLG_HIDE_BOX    0x00000008 /* Hide persistent connect checkbox  */
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.16299.0\um\winnetwk.h(396,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM)
  • If (WINVER >= 0x0400)
15 2.503805 DSECAF_NOTLISTED Int32 1 0x00000001 1 System.Int32
#define DSECAF_NOTLISTED               0x00000001  // = 1 => hide from the field drop down in the query UI
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.16299.0\um\DSClient.h(244,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
  • Ifndef GUID_DEFS_ONLY
16 2.503805 DWMFLIP3DWINDOWPOLICY::DWMFLIP3D_DEFAULT Int32 0 0x00000000 0 System.Int32
DWMFLIP3D_DEFAULT,      // Hide or include the window in Flip3D based on window style and visibility.
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.16299.0\um\dwmapi.h(89,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
17 2.503805 SPS_RESERVED1 Int32 64 0x00000040 64 System.Int32
#define SPS_RESERVED1       0x00000040L  // Used for forced show/hide system cursor.
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.16299.0\um\winddi.h(3114,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
18 2.503805 HHWIN_PROP_TAB_AUTOHIDESHOW Int32 1 0x00000001 1 System.Int32
#define HHWIN_PROP_TAB_AUTOHIDESHOW (1 << 0)    // Automatically hide/show tri-pane window
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.16299.0\um\HtmlHelp.h(68,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
19 2.503805 ABN_WINDOWARRANGE Int32 3 0x00000003 3 System.Int32
#define ABN_WINDOWARRANGE  0x0000003 // lParam == TRUE means hide
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.16299.0\um\shellapi.h(188,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
  • If (WINVER >= 0x0400)
20 2.503805 RESTRICTIONS::REST_NOMYCOMPUTERICON Int32 1073741923 0x40000063 1073741923 System.Int32
REST_NOMYCOMPUTERICON           = 0x40000063,   // don't show my computer anywhere, hide its contents
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.16299.0\um\shlobj_core.h(2614,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
  • If (NTDDI_VERSION >= NTDDI_WINXP)
21 2.503805 tagOPEN_AS_INFO_FLAGS::OAIF_HIDE_REGISTRATION Int32 32 0x00000020 32 System.Int32
OAIF_HIDE_REGISTRATION  = 0x00000020,     // hide the "always use this file" checkbox
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.16299.0\um\shlobj_core.h(2739,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
  • If (NTDDI_VERSION >= NTDDI_VISTA)
22 2.503805 MMC_CONSOLE_VERB::MMC_VERB_CUT Int32 32776 0x00008008 -32760 System.Int32
MMC_VERB_CUT             = 0x8008,  // Used only to explicitly disable/hide
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.16299.0\um\MMC.h(677,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
  • If (MMC_VER >= 0x0110)
23 2.503805 NS_CMD_FLAGS::CMD_FLAG_HIDDEN Int32 32 0x00000020 32 System.Int32
CMD_FLAG_HIDDEN      = 0x20, // hide from help but allow execution
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.16299.0\um\NetSh.h(67,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
24 2.503805 ContentAccessRestrictionLevel Enum
enum ContentAccessRestrictionLevel
            {
                Allow = 0,
                Warn  = 1,
                Block = 2,
                Hide  = 3
            };
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.16299.0\winrt\windows.media.contentrestrictions.idl(87,0)
25 2.503805 FILETYPEATTRIBUTEFLAGS::FTA_Exclude Int32 1 0x00000001 1 System.Int32
FTA_Exclude                 = 0x00000001, // used to exclude (hide) types like drvfile
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.16299.0\um\shlwapi.h(1753,0)
  • Ifndef NOSHLWAPI
  • Ifndef NO_SHLWAPI_REG
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
26 2.503805 RB_SHOWBAND Int32 1059 0x00000423 1059 System.Int32
#define RB_SHOWBAND     (WM_USER + 35)      // show/hide band
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.16299.0\um\commctrl.h(2070,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
  • Ifndef NOUSER
  • Ifndef NOREBAR
27 2.503805 EM_HIDEBALLOONTIP Int32 5380 0x00001504 5380 System.Int32
#define EM_HIDEBALLOONTIP   (ECM_FIRST + 4)     // Hide any balloon tip associated with the edit control
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.16299.0\um\commctrl.h(7397,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
  • Ifndef NOUSER
  • Ifndef NOEDIT
  • If (NTDDI_VERSION >= NTDDI_WINXP)
28 2.503805 msofurlcfUseHideExtShellSetting Int32 4 0x00000004 4 System.Int32
#define msofurlcfUseHideExtShellSetting 0x0004  // use the OS shell setting to hide extensions to include ext in leaf
%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\VSSDK\VisualStudioIntegration\Common\Inc\office10\msourl.h(113,0)
29 2.190829 ElementSoundKind Enum
enum ElementSoundKind
            {
                Focus        = 0,
                Invoke       = 1,
                Show         = 2,
                Hide         = 3,
                MovePrevious = 4,
                MoveNext     = 5,
                GoBack       = 6
            };
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.16299.0\winrt\windows.ui.xaml.idl(1144,0)
30 1.877854 DWMFLIP3DWINDOWPOLICY Enum
enum DWMFLIP3DWINDOWPOLICY
{
    DWMFLIP3D_DEFAULT,      // Hide or include the window in Flip3D based on window style and visibility.
    DWMFLIP3D_EXCLUDEBELOW, // Display the window under Flip3D and disabled.
    DWMFLIP3D_EXCLUDEABOVE, // Display the window above Flip3D and enabled.
    DWMFLIP3D_LAST
};
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.16299.0\um\dwmapi.h(87,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
31 1.564878 MMC_CONSOLE_VERB Enum
typedef enum _MMC_CONSOLE_VERB                               
{                                                            
    MMC_VERB_NONE            = 0x0000,                       
    MMC_VERB_OPEN            = 0x8000,                       
    MMC_VERB_COPY            = 0x8001,                       
    MMC_VERB_PASTE           = 0x8002,                       
    MMC_VERB_DELETE          = 0x8003,                       
    MMC_VERB_PROPERTIES      = 0x8004,                       
    MMC_VERB_RENAME          = 0x8005,                       
    MMC_VERB_REFRESH         = 0x8006,                       
    MMC_VERB_PRINT           = 0x8007,                       
    MMC_VERB_CUT             = 0x8008,  // Used only to explicitly disable/hide
                                                             
    MMC_VERB_MAX,                                            
    MMC_VERB_FIRST           = MMC_VERB_OPEN,                
    MMC_VERB_LAST            = MMC_VERB_MAX - 1              
} MMC_CONSOLE_VERB;
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.16299.0\um\MMC.h(665,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
  • If (MMC_VER >= 0x0110)
32 1.251902 NS_CMD_FLAGS Enum
enum NS_CMD_FLAGS
{
    CMD_FLAG_PRIVATE     = 0x01, // not valid in sub-contexts
    CMD_FLAG_INTERACTIVE = 0x02, // not valid from outside netsh
    CMD_FLAG_LOCAL       = 0x08, // not valid from a remote machine
    CMD_FLAG_ONLINE      = 0x10, // not valid in offline/non-commit mode
    CMD_FLAG_HIDDEN      = 0x20, // hide from help but allow execution
    CMD_FLAG_LIMIT_MASK  = 0xffff,
    CMD_FLAG_PRIORITY    = 0x80000000 // ulPriority field is used*/
};
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.16299.0\um\NetSh.h(61,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
33 1.095415 tagOPEN_AS_INFO_FLAGS Enum
enum tagOPEN_AS_INFO_FLAGS {
    OAIF_ALLOW_REGISTRATION = 0x00000001,     // enable the "always use this file" checkbox (NOTE if you don't pass this, it will be disabled)
    OAIF_REGISTER_EXT       = 0x00000002,     // do the registration after the user hits "ok"
    OAIF_EXEC               = 0x00000004,     // execute file after registering
    OAIF_FORCE_REGISTRATION = 0x00000008,     // force the "always use this file" checkbox to be checked (normally, you won't use the OAIF_ALLOW_REGISTRATION when you pass this)
    OAIF_HIDE_REGISTRATION  = 0x00000020,     // hide the "always use this file" checkbox
    OAIF_URL_PROTOCOL       = 0x00000040,     // the "extension" passed is actually a protocol (uri scheme), and open with should show apps registered as capable of handling that protocol
    OAIF_FILE_IS_URI        = 0x00000080,     // pcszFile is actually a URI
};
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.16299.0\um\shlobj_core.h(2733,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
  • If (NTDDI_VERSION >= NTDDI_VISTA)
  • If (NTDDI_VERSION >= NTDDI_WIN8)
34 1.095415 AnimationEffect Enum
enum AnimationEffect
                {
                    Expand               = 0,
                    Collapse             = 1,
                    Reposition           = 2,
                    FadeIn               = 3,
                    FadeOut              = 4,
                    AddToList            = 5,
                    DeleteFromList       = 6,
                    AddToGrid            = 7,
                    DeleteFromGrid       = 8,
                    AddToSearchGrid      = 9,
                    DeleteFromSearchGrid = 10,
                    AddToSearchList      = 11,
                    DeleteFromSearchList = 12,
                    ShowEdgeUI           = 13,
                    ShowPanel            = 14,
                    HideEdgeUI           = 15,
                    HidePanel            = 16,
                    ShowPopup            = 17,
                    HidePopup            = 18,
                    PointerDown          = 19,
                    PointerUp            = 20,
                    DragSourceStart      = 21,
                    DragSourceEnd        = 22,
                    TransitionContent    = 23,
                    Reveal               = 24,
                    Hide                 = 25,
                    DragBetweenEnter     = 26,
                    DragBetweenLeave     = 27,
                    SwipeSelect          = 28,
                    SwipeDeselect        = 29,
                    SwipeReveal          = 30,
                    EnterPage            = 31,
                    TransitionPage       = 32,
                    CrossFade            = 33,
                    Peek                 = 34,
                    UpdateBadge          = 35
                };
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.16299.0\winrt\windows.ui.core.animationmetrics.idl(101,0)
35 0.7824391 FILETYPEATTRIBUTEFLAGS Enum
typedef enum
{
    FTA_None                    = 0x00000000, 
    FTA_Exclude                 = 0x00000001, // used to exclude (hide) types like drvfile
    FTA_Show                    = 0x00000002, // used to show types like folder that don't have associations
    FTA_HasExtension            = 0x00000004, // type has a file name extension
    FTA_NoEdit                  = 0x00000008, // no editing of file type
    FTA_NoRemove                = 0x00000010, // no removing of the file type
    FTA_NoNewVerb               = 0x00000020, // no adding of verbs
    FTA_NoEditVerb              = 0x00000040, // no editing of predefined verbs
    FTA_NoRemoveVerb            = 0x00000080, // no removing of predefined verbs
    FTA_NoEditDesc              = 0x00000100, // no editing of file type description
    FTA_NoEditIcon              = 0x00000200, // no editing of doc icon
    FTA_NoEditDflt              = 0x00000400, // no changing of default verb
    FTA_NoEditVerbCmd           = 0x00000800, // no modification of the commnds associated with the verbs
    FTA_NoEditVerbExe           = 0x00001000, // no editing of the verb's exe
    FTA_NoDDE                   = 0x00002000, // no editing of the DDE fields

    FTA_NoEditMIME              = 0x00008000, // no editing of the Content Type or Default Extension fields
    FTA_OpenIsSafe              = 0x00010000, // the open verb should be invoked automaticaly for downloaded files
    FTA_AlwaysUnsafe            = 0x00020000, // don't allow the "Never ask me" checkbox to be enabled; File Type dialog still allows user to turn this off

    FTA_NoRecentDocs            = 0x00100000, // don't add this file type to the Recent Documents folder
    FTA_SafeForElevation        = 0x00200000, // Win8: can be launched in medium IL by a process running in AppContainer
    FTA_AlwaysUseDirectInvoke   = 0x00400000, // Win8: when downloading use the direct invoke feature even if the server headers are not provided
} FILETYPEATTRIBUTEFLAGS;
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.16299.0\um\shlwapi.h(1750,0)
  • Ifndef NOSHLWAPI
  • Ifndef NO_SHLWAPI_REG
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
36 0.3129756 RESTRICTIONS Enum
typedef enum RESTRICTIONS
{
    REST_NONE                       = 0x00000000,
    REST_NORUN                      = 0x00000001,
    REST_NOCLOSE                    = 0x00000002,
    REST_NOSAVESET                  = 0x00000004,
    REST_NOFILEMENU                 = 0x00000008,
    REST_NOSETFOLDERS               = 0x00000010,
    REST_NOSETTASKBAR               = 0x00000020,
    REST_NODESKTOP                  = 0x00000040,
    REST_NOFIND                     = 0x00000080,
    REST_NODRIVES                   = 0x00000100,
    REST_NODRIVEAUTORUN             = 0x00000200,
    REST_NODRIVETYPEAUTORUN         = 0x00000400,
    REST_NONETHOOD                  = 0x00000800,
    REST_STARTBANNER                = 0x00001000,
    REST_RESTRICTRUN                = 0x00002000,
    REST_NOPRINTERTABS              = 0x00004000,
    REST_NOPRINTERDELETE            = 0x00008000,
    REST_NOPRINTERADD               = 0x00010000,
    REST_NOSTARTMENUSUBFOLDERS      = 0x00020000,
    REST_MYDOCSONNET                = 0x00040000,
    REST_NOEXITTODOS                = 0x00080000,
    REST_ENFORCESHELLEXTSECURITY    = 0x00100000,
    REST_LINKRESOLVEIGNORELINKINFO  = 0x00200000,
    REST_NOCOMMONGROUPS             = 0x00400000,
    REST_SEPARATEDESKTOPPROCESS     = 0x00800000,
    REST_NOWEB                      = 0x01000000,
    REST_NOTRAYCONTEXTMENU          = 0x02000000,
    REST_NOVIEWCONTEXTMENU          = 0x04000000,
    REST_NONETCONNECTDISCONNECT     = 0x08000000,
    REST_STARTMENULOGOFF            = 0x10000000,
    REST_NOSETTINGSASSIST           = 0x20000000,
    REST_NOINTERNETICON             = 0x40000001,
    REST_NORECENTDOCSHISTORY        = 0x40000002,
    REST_NORECENTDOCSMENU           = 0x40000003,
    REST_NOACTIVEDESKTOP            = 0x40000004,
    REST_NOACTIVEDESKTOPCHANGES     = 0x40000005,
    REST_NOFAVORITESMENU            = 0x40000006,
    REST_CLEARRECENTDOCSONEXIT      = 0x40000007,
    REST_CLASSICSHELL               = 0x40000008,
    REST_NOCUSTOMIZEWEBVIEW         = 0x40000009,
    REST_NOHTMLWALLPAPER            = 0x40000010,
    REST_NOCHANGINGWALLPAPER        = 0x40000011,
    REST_NODESKCOMP                 = 0x40000012,
    REST_NOADDDESKCOMP              = 0x40000013,
    REST_NODELDESKCOMP              = 0x40000014,
    REST_NOCLOSEDESKCOMP            = 0x40000015,
    REST_NOCLOSE_DRAGDROPBAND       = 0x40000016,   // Disable Close and Drag & Drop on ALL Bands
    REST_NOMOVINGBAND               = 0x40000017,   // Disable Moving ALL Bands
    REST_NOEDITDESKCOMP             = 0x40000018,
    REST_NORESOLVESEARCH            = 0x40000019,
    REST_NORESOLVETRACK             = 0x4000001A,
    REST_FORCECOPYACLWITHFILE       = 0x4000001B,
    REST_NOLOGO3CHANNELNOTIFY       = 0x4000001C,
    REST_NOFORGETSOFTWAREUPDATE     = 0x4000001D,
    REST_NOSETACTIVEDESKTOP         = 0x4000001E,   // No Active desktop on Settings Menu
    REST_NOUPDATEWINDOWS            = 0x4000001F,   // No Windows Update on Settings Menu
    REST_NOCHANGESTARMENU           = 0x40000020,   // No Context menu or Drag and Drop on Start menu
    REST_NOFOLDEROPTIONS            = 0x40000021,   // No Folder Options on Settings Menu
    REST_HASFINDCOMPUTERS           = 0x40000022,   // Show Start/Search/Computers
    REST_INTELLIMENUS               = 0x40000023,
    REST_RUNDLGMEMCHECKBOX          = 0x40000024,
    REST_ARP_ShowPostSetup          = 0x40000025,   // ARP: Show Post-Setup page
    REST_NOCSC                      = 0x40000026,   // Disable the ClientSide caching on SM
    REST_NOCONTROLPANEL             = 0x40000027,   // Remove the Control Panel only from SM|Settings
    REST_ENUMWORKGROUP              = 0x40000028,   // Enumerate workgroup in root of nethood
    REST_ARP_NOARP                  = 0x40000029,   // ARP: Don't Allow ARP to come up at all
    REST_ARP_NOREMOVEPAGE           = 0x4000002A,   // ARP: Don't allow Remove page
    REST_ARP_NOADDPAGE              = 0x4000002B,   // ARP: Don't allow Add page
    REST_ARP_NOWINSETUPPAGE         = 0x4000002C,   // ARP: Don't allow opt components page
    REST_GREYMSIADS                 = 0x4000002D,    // SM: Allow the greying of Darwin Ads in SM
    REST_NOCHANGEMAPPEDDRIVELABEL   = 0x4000002E,   // Don't enable the UI which allows users to rename mapped drive labels
    REST_NOCHANGEMAPPEDDRIVECOMMENT = 0x4000002F,   // Don't enable the UI which allows users to change mapped drive comments
    REST_MaxRecentDocs              = 0x40000030,
    REST_NONETWORKCONNECTIONS       = 0x40000031,   // No Start Menu | Settings |Network Connections
    REST_FORCESTARTMENULOGOFF       = 0x40000032,   // Force logoff on the Start Menu
    REST_NOWEBVIEW                  = 0x40000033,   // Disable Web View
    REST_NOCUSTOMIZETHISFOLDER      = 0x40000034,   // Disable Customize This Folder
    REST_NOENCRYPTION               = 0x40000035,   // Don't allow file encryption
    REST_DONTSHOWSUPERHIDDEN        = 0x40000037,   // don't show super hidden files
    REST_NOSHELLSEARCHBUTTON        = 0x40000038,
    REST_NOHARDWARETAB              = 0x40000039,   // No Hardware tab on Drives or in control panel
    REST_NORUNASINSTALLPROMPT       = 0x4000003A,   // Don't bring up "Run As" prompt for install programs
    REST_PROMPTRUNASINSTALLNETPATH  = 0x4000003B,   // Force the  "Run As" prompt for install programs on unc/network shares
    REST_NOMANAGEMYCOMPUTERVERB     = 0x4000003C,   // No Manage verb on My Computer
    REST_DISALLOWRUN                = 0x4000003E,   // don't allow certain apps to be run
    REST_NOWELCOMESCREEN            = 0x4000003F,   // don't allow the welcome screen to be displayed.
    REST_RESTRICTCPL                = 0x40000040,   // only allow certain cpls to be run
    REST_DISALLOWCPL                = 0x40000041,   // don't allow certain cpls to be run
    REST_NOSMBALLOONTIP             = 0x40000042,   // No Start Menu Balloon Tip
    REST_NOSMHELP                   = 0x40000043,   // No Help on the Start Menu
    REST_NOWINKEYS                  = 0x40000044,   // No Windows-X Hot keys
    REST_NOENCRYPTONMOVE            = 0x40000045,   // Don't automatically try to encrypt files that are moved to encryped directories
    REST_NOLOCALMACHINERUN          = 0x40000046,   // ignore HKLM\sw\ms\win\cv\Run and all of it's sub keys
    REST_NOCURRENTUSERRUN           = 0x40000047,   // ignore HKCU\sw\ms\win\cv\Run and all of it's sub keys
    REST_NOLOCALMACHINERUNONCE      = 0x40000048,   // ignore HKLM\sw\ms\win\cv\RunOnce and all of it's sub keys
    REST_NOCURRENTUSERRUNONCE       = 0x40000049,   // ignore HKCU\sw\ms\win\cv\RunOnce and all of it's sub keys
    REST_FORCEACTIVEDESKTOPON       = 0x4000004A,   // Force ActiveDesktop to be turned ON all the time.
    REST_NOVIEWONDRIVE              = 0x4000004C,   // disallows CreateViewObject() on specified drives (CFSFolder only)
    REST_NONETCRAWL                 = 0x4000004D,   // disables the crawling of the WNet namespace.
    REST_NOSHAREDDOCUMENTS          = 0x4000004E,   // don't auto share the Shared Documents/create link
    REST_NOSMMYDOCS                 = 0x4000004F,   // Don't show the My Documents item on the Start Menu.
    REST_NOSMMYPICS                 = 0x40000050,   // Don't show the My Pictures item on the Start Menu
    REST_ALLOWBITBUCKDRIVES         = 0x40000051,   // Bit mask indicating which which drives have bit bucket support
    REST_NONLEGACYSHELLMODE         = 0x40000052,   // new consumer shell modes
    REST_NOCONTROLPANELBARRICADE    = 0x40000053,   // The webview barricade in Control Panel
    REST_NOSTARTPAGE                = 0x40000054,   // Whistler Start Page on desktop.
    REST_NOAUTOTRAYNOTIFY           = 0x40000055,   // Whistler auto-tray notify feature
    REST_NOTASKGROUPING             = 0x40000056,   // Whistler taskbar button grouping feature
    REST_NOCDBURNING                = 0x40000057,   // whistler cd burning feature
    REST_MYCOMPNOPROP               = 0x40000058,   // disables Properties on My Computer's context menu
    REST_MYDOCSNOPROP               = 0x40000059,   // disables Properties on My Documents' context menu
    REST_NOSTARTPANEL               = 0x4000005A,   // Windows start panel (New start menu) for Whistler.
    REST_NODISPLAYAPPEARANCEPAGE    = 0x4000005B,   // disable Themes and Appearance tabs in the Display Control Panel.
    REST_NOTHEMESTAB                = 0x4000005C,   // disable the Themes tab in the Display Control Panel.
    REST_NOVISUALSTYLECHOICE        = 0x4000005D,   // disable the visual style drop down in the Appearance tab of the Display Control Panel.
    REST_NOSIZECHOICE               = 0x4000005E,   // disable the size drop down in the Appearance tab of the Display Control Panel.
    REST_NOCOLORCHOICE              = 0x4000005F,   // disable the color drop down in the Appearance tab of the Display Control Panel.
    REST_SETVISUALSTYLE             = 0x40000060,   // Load the specified file as the visual style.
    REST_STARTRUNNOHOMEPATH         = 0x40000061,   // dont use the %HOMEPATH% env var for the Start-Run dialog
    REST_NOUSERNAMEINSTARTPANEL     = 0x40000062,   // don't show the username is the startpanel.
    REST_NOMYCOMPUTERICON           = 0x40000063,   // don't show my computer anywhere, hide its contents
    REST_NOSMNETWORKPLACES          = 0x40000064,   // don't show network places in startpanel.
    REST_NOSMPINNEDLIST             = 0x40000065,   // don't show the pinned list in startpanel.
    REST_NOSMMYMUSIC                = 0x40000066,   // don't show MyMusic folder in startpanel
    REST_NOSMEJECTPC                = 0x40000067,   // don't show "Undoc PC" command in startmenu
    REST_NOSMMOREPROGRAMS           = 0x40000068,   // don't show "More Programs" button in StartPanel.
    REST_NOSMMFUPROGRAMS            = 0x40000069,   // don't show the MFU programs list in StartPanel.
    REST_NOTRAYITEMSDISPLAY         = 0x4000006A,   // disables the display of the system tray
    REST_NOTOOLBARSONTASKBAR        = 0x4000006B,   // disables toolbar display on the taskbar
    REST_NOSMCONFIGUREPROGRAMS      = 0x4000006F,   // No Configure Programs on Settings Menu
    REST_HIDECLOCK                  = 0x40000070,   // don't show the clock
    REST_NOLOWDISKSPACECHECKS       = 0x40000071,   // disable the low disk space checking
    REST_NOENTIRENETWORK            = 0x40000072,   // removes the "Entire Network" link (i.e. from "My Network Places")
    REST_NODESKTOPCLEANUP           = 0x40000073,   // disable the desktop cleanup wizard
    REST_BITBUCKNUKEONDELETE        = 0x40000074,   // disables recycling of files
    REST_BITBUCKCONFIRMDELETE       = 0x40000075,   // always show the delete confirmation dialog when deleting files
    REST_BITBUCKNOPROP              = 0x40000076,   // disables Properties on Recycle Bin's context menu
    REST_NODISPBACKGROUND           = 0x40000077,   // disables the Desktop tab in the Display CPL
    REST_NODISPSCREENSAVEPG         = 0x40000078,   // disables the Screen Saver tab in the Display CPL
    REST_NODISPSETTINGSPG           = 0x40000079,   // disables the Settings tab in the Display CPL
    REST_NODISPSCREENSAVEPREVIEW    = 0x4000007A,   // disables the screen saver on the Screen Saver tab in the Display CPL
    REST_NODISPLAYCPL               = 0x4000007B,   // disables the Display CPL
    REST_HIDERUNASVERB              = 0x4000007C,   // hides the "Run As..." context menu item
    REST_NOTHUMBNAILCACHE           = 0x4000007D,   // disables use of the thumbnail cache
    REST_NOSTRCMPLOGICAL            = 0x4000007E,   // dont use StrCmpLogical() instead use default CompareString()
    REST_NOPUBLISHWIZARD            = 0x4000007F,   // disables publishing wizard (WPW)
    REST_NOONLINEPRINTSWIZARD       = 0x40000080,   // disables online prints wizard (OPW)
    REST_NOWEBSERVICES              = 0x40000081,   // disables the web specified services for both OPW and WPW
    REST_ALLOWUNHASHEDWEBVIEW       = 0x40000082,   // allow the user to be promted to accept web view templates that don't already have an md5 hash in the registry
    REST_ALLOWLEGACYWEBVIEW         = 0x40000083,   // allow legacy webview template to be shown.
    REST_REVERTWEBVIEWSECURITY      = 0x40000084,   // disable added webview security measures (revert to w2k functionality).
    REST_INHERITCONSOLEHANDLES      = 0x40000086,   // ShellExec() will check for the current process and target process being console processes to inherit handles
    REST_SORTMAXITEMCOUNT           = 0x40000087,   // Do not sort views with more items than this key. Useful for viewing big amount of files in one folder.
    REST_NOREMOTERECURSIVEEVENTS    = 0x40000089,   // Dont register network change events recursively to avoid network traffic
    REST_NOREMOTECHANGENOTIFY       = 0x40000091,   // Do not notify for remote changy notifies
    REST_NOSIMPLENETIDLIST          = 0x40000092,   // No simple network IDLists
    REST_NOENUMENTIRENETWORK        = 0x40000093,   // Don't enumerate entire network if we happen to get to it (in conjunction with REST_NOENTIRENETWORK)
    REST_NODETAILSTHUMBNAILONNETWORK= 0x40000094,   // Disable Thumbnail for Network files in DUI Details pane
    REST_NOINTERNETOPENWITH         = 0x40000095,   // dont allow looking on the internet for file associations
    REST_DONTRETRYBADNETNAME        = 0x4000009B,   // In Network Places: if provider returns ERROR_BAD_NET_NAME, give up
    REST_ALLOWFILECLSIDJUNCTIONS    = 0x4000009C,   // re-enable legacy support for file.{guid} junctions in FileSystem Folder
    REST_NOUPNPINSTALL              = 0x4000009D,   // disable "install UPnP" task in My Net Places
    REST_ARP_DONTGROUPPATCHES       = 0x400000AC,   //List individual patches in Add/Remove Programs
    REST_ARP_NOCHOOSEPROGRAMSPAGE   = 0x400000AD,   //Choose programs page

    REST_NODISCONNECT               = 0x41000001,   // No Disconnect option in Start menu
    REST_NOSECURITY                 = 0x41000002,   // No Security option in start menu
    REST_NOFILEASSOCIATE            = 0x41000003,   // Do not allow user to change file association
    REST_ALLOWCOMMENTTOGGLE         = 0x41000004,   // Allow the user to toggle the positions of the Comment and the Computer Name
    REST_USEDESKTOPINICACHE         = 0x41000005,   // Cache desktop.ini entries from network folders
} RESTRICTIONS;
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.16299.0\um\shlobj_core.h(2476,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
  • If (NTDDI_VERSION < NTDDI_VISTA)
  • If (NTDDI_VERSION >= NTDDI_WINXP) || defined(IE_BACKCOMPAT_VERSION)
  • If (NTDDI_VERSION >= NTDDI_WINXP)
  • If (NTDDI_VERSION >= NTDDI_WIN2KSP3)
  • If (NTDDI_VERSION >= NTDDI_WIN2KSP4)
  • If (NTDDI_VERSION >= NTDDI_WINXPSP1) || defined(IE_BACKCOMPAT_VERSION)
  • If (NTDDI_VERSION >= NTDDI_WINXPSP2 && NTDDI_VERSION < NTDDI_VISTA)
  • If (NTDDI_VERSION >= NTDDI_WINXPSP2)