Setting System Clock in Vista (&7) - UAC problem
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
I have written a program (C++/MFC) to obtain the correct time from a time server and set the system clock. Unfortunately, Vista & Win 7 with UAC enabled block this operation. How can I elevate the program's security privledge level so that I can set the clock? Is that the right approach? If not, how else might I go about it? I wouldn't have thought the system time would be that protected, but it obviously is. I am using a Code Project solution CSNTPClient class and the class function CSNTPClient::SetClientTime(CTime newTime) The solution on my own machine is to turn UAC off, but that's not practical or reasonable on other people's computers. Thanks. Ron