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 May 13, 2020
  • Items count: 340878
  • Parsed files count: 8447
  • Windows SDK version: 10.0.19041.0
  • NetFx SDK version: 4.8
  • MSVC Tools version: 14.25.28610

 

 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-2020 Simon Mourier V1.3.2. 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.783815 XamlTypeIndex::Border Int32 286 0x0000011E 286 System.Int32
Border                                  = 286,
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.19041.0\winrt\windows.ui.xaml.core.direct.idl(2004,0)
2 4.771404 D3DRENDERSTATETYPE::D3DRENDERSTATE_BORDERCOLOR Int32 43 0x0000002B 43 System.Int32
D3DRENDERSTATE_BORDERCOLOR        = 43,   /* Border color for texturing w/border */
    D3DRENDERSTATE_BORDERCOLOR        = 43,   /* Border color for texturing w/border */
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.19041.0\um\d3dtypes.h(1308,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
  • If (DIRECT3D_VERSION < 0x0800)
  • If (DIRECT3D_VERSION >= 0x0500)
3 3.408146 __magnumdb__enum_msoci_h_3 Enum
enum
	{
	msochostfExclusiveBorderSpace = 1,  // needs exclusive border space when 
	};
%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Professional\VSSDK\VisualStudioIntegration\Common\Inc\office10\msoci.h(83,0)
4 3.408146 msofstbNoBorder Int32 4 0x00000004 4 System.Int32
#define msofstbNoBorder			0x00000004 // Draw no border (hyperlinks)
%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Professional\VSSDK\VisualStudioIntegration\Common\Inc\office10\msosproc.h(436,0)
5 2.726517 IEIFLAG_NOBORDER Int32 256 0x00000100 256 System.Int32
#define IEIFLAG_NOBORDER    0x0100      // returned from the extractor if it does NOT want an a border around the thumbnail
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.19041.0\um\shobjidl_core.h(13506,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
6 2.726517 LVS_EX_BORDERSELECT Int32 32768 0x00008000 -32768 System.Int32
#define LVS_EX_BORDERSELECT     0x00008000 // border selection style instead of highlight
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.19041.0\um\commctrl.h(3846,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
  • Ifndef NOUSER
  • Ifndef NOLISTVIEW
7 2.726517 DTBG_OMITBORDER Int32 4 0x00000004 4 System.Int32
#define DTBG_OMITBORDER         0x00000004  // don't draw border of part
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.19041.0\um\uxtheme.h(468,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
8 2.726517 HTTB_RESIZINGBORDER_LEFT Int32 16 0x00000010 16 System.Int32
#define HTTB_RESIZINGBORDER_LEFT    0x00000010      // Hit test left resizing border,
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.19041.0\um\uxtheme.h(714,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
9 2.726517 HTTB_RESIZINGBORDER_TOP Int32 32 0x00000020 32 System.Int32
#define HTTB_RESIZINGBORDER_TOP     0x00000020      // Hit test top resizing border
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.19041.0\um\uxtheme.h(715,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
10 2.726517 HTTB_RESIZINGBORDER_RIGHT Int32 64 0x00000040 64 System.Int32
#define HTTB_RESIZINGBORDER_RIGHT   0x00000040      // Hit test right resizing border
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.19041.0\um\uxtheme.h(716,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
11 2.726517 HTTB_RESIZINGBORDER_BOTTOM Int32 128 0x00000080 -128 System.Int32
#define HTTB_RESIZINGBORDER_BOTTOM  0x00000080      // Hit test bottom resizing border
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.19041.0\um\uxtheme.h(717,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
12 2.726517 __magnumdb__enum_msoci_h_1::msocrfExclusiveBorderSpace Int32 64 0x00000040 64 System.Int32
msocrfExclusiveBorderSpace = 64, // needs exclusive border space when
%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Professional\VSSDK\VisualStudioIntegration\Common\Inc\office10\msoci.h(49,0)
13 2.726517 __magnumdb__enum_msoci_h_3::msochostfExclusiveBorderSpace Int32 1 0x00000001 1 System.Int32
msochostfExclusiveBorderSpace = 1,  // needs exclusive border space when
%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Professional\VSSDK\VisualStudioIntegration\Common\Inc\office10\msoci.h(85,0)
14 1.192851 __magnumdb__enum_msoci_h_1 Enum
enum
	{
	msocrfNeedIdleTime         = 1,  // needs idle time
	msocrfNeedPeriodicIdleTime = 2,  // needs idle time every N milliseconds
	msocrfPreTranslateKeys     = 4,  // must process keyboard msgs
	msocrfPreTranslateAll      = 8,  // must process all msgs
	msocrfNeedSpecActiveNotifs = 16, // needs to be notified for special
	msocrfNeedTopActiveNotifs  = msocrfNeedSpecActiveNotifs, // old name
	msocrfNeedAllActiveNotifs  = 32, // needs to be notified for every
	msocrfExclusiveBorderSpace = 64, // needs exclusive border space when 
	msocrfExclusiveActivation = 128, // comp becomes exclusively active 
	msocrfNeedAllMacEvents	= 256,	 // needs all mac events
	msocrfMaster			= 512,   // comp is always active and gets first shot at evrything
	};
%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Professional\VSSDK\VisualStudioIntegration\Common\Inc\office10\msoci.h(33,0)
15 0.6816292 D3DRENDERSTATETYPE Enum
typedef enum _D3DRENDERSTATETYPE {
    D3DRENDERSTATE_ANTIALIAS          = 2,    /* D3DANTIALIASMODE */
    D3DRENDERSTATE_ANTIALIAS          = 2,    /* D3DANTIALIASMODE */
    D3DRENDERSTATE_TEXTUREPERSPECTIVE = 4,    /* TRUE for perspective correction */
    D3DRENDERSTATE_TEXTUREPERSPECTIVE = 4,    /* TRUE for perspective correction */
    D3DRENDERSTATE_ZENABLE            = 7,    /* D3DZBUFFERTYPE (or TRUE/FALSE for legacy) */
    D3DRENDERSTATE_ZENABLE            = 7,    /* D3DZBUFFERTYPE (or TRUE/FALSE for legacy) */
    D3DRENDERSTATE_FILLMODE           = 8,    /* D3DFILL_MODE        */
    D3DRENDERSTATE_FILLMODE           = 8,    /* D3DFILL_MODE        */
    D3DRENDERSTATE_SHADEMODE          = 9,    /* D3DSHADEMODE */
    D3DRENDERSTATE_SHADEMODE          = 9,    /* D3DSHADEMODE */
    D3DRENDERSTATE_LINEPATTERN        = 10,   /* D3DLINEPATTERN */
    D3DRENDERSTATE_LINEPATTERN        = 10,   /* D3DLINEPATTERN */
    D3DRENDERSTATE_ZWRITEENABLE       = 14,   /* TRUE to enable z writes */
    D3DRENDERSTATE_ZWRITEENABLE       = 14,   /* TRUE to enable z writes */
    D3DRENDERSTATE_ALPHATESTENABLE    = 15,   /* TRUE to enable alpha tests */
    D3DRENDERSTATE_ALPHATESTENABLE    = 15,   /* TRUE to enable alpha tests */
    D3DRENDERSTATE_LASTPIXEL          = 16,   /* TRUE for last-pixel on lines */
    D3DRENDERSTATE_LASTPIXEL          = 16,   /* TRUE for last-pixel on lines */
    D3DRENDERSTATE_SRCBLEND           = 19,   /* D3DBLEND */
    D3DRENDERSTATE_SRCBLEND           = 19,   /* D3DBLEND */
    D3DRENDERSTATE_DESTBLEND          = 20,   /* D3DBLEND */
    D3DRENDERSTATE_DESTBLEND          = 20,   /* D3DBLEND */
    D3DRENDERSTATE_CULLMODE           = 22,   /* D3DCULL */
    D3DRENDERSTATE_CULLMODE           = 22,   /* D3DCULL */
    D3DRENDERSTATE_ZFUNC              = 23,   /* D3DCMPFUNC */
    D3DRENDERSTATE_ZFUNC              = 23,   /* D3DCMPFUNC */
    D3DRENDERSTATE_ALPHAREF           = 24,   /* D3DFIXED */
    D3DRENDERSTATE_ALPHAREF           = 24,   /* D3DFIXED */
    D3DRENDERSTATE_ALPHAFUNC          = 25,   /* D3DCMPFUNC */
    D3DRENDERSTATE_ALPHAFUNC          = 25,   /* D3DCMPFUNC */
    D3DRENDERSTATE_DITHERENABLE       = 26,   /* TRUE to enable dithering */
    D3DRENDERSTATE_DITHERENABLE       = 26,   /* TRUE to enable dithering */
    D3DRENDERSTATE_ALPHABLENDENABLE   = 27,   /* TRUE to enable alpha blending */
    D3DRENDERSTATE_ALPHABLENDENABLE   = 27,   /* TRUE to enable alpha blending */
    D3DRENDERSTATE_FOGENABLE          = 28,   /* TRUE to enable fog blending */
    D3DRENDERSTATE_FOGENABLE          = 28,   /* TRUE to enable fog blending */
    D3DRENDERSTATE_SPECULARENABLE     = 29,   /* TRUE to enable specular */
    D3DRENDERSTATE_SPECULARENABLE     = 29,   /* TRUE to enable specular */
    D3DRENDERSTATE_ZVISIBLE           = 30,   /* TRUE to enable z checking */
    D3DRENDERSTATE_ZVISIBLE           = 30,   /* TRUE to enable z checking */
    D3DRENDERSTATE_STIPPLEDALPHA      = 33,   /* TRUE to enable stippled alpha (RGB device only) */
    D3DRENDERSTATE_STIPPLEDALPHA      = 33,   /* TRUE to enable stippled alpha (RGB device only) */
    D3DRENDERSTATE_FOGCOLOR           = 34,   /* D3DCOLOR */
    D3DRENDERSTATE_FOGCOLOR           = 34,   /* D3DCOLOR */
    D3DRENDERSTATE_FOGTABLEMODE       = 35,   /* D3DFOGMODE */
    D3DRENDERSTATE_FOGTABLEMODE       = 35,   /* D3DFOGMODE */
    D3DRENDERSTATE_FOGSTART           = 36,   /* Fog start (for both vertex and pixel fog) */
    D3DRENDERSTATE_FOGSTART           = 36,   /* Fog start (for both vertex and pixel fog) */
    D3DRENDERSTATE_FOGEND             = 37,   /* Fog end      */
    D3DRENDERSTATE_FOGEND             = 37,   /* Fog end      */
    D3DRENDERSTATE_FOGDENSITY         = 38,   /* Fog density  */
    D3DRENDERSTATE_FOGDENSITY         = 38,   /* Fog density  */
    D3DRENDERSTATE_EDGEANTIALIAS      = 40,   /* TRUE to enable edge antialiasing */
    D3DRENDERSTATE_EDGEANTIALIAS      = 40,   /* TRUE to enable edge antialiasing */
    D3DRENDERSTATE_COLORKEYENABLE     = 41,   /* TRUE to enable source colorkeyed textures */
    D3DRENDERSTATE_COLORKEYENABLE     = 41,   /* TRUE to enable source colorkeyed textures */
    D3DRENDERSTATE_ZBIAS              = 47,   /* LONG Z bias */
    D3DRENDERSTATE_ZBIAS              = 47,   /* LONG Z bias */
    D3DRENDERSTATE_RANGEFOGENABLE     = 48,   /* Enables range-based fog */
    D3DRENDERSTATE_RANGEFOGENABLE     = 48,   /* Enables range-based fog */

    D3DRENDERSTATE_STENCILENABLE      = 52,   /* BOOL enable/disable stenciling */
    D3DRENDERSTATE_STENCILENABLE      = 52,   /* BOOL enable/disable stenciling */
    D3DRENDERSTATE_STENCILFAIL        = 53,   /* D3DSTENCILOP to do if stencil test fails */
    D3DRENDERSTATE_STENCILFAIL        = 53,   /* D3DSTENCILOP to do if stencil test fails */
    D3DRENDERSTATE_STENCILZFAIL       = 54,   /* D3DSTENCILOP to do if stencil test passes and Z test fails */
    D3DRENDERSTATE_STENCILZFAIL       = 54,   /* D3DSTENCILOP to do if stencil test passes and Z test fails */
    D3DRENDERSTATE_STENCILPASS        = 55,   /* D3DSTENCILOP to do if both stencil and Z tests pass */
    D3DRENDERSTATE_STENCILPASS        = 55,   /* D3DSTENCILOP to do if both stencil and Z tests pass */
    D3DRENDERSTATE_STENCILFUNC        = 56,   /* D3DCMPFUNC fn.  Stencil Test passes if ((ref & mask) stencilfn (stencil & mask)) is true */
    D3DRENDERSTATE_STENCILFUNC        = 56,   /* D3DCMPFUNC fn.  Stencil Test passes if ((ref & mask) stencilfn (stencil & mask)) is true */
    D3DRENDERSTATE_STENCILREF         = 57,   /* Reference value used in stencil test */
    D3DRENDERSTATE_STENCILREF         = 57,   /* Reference value used in stencil test */
    D3DRENDERSTATE_STENCILMASK        = 58,   /* Mask value used in stencil test */
    D3DRENDERSTATE_STENCILMASK        = 58,   /* Mask value used in stencil test */
    D3DRENDERSTATE_STENCILWRITEMASK   = 59,   /* Write mask applied to values written to stencil buffer */
    D3DRENDERSTATE_STENCILWRITEMASK   = 59,   /* Write mask applied to values written to stencil buffer */
    D3DRENDERSTATE_TEXTUREFACTOR      = 60,   /* D3DCOLOR used for multi-texture blend */
    D3DRENDERSTATE_TEXTUREFACTOR      = 60,   /* D3DCOLOR used for multi-texture blend */


    /*
     */
    D3DRENDERSTATE_WRAP0              = 128,  /* wrap for 1st texture coord. set */
    D3DRENDERSTATE_WRAP0              = 128,  /* wrap for 1st texture coord. set */
    D3DRENDERSTATE_WRAP1              = 129,  /* wrap for 2nd texture coord. set */
    D3DRENDERSTATE_WRAP1              = 129,  /* wrap for 2nd texture coord. set */
    D3DRENDERSTATE_WRAP2              = 130,  /* wrap for 3rd texture coord. set */
    D3DRENDERSTATE_WRAP2              = 130,  /* wrap for 3rd texture coord. set */
    D3DRENDERSTATE_WRAP3              = 131,  /* wrap for 4th texture coord. set */
    D3DRENDERSTATE_WRAP3              = 131,  /* wrap for 4th texture coord. set */
    D3DRENDERSTATE_WRAP4              = 132,  /* wrap for 5th texture coord. set */
    D3DRENDERSTATE_WRAP4              = 132,  /* wrap for 5th texture coord. set */
    D3DRENDERSTATE_WRAP5              = 133,  /* wrap for 6th texture coord. set */
    D3DRENDERSTATE_WRAP5              = 133,  /* wrap for 6th texture coord. set */
    D3DRENDERSTATE_WRAP6              = 134,  /* wrap for 7th texture coord. set */
    D3DRENDERSTATE_WRAP6              = 134,  /* wrap for 7th texture coord. set */
    D3DRENDERSTATE_WRAP7              = 135,  /* wrap for 8th texture coord. set */
    D3DRENDERSTATE_WRAP7              = 135,  /* wrap for 8th texture coord. set */
    D3DRENDERSTATE_CLIPPING            = 136,
    D3DRENDERSTATE_LIGHTING            = 137,
    D3DRENDERSTATE_EXTENTS             = 138,
    D3DRENDERSTATE_AMBIENT             = 139,
    D3DRENDERSTATE_FOGVERTEXMODE       = 140,
    D3DRENDERSTATE_COLORVERTEX         = 141,
    D3DRENDERSTATE_LOCALVIEWER         = 142,
    D3DRENDERSTATE_NORMALIZENORMALS    = 143,
    D3DRENDERSTATE_COLORKEYBLENDENABLE = 144,
    D3DRENDERSTATE_DIFFUSEMATERIALSOURCE    = 145,
    D3DRENDERSTATE_SPECULARMATERIALSOURCE   = 146,
    D3DRENDERSTATE_AMBIENTMATERIALSOURCE    = 147,
    D3DRENDERSTATE_EMISSIVEMATERIALSOURCE   = 148,
    D3DRENDERSTATE_VERTEXBLEND              = 151,
    D3DRENDERSTATE_CLIPPLANEENABLE          = 152,


    D3DRENDERSTATE_TEXTUREHANDLE      = 1,    /* Texture handle for legacy interfaces (Texture,Texture2) */
    D3DRENDERSTATE_TEXTUREHANDLE      = 1,    /* Texture handle for legacy interfaces (Texture,Texture2) */
    D3DRENDERSTATE_TEXTUREADDRESS     = 3,    /* D3DTEXTUREADDRESS  */
    D3DRENDERSTATE_TEXTUREADDRESS     = 3,    /* D3DTEXTUREADDRESS  */
    D3DRENDERSTATE_WRAPU              = 5,    /* TRUE for wrapping in u */
    D3DRENDERSTATE_WRAPU              = 5,    /* TRUE for wrapping in u */
    D3DRENDERSTATE_WRAPV              = 6,    /* TRUE for wrapping in v */
    D3DRENDERSTATE_WRAPV              = 6,    /* TRUE for wrapping in v */
    D3DRENDERSTATE_MONOENABLE         = 11,   /* TRUE to enable mono rasterization */
    D3DRENDERSTATE_MONOENABLE         = 11,   /* TRUE to enable mono rasterization */
    D3DRENDERSTATE_ROP2               = 12,   /* ROP2 */
    D3DRENDERSTATE_ROP2               = 12,   /* ROP2 */
    D3DRENDERSTATE_PLANEMASK          = 13,   /* DWORD physical plane mask */
    D3DRENDERSTATE_PLANEMASK          = 13,   /* DWORD physical plane mask */
    D3DRENDERSTATE_TEXTUREMAG         = 17,   /* D3DTEXTUREFILTER */
    D3DRENDERSTATE_TEXTUREMAG         = 17,   /* D3DTEXTUREFILTER */
    D3DRENDERSTATE_TEXTUREMIN         = 18,   /* D3DTEXTUREFILTER */
    D3DRENDERSTATE_TEXTUREMIN         = 18,   /* D3DTEXTUREFILTER */
    D3DRENDERSTATE_TEXTUREMAPBLEND    = 21,   /* D3DTEXTUREBLEND */
    D3DRENDERSTATE_TEXTUREMAPBLEND    = 21,   /* D3DTEXTUREBLEND */
    D3DRENDERSTATE_SUBPIXEL           = 31,   /* TRUE to enable subpixel correction */
    D3DRENDERSTATE_SUBPIXEL           = 31,   /* TRUE to enable subpixel correction */
    D3DRENDERSTATE_SUBPIXELX          = 32,   /* TRUE to enable correction in X only */
    D3DRENDERSTATE_SUBPIXELX          = 32,   /* TRUE to enable correction in X only */
    D3DRENDERSTATE_STIPPLEENABLE      = 39,   /* TRUE to enable stippling */
    D3DRENDERSTATE_STIPPLEENABLE      = 39,   /* TRUE to enable stippling */
    D3DRENDERSTATE_BORDERCOLOR        = 43,   /* Border color for texturing w/border */
    D3DRENDERSTATE_BORDERCOLOR        = 43,   /* Border color for texturing w/border */
    D3DRENDERSTATE_TEXTUREADDRESSU    = 44,   /* Texture addressing mode for U coordinate */
    D3DRENDERSTATE_TEXTUREADDRESSU    = 44,   /* Texture addressing mode for U coordinate */
    D3DRENDERSTATE_TEXTUREADDRESSV    = 45,   /* Texture addressing mode for V coordinate */
    D3DRENDERSTATE_TEXTUREADDRESSV    = 45,   /* Texture addressing mode for V coordinate */
    D3DRENDERSTATE_MIPMAPLODBIAS      = 46,   /* D3DVALUE Mipmap LOD bias */
    D3DRENDERSTATE_MIPMAPLODBIAS      = 46,   /* D3DVALUE Mipmap LOD bias */
    D3DRENDERSTATE_ANISOTROPY         = 49,   /* Max. anisotropy. 1 = no anisotropy */
    D3DRENDERSTATE_ANISOTROPY         = 49,   /* Max. anisotropy. 1 = no anisotropy */
    D3DRENDERSTATE_FLUSHBATCH         = 50,   /* Explicit flush for DP batching (DX5 Only) */
    D3DRENDERSTATE_FLUSHBATCH         = 50,   /* Explicit flush for DP batching (DX5 Only) */
    D3DRENDERSTATE_TRANSLUCENTSORTINDEPENDENT=51, /* BOOL enable sort-independent transparency */
    D3DRENDERSTATE_TRANSLUCENTSORTINDEPENDENT=51, /* BOOL enable sort-independent transparency */
    D3DRENDERSTATE_STIPPLEPATTERN00   = 64,   /* Stipple pattern 01...  */
    D3DRENDERSTATE_STIPPLEPATTERN00   = 64,   /* Stipple pattern 01...  */
    D3DRENDERSTATE_STIPPLEPATTERN01   = 65,
    D3DRENDERSTATE_STIPPLEPATTERN02   = 66,
    D3DRENDERSTATE_STIPPLEPATTERN03   = 67,
    D3DRENDERSTATE_STIPPLEPATTERN04   = 68,
    D3DRENDERSTATE_STIPPLEPATTERN05   = 69,
    D3DRENDERSTATE_STIPPLEPATTERN06   = 70,
    D3DRENDERSTATE_STIPPLEPATTERN07   = 71,
    D3DRENDERSTATE_STIPPLEPATTERN08   = 72,
    D3DRENDERSTATE_STIPPLEPATTERN09   = 73,
    D3DRENDERSTATE_STIPPLEPATTERN10   = 74,
    D3DRENDERSTATE_STIPPLEPATTERN11   = 75,
    D3DRENDERSTATE_STIPPLEPATTERN12   = 76,
    D3DRENDERSTATE_STIPPLEPATTERN13   = 77,
    D3DRENDERSTATE_STIPPLEPATTERN14   = 78,
    D3DRENDERSTATE_STIPPLEPATTERN15   = 79,
    D3DRENDERSTATE_STIPPLEPATTERN16   = 80,
    D3DRENDERSTATE_STIPPLEPATTERN17   = 81,
    D3DRENDERSTATE_STIPPLEPATTERN18   = 82,
    D3DRENDERSTATE_STIPPLEPATTERN19   = 83,
    D3DRENDERSTATE_STIPPLEPATTERN20   = 84,
    D3DRENDERSTATE_STIPPLEPATTERN21   = 85,
    D3DRENDERSTATE_STIPPLEPATTERN22   = 86,
    D3DRENDERSTATE_STIPPLEPATTERN23   = 87,
    D3DRENDERSTATE_STIPPLEPATTERN24   = 88,
    D3DRENDERSTATE_STIPPLEPATTERN25   = 89,
    D3DRENDERSTATE_STIPPLEPATTERN26   = 90,
    D3DRENDERSTATE_STIPPLEPATTERN27   = 91,
    D3DRENDERSTATE_STIPPLEPATTERN28   = 92,
    D3DRENDERSTATE_STIPPLEPATTERN29   = 93,
    D3DRENDERSTATE_STIPPLEPATTERN30   = 94,
    D3DRENDERSTATE_STIPPLEPATTERN31   = 95,

    D3DRENDERSTATE_FOGTABLESTART      = 36,   /* Fog table start    */
    D3DRENDERSTATE_FOGTABLESTART      = 36,   /* Fog table start    */
    D3DRENDERSTATE_FOGTABLEEND        = 37,   /* Fog table end      */
    D3DRENDERSTATE_FOGTABLEEND        = 37,   /* Fog table end      */
    D3DRENDERSTATE_FOGTABLEDENSITY    = 38,   /* Fog table density  */
    D3DRENDERSTATE_FOGTABLEDENSITY    = 38,   /* Fog table density  */

    D3DRENDERSTATE_FORCE_DWORD        = 0x7fffffff, /* force 32-bit size enum */
    D3DRENDERSTATE_FORCE_DWORD        = 0x7fffffff, /* force 32-bit size enum */
} D3DRENDERSTATETYPE;
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.19041.0\um\d3dtypes.h(1205,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
  • If (DIRECT3D_VERSION < 0x0800)
  • If (DIRECT3D_VERSION >= 0x0500)
  • If (DIRECT3D_VERSION >= 0x0700)
  • If (DIRECT3D_VERSION >= 0x0600)
16 0.4260182 XamlTypeIndex Enum
enum XamlTypeIndex
                    {
                        AutoSuggestBoxSuggestionChosenEventArgs = 34,
                        AutoSuggestBoxTextChangedEventArgs      = 35,
                        CollectionViewSource                    = 41,
                        ColumnDefinition                        = 44,
                        GradientStop                            = 64,
                        InputScope                              = 74,
                        InputScopeName                          = 75,
                        KeySpline                               = 78,
                        PathFigure                              = 93,
                        PrintDocument                           = 100,
                        RowDefinition                           = 106,
                        Style                                   = 114,
                        TimelineMarker                          = 126,
                        VisualState                             = 137,
                        VisualStateGroup                        = 138,
                        VisualStateManager                      = 139,
                        VisualTransition                        = 140,
                        AddDeleteThemeTransition                = 177,
                        ArcSegment                              = 178,
                        BackEase                                = 179,
                        BeginStoryboard                         = 180,
                        BezierSegment                           = 181,
                        BindingBase                             = 182,
                        BitmapCache                             = 183,
                        BounceEase                              = 186,
                        CircleEase                              = 187,
                        ColorAnimation                          = 188,
                        ColorAnimationUsingKeyFrames            = 189,
                        ContentThemeTransition                  = 190,
                        ControlTemplate                         = 191,
                        CubicEase                               = 192,
                        DataTemplate                            = 194,
                        DiscreteColorKeyFrame                   = 195,
                        DiscreteDoubleKeyFrame                  = 196,
                        DiscreteObjectKeyFrame                  = 197,
                        DiscretePointKeyFrame                   = 198,
                        DoubleAnimation                         = 200,
                        DoubleAnimationUsingKeyFrames           = 201,
                        EasingColorKeyFrame                     = 204,
                        EasingDoubleKeyFrame                    = 205,
                        EasingPointKeyFrame                     = 206,
                        EdgeUIThemeTransition                   = 207,
                        ElasticEase                             = 208,
                        EllipseGeometry                         = 209,
                        EntranceThemeTransition                 = 210,
                        EventTrigger                            = 211,
                        ExponentialEase                         = 212,
                        Flyout                                  = 213,
                        GeometryGroup                           = 216,
                        ItemsPanelTemplate                      = 227,
                        LinearColorKeyFrame                     = 230,
                        LinearDoubleKeyFrame                    = 231,
                        LinearPointKeyFrame                     = 232,
                        LineGeometry                            = 233,
                        LineSegment                             = 234,
                        Matrix3DProjection                      = 236,
                        MenuFlyout                              = 238,
                        ObjectAnimationUsingKeyFrames           = 240,
                        PaneThemeTransition                     = 241,
                        PathGeometry                            = 243,
                        PlaneProjection                         = 244,
                        PointAnimation                          = 245,
                        PointAnimationUsingKeyFrames            = 246,
                        PolyBezierSegment                       = 248,
                        PolyLineSegment                         = 249,
                        PolyQuadraticBezierSegment              = 250,
                        PopupThemeTransition                    = 251,
                        PowerEase                               = 252,
                        QuadraticBezierSegment                  = 254,
                        QuadraticEase                           = 255,
                        QuarticEase                             = 256,
                        QuinticEase                             = 257,
                        RectangleGeometry                       = 258,
                        RelativeSource                          = 259,
                        RenderTargetBitmap                      = 260,
                        ReorderThemeTransition                  = 261,
                        RepositionThemeTransition               = 262,
                        Setter                                  = 263,
                        SineEase                                = 264,
                        SolidColorBrush                         = 265,
                        SplineColorKeyFrame                     = 266,
                        SplineDoubleKeyFrame                    = 267,
                        SplinePointKeyFrame                     = 268,
                        BitmapImage                             = 285,
                        Border                                  = 286,
                        CaptureElement                          = 288,
                        CompositeTransform                      = 295,
                        ContentPresenter                        = 296,
                        DragItemThemeAnimation                  = 302,
                        DragOverThemeAnimation                  = 303,
                        DropTargetItemThemeAnimation            = 304,
                        FadeInThemeAnimation                    = 306,
                        FadeOutThemeAnimation                   = 307,
                        Glyphs                                  = 312,
                        Image                                   = 326,
                        ImageBrush                              = 328,
                        InlineUIContainer                       = 329,
                        ItemsPresenter                          = 332,
                        LinearGradientBrush                     = 334,
                        LineBreak                               = 335,
                        MatrixTransform                         = 340,
                        MediaElement                            = 342,
                        Paragraph                               = 349,
                        PointerDownThemeAnimation               = 357,
                        PointerUpThemeAnimation                 = 359,
                        PopInThemeAnimation                     = 361,
                        PopOutThemeAnimation                    = 362,
                        Popup                                   = 363,
                        RepositionThemeAnimation                = 370,
                        ResourceDictionary                      = 371,
                        RichTextBlock                           = 374,
                        RichTextBlockOverflow                   = 376,
                        RotateTransform                         = 378,
                        Run                                     = 380,
                        ScaleTransform                          = 381,
                        SkewTransform                           = 389,
                        Span                                    = 390,
                        SplitCloseThemeAnimation                = 391,
                        SplitOpenThemeAnimation                 = 392,
                        Storyboard                              = 393,
                        SwipeBackThemeAnimation                 = 394,
                        SwipeHintThemeAnimation                 = 395,
                        TextBlock                               = 396,
                        TransformGroup                          = 411,
                        TranslateTransform                      = 413,
                        Viewbox                                 = 417,
                        WebViewBrush                            = 423,
                        AppBarSeparator                         = 427,
                        BitmapIcon                              = 429,
                        Bold                                    = 430,
                        Canvas                                  = 432,
                        ContentControl                          = 435,
                        DatePicker                              = 436,
                        DependencyObjectCollection              = 437,
                        Ellipse                                 = 438,
                        FontIcon                                = 440,
                        Grid                                    = 442,
                        Hub                                     = 445,
                        HubSection                              = 446,
                        Hyperlink                               = 447,
                        Italic                                  = 449,
                        ItemsControl                            = 451,
                        Line                                    = 452,
                        MediaTransportControls                  = 458,
                        PasswordBox                             = 462,
                        Path                                    = 463,
                        PathIcon                                = 464,
                        Polygon                                 = 465,
                        Polyline                                = 466,
                        ProgressRing                            = 468,
                        Rectangle                               = 470,
                        RichEditBox                             = 473,
                        ScrollContentPresenter                  = 476,
                        SearchBox                               = 477,
                        SemanticZoom                            = 479,
                        StackPanel                              = 481,
                        SymbolIcon                              = 482,
                        TextBox                                 = 483,
                        Thumb                                   = 485,
                        TickBar                                 = 486,
                        TimePicker                              = 487,
                        ToggleSwitch                            = 489,
                        Underline                               = 490,
                        UserControl                             = 491,
                        VariableSizedWrapGrid                   = 492,
                        WebView                                 = 494,
                        AppBar                                  = 495,
                        AutoSuggestBox                          = 499,
                        CarouselPanel                           = 502,
                        ContentDialog                           = 506,
                        FlyoutPresenter                         = 508,
                        Frame                                   = 509,
                        GridViewItemPresenter                   = 511,
                        GroupItem                               = 512,
                        ItemsStackPanel                         = 514,
                        ItemsWrapGrid                           = 515,
                        ListViewItemPresenter                   = 520,
                        MenuFlyoutItem                          = 521,
                        MenuFlyoutPresenter                     = 522,
                        MenuFlyoutSeparator                     = 523,
                        Page                                    = 525,
                        ProgressBar                             = 528,
                        ScrollBar                               = 530,
                        SettingsFlyout                          = 533,
                        Slider                                  = 534,
                        SwapChainBackgroundPanel                = 535,
                        SwapChainPanel                          = 536,
                        ToolTip                                 = 538,
                        Button                                  = 540,
                        ComboBoxItem                            = 541,
                        CommandBar                              = 542,
                        FlipViewItem                            = 543,
                        GridViewHeaderItem                      = 545,
                        HyperlinkButton                         = 546,
                        ListBoxItem                             = 547,
                        ListViewHeaderItem                      = 550,
                        RepeatButton                            = 551,
                        ScrollViewer                            = 552,
                        ToggleButton                            = 553,
                        ToggleMenuFlyoutItem                    = 554,
                        VirtualizingStackPanel                  = 555,
                        WrapGrid                                = 556,
                        AppBarButton                            = 557,
                        AppBarToggleButton                      = 558,
                        CheckBox                                = 559,
                        GridViewItem                            = 560,
                        ListViewItem                            = 561,
                        RadioButton                             = 562,
                        Binding                                 = 564,
                        ComboBox                                = 566,
                        FlipView                                = 567,
                        ListBox                                 = 568,
                        GridView                                = 570,
                        ListView                                = 571,
                        CalendarView                            = 707,
                        CalendarViewDayItem                     = 709,
                        CalendarPanel                           = 723,
                        SplitView                               = 728,
                        CompositeTransform3D                    = 732,
                        PerspectiveTransform3D                  = 733,
                        RelativePanel                           = 744,
                        InkCanvas                               = 748,
                        MenuFlyoutSubItem                       = 749,
                        AdaptiveTrigger                         = 757,
                        SoftwareBitmapSource                    = 761,
                        StateTrigger                            = 767,
                        CalendarDatePicker                      = 774,
                        AutoSuggestBoxQuerySubmittedEventArgs   = 778,
                        CommandBarOverflowPresenter             = 781,
                        DrillInThemeAnimation                   = 782,
                        DrillOutThemeAnimation                  = 783,
                        AutomationAnnotation                    = 789,
                        AutomationPeerAnnotation                = 790,
                        MediaPlayerPresenter                    = 828,
                        MediaPlayerElement                      = 829,
                        XamlLight                               = 855,
                        SvgImageSource                          = 860,
                        KeyboardAccelerator                     = 897,
                        HandwritingView                         = 920,
                        ContentLink                             = 925,
                        BitmapIconSource                        = 929,
                        FontIconSource                          = 930,
                        PathIconSource                          = 931,
                        SymbolIconSource                        = 933,
                        IconSourceElement                       = 939,
                        AppBarElementContainer                  = 945,
                        ColorPaletteResources                   = 952,
                        StandardUICommand                       = 961,
                        [contract(Windows.UI.Xaml.Core.Direct.XamlDirectContract, 2.0)]
                        ThemeShadow                             = 964,
                        XamlUICommand                           = 969
                    };
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.19041.0\winrt\windows.ui.xaml.core.direct.idl(1918,0)