Hi,
How to access Remote registry in C.
I can use the regedit and connect to the remote system.
But I need it in my application. Can anybody help me out..
Thanks,
Pradeep
Printable View
Hi,
How to access Remote registry in C.
I can use the regedit and connect to the remote system.
But I need it in my application. Can anybody help me out..
Thanks,
Pradeep
Hi,
Well I cud figure it out...
Its in C.. I wanted it in C...
Thanks,Code:lRetVal = RegConnectRegistry(ServerName, HKEY_LOCAL_MACHINE, &lHKeyhandle);
lRetVal = RegOpenKeyEx(lHKeyhandle, "SOFTWARE\\Project", 0, KEY_ALL_ACCESS, &lhkey);
dwTemp = (DWORD)255;
strcpy(vValue,PathName);
strcat(vValue," 1 1");
lRetVal = RegSetValueEx(lhkey,"Agent",NULL,REG_SZ,(LPBYTE)vValue, dwTemp);
Pradeep