Reading from registry
-
I have two specific keys available at the following location in registry HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\INSTALLER\USERDATA\S-1-5-18\PRODUCTS\---CLASSID----\InstallProperties\ The above path is having classid with it. How to read this and retrieve the value.
-
I have two specific keys available at the following location in registry HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\INSTALLER\USERDATA\S-1-5-18\PRODUCTS\---CLASSID----\InstallProperties\ The above path is having classid with it. How to read this and retrieve the value.
-
I have two specific keys available at the following location in registry HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\INSTALLER\USERDATA\S-1-5-18\PRODUCTS\---CLASSID----\InstallProperties\ The above path is having classid with it. How to read this and retrieve the value.
Venkat KR wrote:
How to read this and retrieve the value.
Start here.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
-
Venkat KR wrote:
How to read this and retrieve the value.
Start here.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
//Open the registrey and check that is it writable lRet=RegOpenKey(HKEY_LOCAL_MACHINE, strKeyPath,hKey); //if lRet != ERROR_SUCCESS then go to read registrey unsigned char* lpBufferValue = new unsigned char [dwSize]; unsigned long dwType = 0; unsigned long dwSize = 0; lpBufferValue = new unsigned char [dwSize]; ASSERT(lpBufferValue); lRet = RegQueryValueEx(hKey,strValueName, NULL,dwType, lpBufferValue,dwSize); // if dwSize is not 0 then it is success // close registrey (either success or failure ) RegCloseKey(hKey); I hope this will work.
It's not enough to be the best, when you have capability to be great..
-
I have two specific keys available at the following location in registry HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\INSTALLER\USERDATA\S-1-5-18\PRODUCTS\---CLASSID----\InstallProperties\ The above path is having classid with it. How to read this and retrieve the value.
//Open the registrey and check that is it writable lRet=RegOpenKey(HKEY_LOCAL_MACHINE, strKeyPath,hKey); //if lRet != ERROR_SUCCESS then go to read registrey unsigned char* lpBufferValue = new unsigned char [dwSize]; unsigned long dwType = 0; unsigned long dwSize = 0; lpBufferValue = new unsigned char [dwSize]; ASSERT(lpBufferValue); lRet = RegQueryValueEx(hKey,strValueName, NULL,dwType, lpBufferValue,dwSize); // if dwSize is not 0 then it is success // close registrey (either success or failure ) RegCloseKey(hKey); I hope this will work.
It's not enough to be the best, when you have capability to be great....