RegConnectRegistry : Access Denied
-
Hi Devs,
API RegConnectRegistry : HKEY_PERFORMANCE_DATA
Faling with Error: Access Denied
GetLastError: Overlapped I/O operation is in progress
Domain account is used for remote connection.
Thanks
SandyGA couple of things to note. You don't have to wrap your message in the pre and code tags. Only use that for actual code. We can't help when you don't actually provide any code at all.
*pre-emptive celebratory nipple tassle jiggle* - Sean Ewington
"Mind bleach! Send me mind bleach!" - Nagy Vilmos
My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility
-
A couple of things to note. You don't have to wrap your message in the pre and code tags. Only use that for actual code. We can't help when you don't actually provide any code at all.
*pre-emptive celebratory nipple tassle jiggle* - Sean Ewington
"Mind bleach! Send me mind bleach!" - Nagy Vilmos
My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility
Thanks for the comment... Code: Assuming LogonUser and ImpersonateLoggedOnUser are used before this call... HKEY hMachine = NULL; LONG rc = ::RegConnectRegistry("\\\\abc", HKEY_PERFORMANCE_DATA, &hMachine); if (ERROR_SUCCESS != rc) { if (ERROR_ACCESS_DENIED == rc) { //.... } }
-
Thanks for the comment... Code: Assuming LogonUser and ImpersonateLoggedOnUser are used before this call... HKEY hMachine = NULL; LONG rc = ::RegConnectRegistry("\\\\abc", HKEY_PERFORMANCE_DATA, &hMachine); if (ERROR_SUCCESS != rc) { if (ERROR_ACCESS_DENIED == rc) { //.... } }
Have you verified that the remote registry service is running on the remote computer? Also, there are other conditions that will call this to fail; specifically, if you have the policy "Force network logons using local accounts to authenticate as Guest" this will fail as well.
*pre-emptive celebratory nipple tassle jiggle* - Sean Ewington
"Mind bleach! Send me mind bleach!" - Nagy Vilmos
My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility
-
Have you verified that the remote registry service is running on the remote computer? Also, there are other conditions that will call this to fail; specifically, if you have the policy "Force network logons using local accounts to authenticate as Guest" this will fail as well.
*pre-emptive celebratory nipple tassle jiggle* - Sean Ewington
"Mind bleach! Send me mind bleach!" - Nagy Vilmos
My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility