# RegCloseKey

```csharp
[DllImport("coredll.dll", SetLastError = true)]
public static extern int RegCloseKey(
   IntPtr hKey
);
```

Microsoft documentation: [Link](https://docs.microsoft.com/en-us/windows/win32/api/winreg/nf-winreg-regclosekey)
