Quantcast
Channel: Visual C forum
Viewing all articles
Browse latest Browse all 15302

Write/GetProfileString doesn't work while process is lanuched remotly by WMI

$
0
0

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,


Viewing all articles
Browse latest Browse all 15302

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>