How does it work?

MagNumDB is a database that contains about 350,000 items. These items are constants, names, values all extracted from more than 6,000 header files (.h, .hxx, .hpp, .idl, etc.) provided by standard Windows and Visual Studio SDKs and WDKs.

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. This can explain some duplicates (because names in uuid.lib are not always exactly the same as names in .h parsed files...).

It also contains around 36,0000 undocumented guids that we found ... meeeeep ...

 "C2P5"

To build this database, we have tried many existing parsers, things like CLANG or other fine tools, but they just don't suit our needs. They can't handle thousands of files that don't compile together, they can't handle some specific (or just very old) Microsoft constructs or annotations, they don't remember the stack of #define directives that led to a definition, they only give you a final AST, not a partial one, etc.

So, in the end, we have written a C/C++ parser named C2P5 (for C/CPP/PreProcessor/Parser), tailored specifically for computing constants. 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) on a 32G RAM machine. 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++ constants, strings and enum definitions, and some level of pointerness
  • Special GUID constructs like DECLSPEC_UUID, DEFINE_GUIDSTRUCT, MIDL_INTERFACE, you name it
  • PROPERTYKEY constructs
  • 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 stack.

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 PROPERTYKEY, 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 database'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 database'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: Database'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 database 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 always compute the final value, because it sometimes require contextual information (custom defines, compiler architecture, etc.) that the parser doesn't have at parsing time. 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.

  • Q: I sometimes get back the same item/name twice or more with different values. For example:  TARGET_IS_NT60_OR_LATER. Why?
    A: This can be the case with defines. Their value may be different if they were surrounded by # directives (#if, #else, etc.) in the original source code. You can enable the Condition(s) column to check what are the corresponding conditions for a given item.
    Note: if a condition is surrounded with a funny REVERSE function token, it means the reverse condition of what's surrounded.

 Database Metrics

  • Last update date: Thursday August 29, 2019
  • Items count: 350276
  • Parsed files count: 7563
  • Windows SDK version: 10.0.18362.0
  • NetFx SDK version: 4.8
  • MSVC Tools version: 14.22.27905

 

 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-2019 Simon Mourier V1.3.1. 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 Condition(s)
Index Score Name Type Value Hex value Signed value Guid formats Char type Storage type Source line(s) File path Condition(s)
1 5.258928 PosPrinterBarcodeTextPosition::Above Int32 1 0x00000001 1 System.Int32
Above = 1,
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.18362.0\winrt\windows.devices.pointofservice.idl(783,0)
2 3.505952 SV_TYPE_WINDOWS Int32 4194304 0x00400000 4194304 System.Int32
#define SV_TYPE_WINDOWS             0x00400000  /* Windows95 and above */
#define SV_TYPE_WINDOWS             0x00400000  /* Windows95 and above */
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.18362.0\um\lmserver.h(1096,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM)
3 3.505952 SQL_API_ALL_FUNCTIONS Int32 0 0x00000000 0 System.Int32
#define SQL_API_ALL_FUNCTIONS       0       /* See CAUTION above */
#define SQL_API_ALL_FUNCTIONS       0       /* See CAUTION above */
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.18362.0\um\sqlext.h(721,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
4 3.505952 SQL_API_LOADBYORDINAL Int32 199 0x000000C7 -57 System.Int32
#define SQL_API_LOADBYORDINAL       199     /* See CAUTION above */
#define SQL_API_LOADBYORDINAL       199     /* See CAUTION above */
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.18362.0\um\sqlext.h(732,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
5 3.505952 DMUS_PORTPARAMS_FEATURES Int32 128 0x00000080 -128 System.Int32
#define DMUS_PORTPARAMS_FEATURES         0x00000080     /* DirectX 8.0 and above */
#define DMUS_PORTPARAMS_FEATURES         0x00000080     /* DirectX 8.0 and above */
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.18362.0\um\dmusicc.h(123,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
  • If (NTDDI_VERSION >= NTDDI_WINXP)
6 3.098853 DXGI_DDI_MULTIPLANE_OVERLAY_FEATURE_CAPS::DXGI_DDI_MULTIPLANE_OVERLAY_FEATURE_CAPS_STEREO Int32 16 0x00000010 16 System.Int32
DXGI_DDI_MULTIPLANE_OVERLAY_FEATURE_CAPS_STEREO                            = 0x10,    // D3D10 or above only.
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.18362.0\um\dxgiddi.h(318,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
  • If (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WIN8)
7 3.098853 SPATIAL_AUDIO_STANDARD_COMMANDS_START Int32 200 0x000000C8 -56 System.Int32
#define SPATIAL_AUDIO_STANDARD_COMMANDS_START   200     // 200 and above is reserved
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.18362.0\um\SpatialAudioMetadata.h(123,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)
8 3.098853 D3DTEXTUREOP::D3DTOP_ADDSIGNED2X Int32 9 0x00000009 9 System.Int32
D3DTOP_ADDSIGNED2X          =  9,   // as above but left  1 bit
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.18362.0\shared\d3d9types.h(583,0)
  • If (DIRECT3D_VERSION >= 0x0900)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
  • If (DIRECT3D_VERSION >= 0x0600)
  • If (DIRECT3D_VERSION < 0x0800)
9 3.098853 PMSF_DONT_STRIP_SPACES Int32 65536 0x00010000 65536 System.Int32
#define PMSF_DONT_STRIP_SPACES 0x00010000  // modifies either of the above
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.18362.0\um\shlwapi.h(757,0)
  • Ifndef NOSHLWAPI
  • Ifndef NO_SHLWAPI_PATH
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
  • If (_WIN32_IE >= _WIN32_IE_IE70)
10 3.098853 SHGVSPB_ROAM Int32 32 0x00000020 32 System.Int32
#define SHGVSPB_ROAM                0x00000020 // modifies the above
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.18362.0\um\shlwapi.h(2030,0)
  • Ifndef NOSHLWAPI
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
  • If (_WIN32_IE >= 0x0600)
11 3.098853 PPP_EAP_ACTION::EAPACTION_SendWithTimeoutInteractive Int32 6 0x00000006 6 System.Int32
EAPACTION_SendWithTimeoutInteractive,  // As above, but don't increment
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.18362.0\um\Raseapif.h(470,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
  • If (WINVER >= 0x0500)
12 3.098853 DWMFLIP3DWINDOWPOLICY::DWMFLIP3D_EXCLUDEABOVE Int32 2 0x00000002 2 System.Int32
DWMFLIP3D_EXCLUDEABOVE, // Display the window above Flip3D and enabled.
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.18362.0\um\dwmapi.h(75,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
13 3.098853 PosPrinterBarcodeTextPosition Enum
enum PosPrinterBarcodeTextPosition
            {
                None  = 0,
                Above = 1,
                Below = 2
            };
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.18362.0\winrt\windows.devices.pointofservice.idl(780,0)
14 3.098853 PEP_DPM_COMPONENT_ACTIVE Int32 7 0x00000007 7 System.Int32
#define PEP_DPM_COMPONENT_ACTIVE                        0x07 // Deprecated: see above
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.18362.0\km\pep_x.h(599,0)
  • If (NTDDI_VERSION >= NTDDI_WIN8)
15 3.098853 PEP_NOTIFY_PPM_QUERY_IDLE_STATES Int32 2 0x00000002 2 System.Int32
#define PEP_NOTIFY_PPM_QUERY_IDLE_STATES                0x02 // Deprecated: see above
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.18362.0\km\pep_x.h(672,0)
  • If (NTDDI_VERSION >= NTDDI_WIN8)
16 3.098853 PEP_NOTIFY_PPM_IDLE_SELECT Int32 3 0x00000003 3 System.Int32
#define PEP_NOTIFY_PPM_IDLE_SELECT                      0x03 // Deprecated: see above
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.18362.0\km\pep_x.h(673,0)
  • If (NTDDI_VERSION >= NTDDI_WIN8)
17 3.098853 PEP_NOTIFY_PPM_IDLE_CANCEL Int32 4 0x00000004 4 System.Int32
#define PEP_NOTIFY_PPM_IDLE_CANCEL                      0x04 // Deprecated: see above
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.18362.0\km\pep_x.h(674,0)
  • If (NTDDI_VERSION >= NTDDI_WIN8)
18 3.098853 PEP_NOTIFY_PPM_QUERY_LP_SETTINGS Int32 17 0x00000011 17 System.Int32
#define PEP_NOTIFY_PPM_QUERY_LP_SETTINGS                0x11 // Deprecated: see above
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.18362.0\km\pep_x.h(687,0)
  • If (NTDDI_VERSION >= NTDDI_WIN8)
19 2.629464 NERR_RplLoadrNetBiosErr Int32 2506 0x000009CA 2506 System.Int32
#define NERR_RplLoadrNetBiosErr (NERR_BASE+406) /* NetBIOS returned an error: The NCB and SMB are dumped above.*/
#define NERR_RplLoadrNetBiosErr (NERR_BASE+406) /* NetBIOS returned an error: The NCB and SMB are dumped above.*/
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.18362.0\shared\lmerr.h(472,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
20 2.479082 MsrDataEncryption::MsrDataEncryption_ExtendedBase Int32 3 0x00000003 3 System.Int32
MsrDataEncryption_ExtendedBase  // Values 0x01000000 and above are reserved for additional encryption algorithms supported by the service
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.18362.0\shared\pointofservicedriverinterface.h(765,0)
  • If (NTDDI_VERSION >= NTDDI_WINTHRESHOLD)
21 2.479082 GMR_DAYSTATE Int32 1 0x00000001 1 System.Int32
#define GMR_DAYSTATE    1       // above plus the grayed out parts of
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.18362.0\um\commctrl.h(6640,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
  • Ifndef NOUSER
  • Ifndef NOMONTHCAL
  • Ifdef _WIN32
22 2.479082 PERF_NO_INSTANCES Int32 -1 0xFFFFFFFF -1 System.Int32
#define PERF_NO_INSTANCES           -1  // no instances (see NumInstances above)
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.18362.0\um\winperf.h(177,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
23 2.479082 GPC_BLOCK_POLICY Int32 1 0x00000001 1 System.Int32
#define GPC_BLOCK_POLICY        0x00000001  // Block all non-forced policy from above
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.18362.0\um\UserEnv.h(669,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM)
  • If (WINVER >= 0x0500)
24 2.479082 PPP_EAP_ACTION::EAPACTION_SendAndDone Int32 3 0x00000003 3 System.Int32
EAPACTION_SendAndDone,  // As above but send message without timeout first
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.18362.0\um\Raseapif.h(467,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
  • If (WINVER >= 0x0500)
25 2.479082 CFM_BACKCOLOR Int32 67108864 0x04000000 67108864 System.Int32
#define CFM_BACKCOLOR		0x04000000		// Higher mask bits defined above
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.18362.0\um\Richedit.h(891,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
26 2.479082 ED_MODE Int32 4596 0x000011F4 4596 System.Int32
#define ED_MODE					ED_BASE+500L	// see ED_MODE_xxx values above
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.18362.0\um\edevdefs.h(279,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
27 2.479082 XAUDIO2_FILTER_TYPE::LowPassFilter Int32 0 0x00000000 0 System.Int32
LowPassFilter,                      // Attenuates frequencies above the cutoff frequency (state-variable filter).
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.18362.0\um\xaudio2.h(280,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_TV_APP | WINAPI_PARTITION_TV_TITLE | WINAPI_PARTITION_GAMES)
  • Ifndef GUID_DEFS_ONLY
28 2.479082 XAUDIO2_FILTER_TYPE::LowPassOnePoleFilter Int32 4 0x00000004 4 System.Int32
LowPassOnePoleFilter,               // Attenuates frequencies above the cutoff frequency (one-pole filter, XAUDIO2_FILTER_PARAMETERS.OneOverQ has no effect)
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.18362.0\um\xaudio2.h(284,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_TV_APP | WINAPI_PARTITION_TV_TITLE | WINAPI_PARTITION_GAMES)
  • Ifndef GUID_DEFS_ONLY
29 2.479082 SMB_INFO_PASSTHROUGH Int32 1000 0x000003E8 1000 System.Int32
#define SMB_INFO_PASSTHROUGH            1000    // any info above here is a simple pass-through
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.18362.0\km\cifs.h(4464,0)
30 2.479082 DOSLANMAN12 String DOS LM1.2X002 Narrow System.TypedString
#define DOSLANMAN12     "DOS LM1.2X002" /* DOS equivalant of above.  Final
                                         * string will be "DOS LANMAN2.0" */
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.18362.0\km\cifs.h(6261,0)
31 2.479082 IMAGE_REL_PPC_TYPEMASK Int32 255 0x000000FF -1 System.Int32
#define IMAGE_REL_PPC_TYPEMASK          0x00FF  // mask to isolate above values in IMAGE_RELOCATION.Type
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.18362.0\um\winnt.h(17582,0)
32 2.479082 Placement Enum
enum Placement
            {
                Default = 0,
                Above   = 1,
                Below   = 2,
                Left    = 3,
                Right   = 4
            };
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.18362.0\winrt\windows.ui.popups.idl(98,0)
33 2.479082 CRIT_MAX Int32 17 0x00000011 17 System.Int32
#define CRIT_MAX    17  // Note: above plus one!
%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.16.27023\atlmfc\src\mfc\afximpl.h(468,0)
34 2.479082 IDG_TOOLS_SNIPPETS Int32 16021 0x00003E95 16021 System.Int32
#define IDG_TOOLS_SNIPPETS                      0x3E95  //actually on the tools menu defined above
%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Professional\VSSDK\VisualStudioIntegration\Common\Inc\vsshlids.h(683,0)
35 2.479082 OPCODE_FORMAT::PrimaryMask Int32 15 0x0000000F 15 System.Int32
PrimaryMask   	= (ShortInline-1),			// mask these off to get primary enumeration above
%ProgramFiles(x86)%\Windows Kits\NETFXSDK\4.8\include\um\openum.h(42,0)
36 2.169197 MsrDataEncryption Enum
typedef enum _MsrDataEncryption
{
    MsrDataEncryption_None,
    MsrDataEncryption_3DEA_DUKPT,
    MsrDataEncryption_AES,
    MsrDataEncryption_ExtendedBase  // Values 0x01000000 and above are reserved for additional encryption algorithms supported by the service
} MsrDataEncryption;
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.18362.0\shared\pointofservicedriverinterface.h(760,0)
  • If (NTDDI_VERSION >= NTDDI_WINTHRESHOLD)
37 1.859312 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.18362.0\um\dwmapi.h(71,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
38 1.752976 PPP_EAP_ACTION Enum
typedef enum _PPP_EAP_ACTION
{

    EAPACTION_NoAction,     // Be passive, i.e. listen without timeout (default)
    EAPACTION_Authenticate, // Invoke the back-end authenticator.
    EAPACTION_Done,         // End auth session, dwAuthResultCode is set
    EAPACTION_SendAndDone,  // As above but send message without timeout first
    EAPACTION_Send,         // Send message, don't timeout waiting for reply
    EAPACTION_SendWithTimeout, // Send message, timeout if reply not received
    EAPACTION_SendWithTimeoutInteractive,  // As above, but don't increment

    EAPACTION_IndicateTLV,		// Do not use
    EAPACTION_IndicateIdentity	// Do not use
}PPP_EAP_ACTION;
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.18362.0\um\Raseapif.h(455,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
  • If (WINVER >= 0x0500)
39 1.549426 JET_bitStopServiceResume UInt32 2147483648 0x80000000 -2147483648 System.UInt32
#define JET_bitStopServiceResume                    0x80000000  //  Resumes previously issued StopService operations, i.e. "restarts service".  Can be combined with above grbits to Resume specific services, or with JET_bitStopServiceAll to Resume all previously stopped services.
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.18362.0\um\esent.h(3038,0)
  • If !defined(_JET_INCLUDED)
  • If ( JET_VERSION >= 0x0602 )
40 1.533854 XAUDIO2_FILTER_TYPE Enum
typedef enum XAUDIO2_FILTER_TYPE
{
    LowPassFilter,                      // Attenuates frequencies above the cutoff frequency (state-variable filter).
    BandPassFilter,                     // Attenuates frequencies outside a given range      (state-variable filter).
    HighPassFilter,                     // Attenuates frequencies below the cutoff frequency (state-variable filter).
    NotchFilter,                        // Attenuates frequencies inside a given range       (state-variable filter).
    LowPassOnePoleFilter,               // Attenuates frequencies above the cutoff frequency (one-pole filter, XAUDIO2_FILTER_PARAMETERS.OneOverQ has no effect)
    HighPassOnePoleFilter               // Attenuates frequencies below the cutoff frequency (one-pole filter, XAUDIO2_FILTER_PARAMETERS.OneOverQ has no effect)
} XAUDIO2_FILTER_TYPE;
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.18362.0\um\xaudio2.h(278,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_TV_APP | WINAPI_PARTITION_TV_TITLE | WINAPI_PARTITION_GAMES)
  • Ifndef GUID_DEFS_ONLY
41 1.314732 ReplacesCorHdrNumericDefines Enum
typedef enum ReplacesCorHdrNumericDefines
{
    COMIMAGE_FLAGS_ILONLY               =0x00000001,
    COMIMAGE_FLAGS_32BITREQUIRED        =0x00000002,    // *** Do not manipulate this bit directly (see notes above)
    COMIMAGE_FLAGS_IL_LIBRARY           =0x00000004,
    COMIMAGE_FLAGS_STRONGNAMESIGNED     =0x00000008,
    COMIMAGE_FLAGS_NATIVE_ENTRYPOINT    =0x00000010,
    COMIMAGE_FLAGS_TRACKDEBUGDATA       =0x00010000,
    COMIMAGE_FLAGS_32BITPREFERRED       =0x00020000,    // *** Do not manipulate this bit directly (see notes above)
    

    COR_VERSION_MAJOR_V2                =2,
    COR_VERSION_MAJOR                   =COR_VERSION_MAJOR_V2,
    COR_VERSION_MINOR                   =5,
    COR_DELETED_NAME_LENGTH             =8,
    COR_VTABLEGAP_NAME_LENGTH           =8,

    NATIVE_TYPE_MAX_CB                  =1,   
    COR_ILMETHOD_SECT_SMALL_MAX_DATASIZE=0xFF,

    COR_VTABLE_32BIT                    =0x01,          // V-table slots are 32-bits in size.   
    COR_VTABLE_64BIT                    =0x02,          // V-table slots are 64-bits in size.   
    COR_VTABLE_FROM_UNMANAGED           =0x04,          // If set, transition from unmanaged.
    COR_VTABLE_FROM_UNMANAGED_RETAIN_APPDOMAIN=0x08,    // NEW
    COR_VTABLE_CALL_MOST_DERIVED        =0x10,          // Call most derived method described by

    MAX_CLASS_NAME                      =1024,
    MAX_PACKAGE_NAME                    =1024,
} ReplacesCorHdrNumericDefines;
%ProgramFiles(x86)%\Windows Kits\NETFXSDK\4.8\include\um\CorHdr.h(140,0)
42 1.239541 DXGI_DDI_MULTIPLANE_OVERLAY_FEATURE_CAPS Enum
typedef enum DXGI_DDI_MULTIPLANE_OVERLAY_FEATURE_CAPS
{
    DXGI_DDI_MULTIPLANE_OVERLAY_FEATURE_CAPS_ROTATION_WITHOUT_INDEPENDENT_FLIP = 0x1,
    DXGI_DDI_MULTIPLANE_OVERLAY_FEATURE_CAPS_VERTICAL_FLIP                     = 0x2,
    DXGI_DDI_MULTIPLANE_OVERLAY_FEATURE_CAPS_HORIZONTAL_FLIP                   = 0x4,
    DXGI_DDI_MULTIPLANE_OVERLAY_FEATURE_CAPS_DEINTERLACE                       = 0x8, 
    DXGI_DDI_MULTIPLANE_OVERLAY_FEATURE_CAPS_STEREO                            = 0x10,    // D3D10 or above only.
    DXGI_DDI_MULTIPLANE_OVERLAY_FEATURE_CAPS_RGB                               = 0x20,
    DXGI_DDI_MULTIPLANE_OVERLAY_FEATURE_CAPS_YUV                               = 0x40,
    DXGI_DDI_MULTIPLANE_OVERLAY_FEATURE_CAPS_BILINEAR_FILTER                   = 0x80,    // Can do bilinear stretching
    DXGI_DDI_MULTIPLANE_OVERLAY_FEATURE_CAPS_HIGH_FILTER                       = 0x100,   // Can do better than bilinear stretching
    DXGI_DDI_MULTIPLANE_OVERLAY_FEATURE_CAPS_ROTATION                          = 0x200,
    DXGI_DDI_MULTIPLANE_OVERLAY_FEATURE_CAPS_FULLSCREEN_POST_COMPOSITION       = 0x400,
    DXGI_DDI_MULTIPLANE_OVERLAY_FEATURE_RESERVED1                              = 0x800,
    DXGI_DDI_MULTIPLANE_OVERLAY_FEATURE_CAPS_SHARED                            = 0x1000,
    DXGI_DDI_MULTIPLANE_OVERLAY_FEATURE_CAPS_IMMEDIATE                         = 0x2000,
    DXGI_DDI_MULTIPLANE_OVERLAY_FEATURE_CAPS_PLANE0_FOR_VIRTUAL_MODE_ONLY      = 0x4000,
} DXGI_DDI_MULTIPLANE_OVERLAY_FEATURE_CAPS;
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.18362.0\um\dxgiddi.h(312,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
  • If (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WIN8)
43 0.9296559 __magnumdb__enum_DbgProp_idl_1 Enum
enum
{

	DBGPROP_ATTRIB_NO_ATTRIB =			0x00000000,

	DBGPROP_ATTRIB_VALUE_IS_INVALID =	0x00000008,		// the value in this slot is invalid
	DBGPROP_ATTRIB_VALUE_IS_EXPANDABLE =0x00000010,		// the object has children
	DBGPROP_ATTRIB_VALUE_IS_FAKE	= 0x00000020,       // the value is fake
	DBGPROP_ATTRIB_VALUE_IS_METHOD	= 0x00000100,       // the value is a method
	DBGPROP_ATTRIB_VALUE_IS_EVENT	= 0x00000200,       // the value is an event
	DBGPROP_ATTRIB_VALUE_IS_RAW_STRING	= 0x00000400,   // the value is a raw string
	DBGPROP_ATTRIB_VALUE_READONLY =		0x00000800,		// the value is read-only



	DBGPROP_ATTRIB_ACCESS_PUBLIC =		0x00001000,
	DBGPROP_ATTRIB_ACCESS_PRIVATE =		0x00002000,
	DBGPROP_ATTRIB_ACCESS_PROTECTED =	0x00004000,
	DBGPROP_ATTRIB_ACCESS_FINAL =		0x00008000,
	DBGPROP_ATTRIB_STORAGE_GLOBAL =		0x00010000,
	DBGPROP_ATTRIB_STORAGE_STATIC =		0x00020000,
	DBGPROP_ATTRIB_STORAGE_FIELD =		0x00040000,
	DBGPROP_ATTRIB_STORAGE_VIRTUAL =	0x00080000,		// this slot is virtual (do we need pure virtual?)
	DBGPROP_ATTRIB_TYPE_IS_CONSTANT =	0x00100000,		// this slot is a constant value
	DBGPROP_ATTRIB_TYPE_IS_SYNCHRONIZED =0x00200000,	// this slot is thread synchronized
	DBGPROP_ATTRIB_TYPE_IS_VOLATILE =	0x00400000,		// this slot is volatile WRT persistent storage
	DBGPROP_ATTRIB_HAS_EXTENDED_ATTRIBS =0x00800000,	// has attributes above and beyond these predefined bits
    DBGPROP_ATTRIB_FRAME_INTRYBLOCK =   0x01000000,		// this frame is in a try block
    DBGPROP_ATTRIB_FRAME_INCATCHBLOCK = 0x02000000,		// this frame is in a catch block
    DBGPROP_ATTRIB_FRAME_INFINALLYBLOCK = 0x04000000,	// this frame is in a finally block

    DBGPROP_ATTRIB_VALUE_IS_RETURN_VALUE = 0x08000000,	// This object is a return value
    DBGPROP_ATTRIB_VALUE_PENDING_MUTATION = 0x10000000,
};
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.18362.0\um\DbgProp.idl(55,0)
44 0.7747132 D3DTEXTUREOP Enum
typedef enum _D3DTEXTUREOP
{
    D3DTOP_DISABLE              = 1,      // disables stage
    D3DTOP_SELECTARG1           = 2,      // the default
    D3DTOP_SELECTARG2           = 3,

    D3DTOP_MODULATE             = 4,      // multiply args together
    D3DTOP_MODULATE2X           = 5,      // multiply and  1 bit
    D3DTOP_MODULATE4X           = 6,      // multiply and  2 bits

    D3DTOP_ADD                  =  7,   // add arguments together
    D3DTOP_ADDSIGNED            =  8,   // add with -0.5 bias
    D3DTOP_ADDSIGNED2X          =  9,   // as above but left  1 bit
    D3DTOP_SUBTRACT             = 10,   // Arg1 - Arg2, with no saturation
    D3DTOP_ADDSMOOTH            = 11,   // add 2 args, subtract product

    D3DTOP_BLENDDIFFUSEALPHA    = 12, // iterated alpha
    D3DTOP_BLENDTEXTUREALPHA    = 13, // texture alpha
    D3DTOP_BLENDFACTORALPHA     = 14, // alpha from D3DRS_TEXTUREFACTOR

    D3DTOP_BLENDTEXTUREALPHAPM  = 15, // texture alpha
    D3DTOP_BLENDCURRENTALPHA    = 16, // by alpha of current color

    D3DTOP_PREMODULATE            = 17,     // modulate with next texture before use
    D3DTOP_MODULATEALPHA_ADDCOLOR = 18,     // Arg1.RGB + Arg1.A*Arg2.RGB
    D3DTOP_MODULATECOLOR_ADDALPHA = 19,     // Arg1.RGB*Arg2.RGB + Arg1.A
    D3DTOP_MODULATEINVALPHA_ADDCOLOR = 20,  // (1-Arg1.A)*Arg2.RGB + Arg1.RGB
    D3DTOP_MODULATEINVCOLOR_ADDALPHA = 21,  // (1-Arg1.RGB)*Arg2.RGB + Arg1.A

    D3DTOP_BUMPENVMAP           = 22, // per pixel env map perturbation
    D3DTOP_BUMPENVMAPLUMINANCE  = 23, // with luminance channel

    D3DTOP_DOTPRODUCT3          = 24,

    D3DTOP_MULTIPLYADD          = 25, // Arg0 + Arg1*Arg2
    D3DTOP_LERP                 = 26, // (Arg0)*Arg1 + (1-Arg0)*Arg2

    D3DTOP_FORCE_DWORD = 0x7fffffff,
} D3DTEXTUREOP;
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.18362.0\shared\d3d9types.h(568,0)
  • If (DIRECT3D_VERSION >= 0x0900)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
45 0.7747132 D3DTEXTUREOP Enum
typedef enum _D3DTEXTUREOP
{
    D3DTOP_DISABLE    = 1,      // disables stage
    D3DTOP_SELECTARG1 = 2,      // the default
    D3DTOP_SELECTARG2 = 3,

    D3DTOP_MODULATE   = 4,      // multiply args together
    D3DTOP_MODULATE2X = 5,      // multiply and  1 bit
    D3DTOP_MODULATE4X = 6,      // multiply and  2 bits

    D3DTOP_ADD          =  7,   // add arguments together
    D3DTOP_ADDSIGNED    =  8,   // add with -0.5 bias
    D3DTOP_ADDSIGNED2X  =  9,   // as above but left  1 bit
    D3DTOP_SUBTRACT     = 10,   // Arg1 - Arg2, with no saturation
    D3DTOP_ADDSMOOTH    = 11,   // add 2 args, subtract product

    D3DTOP_BLENDDIFFUSEALPHA    = 12, // iterated alpha
    D3DTOP_BLENDTEXTUREALPHA    = 13, // texture alpha
    D3DTOP_BLENDFACTORALPHA     = 14, // alpha from D3DRENDERSTATE_TEXTUREFACTOR
    D3DTOP_BLENDTEXTUREALPHAPM  = 15, // texture alpha
    D3DTOP_BLENDCURRENTALPHA    = 16, // by alpha of current color

    D3DTOP_PREMODULATE            = 17,     // modulate with next texture before use
    D3DTOP_MODULATEALPHA_ADDCOLOR = 18,     // Arg1.RGB + Arg1.A*Arg2.RGB
    D3DTOP_MODULATECOLOR_ADDALPHA = 19,     // Arg1.RGB*Arg2.RGB + Arg1.A
    D3DTOP_MODULATEINVALPHA_ADDCOLOR = 20,  // (1-Arg1.A)*Arg2.RGB + Arg1.RGB
    D3DTOP_MODULATEINVCOLOR_ADDALPHA = 21,  // (1-Arg1.RGB)*Arg2.RGB + Arg1.A

    D3DTOP_BUMPENVMAP           = 22, // per pixel env map perturbation
    D3DTOP_BUMPENVMAPLUMINANCE  = 23, // with luminance channel
    D3DTOP_DOTPRODUCT3          = 24,

    D3DTOP_FORCE_DWORD = 0x7fffffff,
} D3DTEXTUREOP;
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.18362.0\um\d3dtypes.h(1655,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
  • If (DIRECT3D_VERSION >= 0x0600)
  • If (DIRECT3D_VERSION < 0x0800)
46 0.7747132 OPCODE_FORMAT Enum
typedef enum opcode_format_t 
{
	InlineNone		= 0,	// no inline args       
	InlineVar		= 1,	// local variable       (U2 (U1 if Short on))
	InlineI			= 2,	// an signed integer    (I4 (I1 if Short on))
	InlineR			= 3,	// a real number        (R8 (R4 if Short on))
	InlineBrTarget	= 4,    // branch target        (I4 (I1 if Short on))
	InlineI8		= 5,
	InlineMethod	= 6,   // method token (U4)
	InlineField		= 7,   // field token  (U4)
	InlineType		= 8,   // type token   (U4)
	InlineString	= 9,   // string TOKEN (U4)
	InlineSig		= 10,  // signature tok (U4)
	InlineRVA		= 11,  // ldptr token  (U4)
	InlineTok		= 12,  // a meta-data token of unknown type (U4)
	InlineSwitch	= 13,  // count (U4), pcrel1 (U4) .... pcrelN (U4)
	InlinePhi		= 14,  // count (U1), var1 (U2) ... varN (U2) 


	ShortInline 	= 16,						// if this bit is set, the format is the 'short' format
	PrimaryMask   	= (ShortInline-1),			// mask these off to get primary enumeration above
	ShortInlineVar 	= (ShortInline + InlineVar),
	ShortInlineI	= (ShortInline + InlineI),
	ShortInlineR	= (ShortInline + InlineR),
	ShortInlineBrTarget = (ShortInline + InlineBrTarget),
	InlineOpcode	= (ShortInline + InlineNone),    // This is only used internally.  It means the 'opcode' is two byte instead of 1
} OPCODE_FORMAT;
%ProgramFiles(x86)%\Windows Kits\NETFXSDK\4.8\include\um\openum.h(19,0)