Post · 1 min read· pp. 2365–2366

CMDATA.H

The public symbol file NTKRPAMP.PDB for the original release of Windows 10 tells that the kernel is built with the CMDATA.H header at

d:\th\minkernel\ntos\inc

and draws from it the following type definitions:

Line NumberType
57struct _CM_KEY_HASH
64struct _CM_NAME_HASH
71struct _CM_KEY_HASH_TABLE_ENTRY
240struct _CM_NAME_CONTROL_BLOCK
255struct _CM_INDEX_HINT_BLOCK
261struct _CACHED_CHILD_LIST
306struct _CHILD_LIST
315struct _CM_KEY_REFERENCE
353struct _CM_INDEX
367struct _CM_KEY_INDEX
470struct _CM_KEY_NODE
537struct _CM_KEY_VALUE
565struct _CM_BIG_DATA
579struct _CM_KEY_SECURITY
593struct _CM_KEY_SECURITY_CACHE
602struct _CM_KEY_SECURITY_CACHE_ENTRY
618struct _CELL_DATA
619union _u
682struct _CM_CACHED_VALUE_INDEX
684unnamed union Data in _CM_CACHED_VALUE_INDEX
719struct _CM_INTENT_LOCK
793struct _CM_KEY_CONTROL_BLOCK

The header CMDATA.H is not known in any Device Driver Kit (DDK) or Windows Driver Kit (WDK).

Incidentally, although the public debugging support for the kernel hasn’t disclosed full pathnames of source files (in contrast to object files) since Windows NT 4.0, the public symbol files do show that the source files are written in C. An easy example comes from _CELL_DATA and _u. Type information for these implies the nesting

source
typedef struct _CELL_DATA {
    union _u {
        /*  members omitted  */
    } u;
} CELL_DATA;

but the decorated name of _u is not .?AT_u@_CELL_DATA@@, as would model the scoping rules of C++, but is instead .?AT_u@@, as from compiling C.