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

 Rest API

There is a JSON version API (you will have to figure out the schema, it's pretty obvious) that you can call here (the search query is the 'q' parameter):

   https://www.magnumdb.com/api.aspx?q=0xC000000D&key=you-api-key-goes-here

Note this API also has a 400 items maximum limit and the server is monitored for excessive usage (the key can be removed without notice). If you want to get a key, send us an email.

 

 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-2021 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 6.203091 REGVALUE_CLSIDPACKAGE String Package Narrow System.TypedString
#define REGVALUE_CLSIDPACKAGE        "Package"
%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Professional\VSSDK\VisualStudioIntegration\Common\Inc\VSRegKeyNames.h(49,0)
2 4.430779 Package Int32 2209 0x000008A1 2209 System.Int32
static const int Package = 2209;
%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Professional\VSSDK\VisualStudioIntegration\Common\Inc\KnownImageIds.h(2359,0)
3 3.133034 EVENT_FILTER_TYPE_PACKAGE_ID UInt32 2147483664 0x80000010 -2147483632 System.UInt32
#define EVENT_FILTER_TYPE_PACKAGE_ID         (0x80000010) // Package ID.
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.19041.0\shared\evntprov.h(124,0)
4 3.133034 SECPKG_FLAG_DELEGATION Int32 131072 0x00020000 131072 System.Int32
#define SECPKG_FLAG_DELEGATION                   0x00020000  // Package can delegate
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.19041.0\shared\sspi.h(288,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES)
5 3.133034 SECPKG_FLAG_READONLY_WITH_CHECKSUM Int32 262144 0x00040000 262144 System.Int32
#define SECPKG_FLAG_READONLY_WITH_CHECKSUM       0x00040000  // Package can delegate
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.19041.0\shared\sspi.h(289,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES)
6 3.133034 SECBUFFER_PKG_PARAMS Int32 3 0x00000003 3 System.Int32
#define SECBUFFER_PKG_PARAMS        3   // Package specific parameters
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.19041.0\shared\sspi.h(350,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES)
7 3.133034 IPROPNAME_ADMIN_PROPERTIES String AdminProperties Narrow System.TypedString
#define IPROPNAME_ADMIN_PROPERTIES TEXT("AdminProperties")  // properties to stuff in admin package
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.19041.0\um\MsiDefs.h(89,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
8 3.133034 DSREFTYPETag::DSREFTYPE_PACKAGE Int32 33554432 0x02000000 33554432 System.Int32
DSREFTYPE_PACKAGE			= 0x02000000,   // Package node
%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Professional\VSSDK\VisualStudioIntegration\Common\Inc\idsref.h(41,0)
9 3.133034 DSREFTYPETag::DSREFTYPE_PACKAGEBODY Int32 67108864 0x04000000 67108864 System.Int32
DSREFTYPE_PACKAGEBODY		= 0x04000000,   // Package body node
%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Professional\VSSDK\VisualStudioIntegration\Common\Inc\idsref.h(42,0)
10 2.658467 TTFMFP_SUBSET Int32 0 0x00000000 0 System.Int32
#define TTFMFP_SUBSET 0   /* copy a Straight Subset Font package to Dest buffer */
#define TTFMFP_SUBSET 0   /* copy a Straight Subset Font package to Dest buffer */
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.19041.0\um\fontsub.h(88,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
11 2.506427 UPDP_CHECK_DRIVERSTORE Int32 4 0x00000004 4 System.Int32
#define UPDP_CHECK_DRIVERSTORE  0x00000004  // Check whether the given package exists in driver store or not.
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.19041.0\um\winspool.h(3523,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
  • If (NTDDI_VERSION >= NTDDI_VISTA)
12 2.506427 EVENT_FILTER_TYPE_PACKAGE_APP_ID UInt32 2147483680 0x80000020 -2147483616 System.UInt32
#define EVENT_FILTER_TYPE_PACKAGE_APP_ID     (0x80000020) // Package Relative App Id (PRAID).
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.19041.0\shared\evntprov.h(125,0)
13 2.506427 CREDUIWIN_AUTHPACKAGE_ONLY Int32 16 0x00000010 16 System.Int32
#define CREDUIWIN_AUTHPACKAGE_ONLY          0x00000010  // Only Cred Providers that support the input auth package should enumerate
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.19041.0\um\wincred.h(772,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM)
14 2.506427 CREDUIWIN_IN_CRED_ONLY Int32 32 0x00000020 32 System.Int32
#define CREDUIWIN_IN_CRED_ONLY              0x00000020  // Only the incoming cred for the specific auth package should be enumerated
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.19041.0\um\wincred.h(773,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM)
15 2.506427 CREDUIWIN_ENUMERATE_CURRENT_USER Int32 512 0x00000200 512 System.Int32
#define CREDUIWIN_ENUMERATE_CURRENT_USER    0x00000200  // Only the incoming cred for the specific auth package should be enumerated
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.19041.0\um\wincred.h(775,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM)
16 2.506427 SDDL_ALL_APP_PACKAGES String AC Narrow System.TypedString
#define SDDL_ALL_APP_PACKAGES               TEXT("AC")      // All applications running in an app package context
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.19041.0\shared\sddl.h(195,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM)
17 2.506427 SECPKG_FLAG_NEGOTIABLE Int32 2048 0x00000800 2048 System.Int32
#define SECPKG_FLAG_NEGOTIABLE                   0x00000800  // Can be used by the negotiate package
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.19041.0\shared\sspi.h(282,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES)
18 2.506427 SECPKG_FLAG_FRAGMENT Int32 32768 0x00008000 -32768 System.Int32
#define SECPKG_FLAG_FRAGMENT                     0x00008000  // Package can fragment to fit
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.19041.0\shared\sspi.h(286,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES)
19 2.506427 SECPKG_FLAG_MUTUAL_AUTH Int32 65536 0x00010000 65536 System.Int32
#define SECPKG_FLAG_MUTUAL_AUTH                  0x00010000  // Package can perform mutual authentication
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.19041.0\shared\sspi.h(287,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES)
20 2.506427 SECPKG_FLAG_RESTRICTED_TOKENS Int32 524288 0x00080000 524288 System.Int32
#define SECPKG_FLAG_RESTRICTED_TOKENS            0x00080000  // Package supports restricted callers
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.19041.0\shared\sspi.h(290,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES)
21 2.506427 SECPKG_FLAG_NEGO_EXTENDER Int32 1048576 0x00100000 1048576 System.Int32
#define SECPKG_FLAG_NEGO_EXTENDER                0x00100000  // this package extends SPNEGO, there is at most one
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.19041.0\shared\sspi.h(291,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES)
22 2.506427 SECPKG_FLAG_NEGOTIABLE2 Int32 2097152 0x00200000 2097152 System.Int32
#define SECPKG_FLAG_NEGOTIABLE2                  0x00200000  // this package is negotiated under the NegoExtender
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.19041.0\shared\sspi.h(292,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES)
23 2.506427 SECPKG_FLAG_APPCONTAINER_PASSTHROUGH Int32 4194304 0x00400000 4194304 System.Int32
#define SECPKG_FLAG_APPCONTAINER_PASSTHROUGH     0x00400000  // this package receives all calls from appcontainer apps
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.19041.0\shared\sspi.h(293,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES)
24 2.506427 SECPKG_FLAG_APPCONTAINER_CHECKS Int32 8388608 0x00800000 8388608 System.Int32
#define SECPKG_FLAG_APPCONTAINER_CHECKS          0x00800000  // this package receives calls from appcontainer apps
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.19041.0\shared\sspi.h(294,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES)
25 2.506427 SECPKG_FLAG_CREDENTIAL_ISOLATION_ENABLED Int32 16777216 0x01000000 16777216 System.Int32
#define SECPKG_FLAG_CREDENTIAL_ISOLATION_ENABLED 0x01000000  // this package is running with Credential Guard enabled
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.19041.0\shared\sspi.h(299,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES)
26 2.506427 SECPKG_FLAG_APPLY_LOOPBACK Int32 33554432 0x02000000 33554432 System.Int32
#define SECPKG_FLAG_APPLY_LOOPBACK               0x02000000  // this package supports reliable detection of loopback
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.19041.0\shared\sspi.h(300,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES)
27 2.506427 ERROR_ROLLBACK_DISABLED Int32 1653 0x00000675 1653 System.Int32
#define ERROR_ROLLBACK_DISABLED     1653L // Multi-package transaction cannot be run when rollback is disabled.
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.19041.0\um\Msi.h(2432,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
  • Ifndef ERROR_ROLLBACK_DISABLED
28 2.506427 REINSTALLMODE::REINSTALLMODE_PACKAGE Int32 1024 0x00000400 1024 System.Int32
REINSTALLMODE_PACKAGE          = 0x00000400,  // use re-cache source install package
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.19041.0\um\Msi.h(242,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
29 2.506427 IPROPNAME_PATCH String PATCH Narrow System.TypedString
#define IPROPNAME_PATCH            TEXT("PATCH")            // patch package to apply - SET BY INSTALLER
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.19041.0\um\MsiDefs.h(99,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
30 2.506427 IPROPNAME_MSIPATCHREMOVE String MSIPATCHREMOVE Narrow System.TypedString
#define IPROPNAME_MSIPATCHREMOVE   TEXT("MSIPATCHREMOVE")   // patch package to remove - SET BY INSTALLER
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.19041.0\um\MsiDefs.h(100,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
31 2.506427 msidbSumInfoSourceType::msidbSumInfoSourceTypeLUAPackage Int32 8 0x00000008 8 System.Int32
msidbSumInfoSourceTypeLUAPackage     = 0x00000008,  // package can be installed by LUA user (elevated privileges are not required for install)
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.19041.0\um\MsiDefs.h(800,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
  • If (_WIN32_MSI >= 400)
32 2.215389 RIFFINFO_ISFT Int32 1413894985 0x54465349 1413894985 System.Int32
#define RIFFINFO_ISFT      mmioFOURCC ('I', 'S', 'F', 'T')     /*Software. Name of package used to create file.  */
#define RIFFINFO_ISFT      mmioFOURCC ('I', 'S', 'F', 'T')     /*Software. Name of package used to create file.  */
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.19041.0\shared\mmreg.h(2069,0)
  • If !defined(__midl)
  • Ifndef _INC_MMREG
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
33 2.193124 SIGNERSCORE_SIGNED_MASK UInt32 4026531840 0xF0000000 -268435456 System.UInt32
#define SIGNERSCORE_SIGNED_MASK     0xF0000000  // Mask out only the upper nibble, which tells us if the package is signed or not.
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.19041.0\um\setupapi.h(7483,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
  • If _SETUPAPI_VER >= _WIN32_WINNT_WINXP
  • If _SETUPAPI_VER >= _WIN32_WINNT_LONGHORN
34 2.17063 IIterator<ABI::Windows::ApplicationModel::Package*> Guid 0217f069-025c-5ee6-a87f-e782e3b623ae N: 0217f069025c5ee6a87fe782e3b623ae
B: {0217f069-025c-5ee6-a87f-e782e3b623ae}
P: (0217f069-025c-5ee6-a87f-e782e3b623ae)
X: {0x0217f069,0x025c,0x5ee6,{0xa8,0x7f,0xe7,0x82,0xe3,0xb6,0x23,0xae}}
A: 69F017025C02E65EA87FE782E3B623AE
System.Guid
struct __declspec(uuid("0217f069-025c-5ee6-a87f-e782e3b623ae"))
IIterator<ABI::Windows::ApplicationModel::Package*> : IIterator_impl<ABI::Windows::Foundation::Internal::AggregateType<ABI::Windows::ApplicationModel::Package*, ABI::Windows::ApplicationModel::IPackage*>>
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.19041.0\winrt\Windows.ApplicationModel.h(1982,0)
  • If defined(__cplusplus) && !defined(CINTERFACE)
  • If WINDOWS_FOUNDATION_UNIVERSALAPICONTRACT_VERSION >= 0x10000
  • If !defined(RO_NO_TEMPLATE_NAME)
35 2.17063 IIterable<ABI::Windows::ApplicationModel::Package*> Guid 69ad6aa7-0c49-5f27-a5eb-ef4d59467b6d N: 69ad6aa70c495f27a5ebef4d59467b6d
B: {69ad6aa7-0c49-5f27-a5eb-ef4d59467b6d}
P: (69ad6aa7-0c49-5f27-a5eb-ef4d59467b6d)
X: {0x69ad6aa7,0x0c49,0x5f27,{0xa5,0xeb,0xef,0x4d,0x59,0x46,0x7b,0x6d}}
A: A76AAD69490C275FA5EBEF4D59467B6D
System.Guid
struct __declspec(uuid("69ad6aa7-0c49-5f27-a5eb-ef4d59467b6d"))
IIterable<ABI::Windows::ApplicationModel::Package*> : IIterable_impl<ABI::Windows::Foundation::Internal::AggregateType<ABI::Windows::ApplicationModel::Package*, ABI::Windows::ApplicationModel::IPackage*>>
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.19041.0\winrt\Windows.ApplicationModel.h(2009,0)
  • If defined(__cplusplus) && !defined(CINTERFACE)
  • If WINDOWS_FOUNDATION_UNIVERSALAPICONTRACT_VERSION >= 0x10000
  • If !defined(RO_NO_TEMPLATE_NAME)
36 2.17063 IVectorView<ABI::Windows::ApplicationModel::Package*> Guid 0263c4d4-195c-5dc5-a7ca-6806ceca420b N: 0263c4d4195c5dc5a7ca6806ceca420b
B: {0263c4d4-195c-5dc5-a7ca-6806ceca420b}
P: (0263c4d4-195c-5dc5-a7ca-6806ceca420b)
X: {0x0263c4d4,0x195c,0x5dc5,{0xa7,0xca,0x68,0x06,0xce,0xca,0x42,0x0b}}
A: D4C463025C19C55DA7CA6806CECA420B
System.Guid
struct __declspec(uuid("0263c4d4-195c-5dc5-a7ca-6806ceca420b"))
IVectorView<ABI::Windows::ApplicationModel::Package*> : IVectorView_impl<ABI::Windows::Foundation::Internal::AggregateType<ABI::Windows::ApplicationModel::Package*, ABI::Windows::ApplicationModel::IPackage*>>
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.19041.0\winrt\Windows.ApplicationModel.h(2063,0)
  • If defined(__cplusplus) && !defined(CINTERFACE)
  • If WINDOWS_FOUNDATION_UNIVERSALAPICONTRACT_VERSION >= 0x10000
  • If !defined(RO_NO_TEMPLATE_NAME)
37 2.17063 IVector<ABI::Windows::ApplicationModel::Package*> Guid d1bb509e-6989-5c69-b1ff-d1702fe8aca3 N: d1bb509e69895c69b1ffd1702fe8aca3
B: {d1bb509e-6989-5c69-b1ff-d1702fe8aca3}
P: (d1bb509e-6989-5c69-b1ff-d1702fe8aca3)
X: {0xd1bb509e,0x6989,0x5c69,{0xb1,0xff,0xd1,0x70,0x2f,0xe8,0xac,0xa3}}
A: 9E50BBD18969695CB1FFD1702FE8ACA3
System.Guid
struct __declspec(uuid("d1bb509e-6989-5c69-b1ff-d1702fe8aca3"))
IVector<ABI::Windows::ApplicationModel::Package*> : IVector_impl<ABI::Windows::Foundation::Internal::AggregateType<ABI::Windows::ApplicationModel::Package*, ABI::Windows::ApplicationModel::IPackage*>>
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.19041.0\winrt\Windows.Management.Deployment.h(1125,0)
  • If defined(__cplusplus) && !defined(CINTERFACE)
  • If WINDOWS_FOUNDATION_UNIVERSALAPICONTRACT_VERSION >= 0x10000
  • If !defined(RO_NO_TEMPLATE_NAME)
38 1.566517 msidbSumInfoSourceType Enum
enum msidbSumInfoSourceType
{
	msidbSumInfoSourceTypeSFN            = 0x00000001,  // source uses short filenames
	msidbSumInfoSourceTypeCompressed     = 0x00000002,  // source is compressed
	msidbSumInfoSourceTypeAdminImage     = 0x00000004,  // source is an admin image
	msidbSumInfoSourceTypeLUAPackage     = 0x00000008,  // package can be installed by LUA user (elevated privileges are not required for install)
};
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.19041.0\um\MsiDefs.h(794,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
  • If (_WIN32_MSI >= 400)
39 1.107695 DSREFTYPETag Enum
enum DSREFTYPETag
{
	DSREFTYPE_NULL				= 0x00,			// Tree has no type information
	DSREFTYPE_COLLECTION		= 0x01,			// Tree has multiple root nodes
	DSREFTYPE_MULTIPLE			= 0x02,			// Tree has multiple leaf nodes
	DSREFTYPE_MIXED				= 0x04,			// Multiple parents have leaf nodes

	DSREFTYPE_DATASOURCEROOT	= 0x10,			// Data source root node

	DSREFTYPE_FIELD				= 0x00000100,	// Field node
	DSREFTYPE_TABLE				= 0x00000200,	// Table node
	DSREFTYPE_QUERY				= 0x00000400,	// Query node (not a db object)
	DSREFTYPE_DATABASE			= 0x00000800,	// Database node
	DSREFTYPE_TRIGGER			= 0x00001000,	// Trigger node
	DSREFTYPE_STOREDPROCEDURE	= 0x00002000,	// Stored Procedure node
	DSREFTYPE_EXTENDED			= 0x00004000,	// Extended node
	DSREFTYPE_SCHEMADIAGRAM		= 0x00008000,	// Schema diagram
	DSREFTYPE_VIEW				= 0x00100000,	// View node
	DSREFTYPE_SYNONYM			= 0x00800000,   // Synonym node
	DSREFTYPE_FUNCTION			= 0x01000000,   // Function node
	DSREFTYPE_PACKAGE			= 0x02000000,   // Package node
	DSREFTYPE_PACKAGEBODY		= 0x04000000,   // Package body node
	DSREFTYPE_RELATIONSHIP		= 0x08000000,	// Relationship node
	DSREFTYPE_INDEX				= 0x10000000,	// Index node
	DSREFTYPE_USERDEFINEDTYPE	= 0x20000000,	// User Defined Type node
	DSREFTYPE_VIEWTRIGGER		= 0x40000000,	// ViewTrigger node
	DSREFTYPE_VIEWINDEX  		= 0x80000000,	// ViewIndex node


	DSREFTYPE_HASFIRSTCHILD		= 0x00010000,	// Node has first child
	DSREFTYPE_HASNEXTSIBLING	= 0x00020000,	// Node has next sibling
	DSREFTYPE_HASNAME			= 0x00040000,	// Node has name
	DSREFTYPE_HASMONIKER		= 0x00080000,	// Node has moniker
	DSREFTYPE_HASOWNER			= 0x00200000,	// Node has owner property
	DSREFTYPE_HASPROP			= 0x00400000,	// Node has additional properties

};
%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Professional\VSSDK\VisualStudioIntegration\Common\Inc\idsref.h(18,0)
40 1.096562 REINSTALLMODE Enum
typedef enum tagREINSTALLMODE  // bit flags
{
	REINSTALLMODE_REPAIR           = 0x00000001,  // Reserved bit - currently ignored
	REINSTALLMODE_FILEMISSING      = 0x00000002,  // Reinstall only if file is missing
	REINSTALLMODE_FILEOLDERVERSION = 0x00000004,  // Reinstall if file is missing, or older version
	REINSTALLMODE_FILEEQUALVERSION = 0x00000008,  // Reinstall if file is missing, or equal or older version
	REINSTALLMODE_FILEEXACT        = 0x00000010,  // Reinstall if file is missing, or not exact version
	REINSTALLMODE_FILEVERIFY       = 0x00000020,  // checksum executables, reinstall if missing or corrupt
	REINSTALLMODE_FILEREPLACE      = 0x00000040,  // Reinstall all files, regardless of version
	REINSTALLMODE_MACHINEDATA      = 0x00000080,  // insure required machine reg entries
	REINSTALLMODE_USERDATA         = 0x00000100,  // insure required user reg entries
	REINSTALLMODE_SHORTCUT         = 0x00000200,  // validate shortcuts items
	REINSTALLMODE_PACKAGE          = 0x00000400,  // use re-cache source install package
} REINSTALLMODE;
%ProgramFiles(x86)%\Windows Kits\10\Include\10.0.19041.0\um\Msi.h(230,0)
  • If WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)