RegQueryInfoKey function advapi32

int RegQueryInfoKey(
  1. int hKey,
  2. Pointer<Utf16> lpClass,
  3. Pointer<Uint32> lpcchClass,
  4. Pointer<Uint32> lpReserved,
  5. Pointer<Uint32> lpcSubKeys,
  6. Pointer<Uint32> lpcbMaxSubKeyLen,
  7. Pointer<Uint32> lpcbMaxClassLen,
  8. Pointer<Uint32> lpcValues,
  9. Pointer<Uint32> lpcbMaxValueNameLen,
  10. Pointer<Uint32> lpcbMaxValueLen,
  11. Pointer<Uint32> lpcbSecurityDescriptor,
  12. Pointer<FILETIME> lpftLastWriteTime
)

Retrieves information about the specified registry key.

LSTATUS RegQueryInfoKeyW(
  HKEY      hKey,
  LPWSTR    lpClass,
  LPDWORD   lpcchClass,
  LPDWORD   lpReserved,
  LPDWORD   lpcSubKeys,
  LPDWORD   lpcbMaxSubKeyLen,
  LPDWORD   lpcbMaxClassLen,
  LPDWORD   lpcValues,
  LPDWORD   lpcbMaxValueNameLen,
  LPDWORD   lpcbMaxValueLen,
  LPDWORD   lpcbSecurityDescriptor,
  PFILETIME lpftLastWriteTime);

Implementation

int RegQueryInfoKey(
        int hKey,
        Pointer<Utf16> lpClass,
        Pointer<Uint32> lpcchClass,
        Pointer<Uint32> lpReserved,
        Pointer<Uint32> lpcSubKeys,
        Pointer<Uint32> lpcbMaxSubKeyLen,
        Pointer<Uint32> lpcbMaxClassLen,
        Pointer<Uint32> lpcValues,
        Pointer<Uint32> lpcbMaxValueNameLen,
        Pointer<Uint32> lpcbMaxValueLen,
        Pointer<Uint32> lpcbSecurityDescriptor,
        Pointer<FILETIME> lpftLastWriteTime) =>
    _RegQueryInfoKey(
        hKey,
        lpClass,
        lpcchClass,
        lpReserved,
        lpcSubKeys,
        lpcbMaxSubKeyLen,
        lpcbMaxClassLen,
        lpcValues,
        lpcbMaxValueNameLen,
        lpcbMaxValueLen,
        lpcbSecurityDescriptor,
        lpftLastWriteTime);