Skip to content

The type RegCloseKeySafeHandle generated for RegLoadAppKey() is not compatible with RegistryKey.FromHandle() #440

Answered by AArnott
efraimbart asked this question in Q&A
Discussion options

You must be logged in to vote

I see that SafeRegistryHandle is implemented to call RegCloseKey to release the handle, so that meets the purpose. We should be able to reuse that .NET type rather than generating our own.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@AArnott
Comment options

Answer selected by efraimbart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants