RegOpenKeyTransacted function advapi32

WIN32_ERROR RegOpenKeyTransacted(
  1. HKEY hKey,
  2. PCWSTR? lpSubKey,
  3. int? ulOptions,
  4. REG_SAM_FLAGS samDesired,
  5. Pointer<Pointer<NativeType>> phkResult,
  6. HANDLE hTransaction,
)

Opens the specified registry key and associates it with a transaction.

To learn more, see learn.microsoft.com/windows/win32/api/winreg/nf-winreg-regopenkeytransactedw.

Implementation

@pragma('vm:prefer-inline')
WIN32_ERROR RegOpenKeyTransacted(
  HKEY hKey,
  PCWSTR? lpSubKey,
  int? ulOptions,
  REG_SAM_FLAGS samDesired,
  Pointer<Pointer> phkResult,
  HANDLE hTransaction,
) => WIN32_ERROR(
  _RegOpenKeyTransacted(
    hKey,
    lpSubKey ?? nullptr,
    ulOptions ?? NULL,
    samDesired,
    phkResult,
    hTransaction,
    nullptr,
  ),
);