Our software encountered a problem seems that if the user who installed the software and the user who operates it are not the same one, some functions might fail.
I'm investigating the problem,
Get current username in C++ on Windows
Now I want to know one or two functions that would behave diferently under different user, so I can test the problem.
if(someFunction())
{
cout<<"That works under user:"<<GetUsername()<<endl;
}else
{
cout<<"That doesn't works under user:"<<GetUsername()<<endl;
}
Edit:
Our software already is set to require run as administrator,
How to run application with Admin privileges using Manifest file in Visual Studio 2005?