CM_EXTENDED_PARAMETER - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _NTREGAPI_H

/**
 * The CM_EXTENDED_PARAMETER structure represents an extended parameter passed to registry APIs.
 *
 * The structure occupies 16 bytes and is aligned to 8 bytes on x64 and x86. Type occupies the low
 * 8 bits of the first ULONG64; the value union begins at offset 8. NtLoadKey3 consumes handles for
 * its supported types. Duplicate or unsupported types return STATUS_INVALID_PARAMETER_4.
 */
typedef struct DECLSPEC_ALIGN(8) _CM_EXTENDED_PARAMETER
{
    struct
    {
        ULONG64 Type : CM_EXTENDED_PARAMETER_TYPE_BITS;
        ULONG64 Reserved : 64 - CM_EXTENDED_PARAMETER_TYPE_BITS;
    };

    union
    {
        ULONG64 ULong64;
        PVOID Pointer;
        SIZE_T Size;
        HANDLE Handle;
        ULONG ULong;
        ACCESS_MASK AccessMask;
    };
} CM_EXTENDED_PARAMETER, *PCM_EXTENDED_PARAMETER;

#endif

View code on GitHub

NtDoc

No description available.