Hi Guys,
I have an issue is CWinApp::Write/GetProfileString cannot store/retreive data into registry when the process is lanuched remotly by WMI, in my App's InitInstance
{
SetRegistryKey(_T("Test"));
WriteProfileString(_T("Settings"), _T("Key1"), _T("Value1"));
}
the code works fine if I lanuch the program by double click .exe. on below scenario the WriteProfileString doesn't work. if the remote machine is not login desktop env and then lanuch the exe remote through WMI. but if remote is login desktop env and lanuch
exe remotely through WMI it worked. do you know why?
Thanks,