CRegKey and Vista permissions
-
I'm trying to call CRegKey regKey; dwError = regKey.Create(HKEY_LOCAL_MACHINE, _T("...my path...")); ...but Create() is returning ERROR_ACCESS_DENIED. Thius is under Vista running as a user. Under XP it is fine. Is it possible to create a registy entry in KCLM? How can I grant it access? Thanks, Jeff
-
I'm trying to call CRegKey regKey; dwError = regKey.Create(HKEY_LOCAL_MACHINE, _T("...my path...")); ...but Create() is returning ERROR_ACCESS_DENIED. Thius is under Vista running as a user. Under XP it is fine. Is it possible to create a registy entry in KCLM? How can I grant it access? Thanks, Jeff
jeffb42 wrote:
Is it possible to create a registy entry in KCLM? How can I grant it access?
One way is to disable UAC. Another is to change your project's manifest file. I personally have not done the latter so I can't offer any specifics.
"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