RegConnectRegistry function advapi32

WIN32_ERROR RegConnectRegistry(
  1. PCWSTR? lpMachineName,
  2. HKEY hKey,
  3. Pointer<Pointer<NativeType>> phkResult
)

Establishes a connection to a predefined registry key on another computer.

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

Implementation

@pragma('vm:prefer-inline')
WIN32_ERROR RegConnectRegistry(
  PCWSTR? lpMachineName,
  HKEY hKey,
  Pointer<Pointer> phkResult,
) =>
    WIN32_ERROR(_RegConnectRegistry(lpMachineName ?? nullptr, hKey, phkResult));