PnpCtxRegCreateKey

NTSTATUS __fastcall PnpCtxRegCreateKey(
        HPNPCTX *hPnpCtx,
        VOID *hKey,
        WCHAR *SubKey,
        UINT64 RegOptions,
        UINT64 DesiredAccess,
        VOID *pSecurityDescriptor,
        VOID **phkResult,
        UINT64 *pRegDisposition){
  __int64 v8; 
  VOID *hTransaction; 
  INT64 InheritHandle; 

  if( hPnpCtx && (v8 = *((_QWORD *)hPnpCtx + 28)) != 0 )
    hTransaction = *(VOID **)(v8 + 8);
  else
    hTransaction = 0i64;
  LOBYTE(InheritHandle) = 0;
  return RegRtlCreateKeyTransacted(
           hKey,
           SubKey,
           (unsigned int)RegOptions,
           (unsigned int)DesiredAccess,
           pSecurityDescriptor,
           InheritHandle,
           phkResult,
           pRegDisposition,
           hTransaction);
}

Referenced by:

CmAddDeviceToContainerWorker
CmAddPanelDeviceWorker
CmCreateOrdinalInstanceKey
CmSetDeviceInterfaceMappedPropertyFromRegValue
DrvDbAcquireDatabaseNodeBaseKey
IopInitializeBootDrivers
PiDrvDbOverlayCopyKeys
PiDrvDbOverlayNodeHive
PipCommitPendingOsExtensionResource
PipCommitPendingService
PipMigratePnpState
PipUpdateDeviceProducts
PnpOpenPropertiesKey
PnpSetPropertyWorker