question

osvbnet avatar image
0 Votes"
osvbnet asked JiachenLiMFST-9349 commented

My.Computer.Registry vs Microsoft.Win32.Registry

Hey all,
Which one do you prefer?
I remember I've seen advises to reduce using Win32 APIs!
And Visual Basic APIs on the other side!
Any tip on which to use?
Thanks :)

dotnet-visual-basic
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @osvbnet ,
May I know if you have got any chance to check my answer? I am glad to help if you have any other questions.

1 Vote 1 ·

1 Answer

JiachenLiMFST-9349 avatar image
0 Votes"
JiachenLiMFST-9349 answered

Hi @osvbnet ,
My.Computer.Registry and Microsoft.Win32.Registry can achieve the same function.
But Microsoft.Win32.Registry is suitable for more products.
https://docs.microsoft.com/en-us/dotnet/api/microsoft.win32.registry?view=net-6.0#applies-to
https://docs.microsoft.com/en-us/dotnet/api/microsoft.visualbasic.myservices.registryproxy?view=windowsdesktop-6.0#applies-to
Best Regards.
Jiachen Li


If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.