G
Guest
I'm converting c++ code to c#. Here the interface declarations for the 2
should remain same. so if I have interface declaration as below
object GetRegistryKey(long keyParent, string keyPath, string keyName) in c++
I need to keep it the same in c# also.
basically the function access values inside a registry given the path/name,
also keyparent above refers to hkey (eg:localmachine/currentuser etc.).
In .net we can use Registry and Registrykey to access registry where as in
c++ HKEY values are used, which have values as showed below,
eg: HKEY_CLASSES_ROOT = &H80000000
HKEY_CURRENT_USER = &H80000001
HKEY_LOCAL_MACHINE = &H80000002
now my problem is to convert this long # which comes in as the input to
registry.localmachine. Is this possible if so, how?
Thanks for any help.
should remain same. so if I have interface declaration as below
object GetRegistryKey(long keyParent, string keyPath, string keyName) in c++
I need to keep it the same in c# also.
basically the function access values inside a registry given the path/name,
also keyparent above refers to hkey (eg:localmachine/currentuser etc.).
In .net we can use Registry and Registrykey to access registry where as in
c++ HKEY values are used, which have values as showed below,
eg: HKEY_CLASSES_ROOT = &H80000000
HKEY_CURRENT_USER = &H80000001
HKEY_LOCAL_MACHINE = &H80000002
now my problem is to convert this long # which comes in as the input to
registry.localmachine. Is this possible if so, how?
Thanks for any help.