The type RegCloseKeySafeHandle generated for RegLoadAppKey() is not compatible with RegistryKey.FromHandle() #440
Answered
by
AArnott
efraimbart
asked this question in
Q&A
-
The type I'm kinda new to the whole Win32 API, so any help to figure where I should be going from here would be greatly appreciated! |
Beta Was this translation helpful? Give feedback.
Answered by
AArnott
Nov 5, 2021
Replies: 1 comment 1 reply
-
I see that |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
efraimbart
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I see that
SafeRegistryHandle
is implemented to callRegCloseKey
to release the handle, so that meets the purpose. We should be able to reuse that .NET type rather than generating our own.