RegOpenCurrentUser function advapi32

int RegOpenCurrentUser(
  1. int samDesired,
  2. Pointer<IntPtr> phkResult
)

Retrieves a handle to the HKEY_CURRENT_USER key for the user the current thread is impersonating.

LSTATUS RegOpenCurrentUser(
  REGSAM samDesired,
  PHKEY  phkResult);

Implementation

int RegOpenCurrentUser(int samDesired, Pointer<IntPtr> phkResult) =>
    _RegOpenCurrentUser(samDesired, phkResult);