المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : RegConnectRegistry and RegOpenKey return Access is Denied.



C++ Programming
02-10-2010, 12:23 AM
Hi all,

please help me to resolve error of Access is Denied.

When server is Windows server 2008 and client machine is Windows xp Professional with service pack 3.

in network window when i want to access this client machine its popup a username and password window to access.

in my code if i use RegConnectRegistry without entering username password in network window for xp client,this return a error of Access Denied.

if i use RegConnectRegistry after entering username password in network window for xp client,
than its execute,no error return but after the i want to open the registry by RegOpenKey.

now this return error access denied.

please help me what can i do.

thanks.To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.