Registry.
-
how to find if a particular registry entry is present or not. In one of my project , when the application starts it need to check if a particular registry is present,if present it would follow a different course. Pls help. Thanks.. vikram
Have a look at the
CRegKey
class in MSDN.
Nobody can give you wiser advice than yourself. - Cicero ப்ரம்மா
-
how to find if a particular registry entry is present or not. In one of my project , when the application starts it need to check if a particular registry is present,if present it would follow a different course. Pls help. Thanks.. vikram
Try to open the key with
::RegOpenKeyEx
with the security access mask set toREG_QUERY_VALUE
to avoid errors due to insufficient rights in case the user is not an administrator or priveliged user. If the call returnsERROR_SUCCESS
the key is present and if you're interested in the value of the key you call::RegQueryValueEx
. Close the opened key with a call to::RegCloseKey
. -- Roger
"It's supposed to be hard, otherwise anybody could do it!" - selfquote
-
Try to open the key with
::RegOpenKeyEx
with the security access mask set toREG_QUERY_VALUE
to avoid errors due to insufficient rights in case the user is not an administrator or priveliged user. If the call returnsERROR_SUCCESS
the key is present and if you're interested in the value of the key you call::RegQueryValueEx
. Close the opened key with a call to::RegCloseKey
. -- Roger
"It's supposed to be hard, otherwise anybody could do it!" - selfquote
-
how to find if a particular registry entry is present or not. In one of my project , when the application starts it need to check if a particular registry is present,if present it would follow a different course. Pls help. Thanks.. vikram
-
-
Have a look at the
CRegKey
class in MSDN.
Nobody can give you wiser advice than yourself. - Cicero ப்ரம்மா
-
Cregistry class is helpful.. thanks .. :) ... but for the time being i have sticked to using CregKey. ~VIKRAM
I hope you successful ;)
WhiteSky