R
Robert Misiak
In a program that I wrote, it is very important for the user to have the
correct time zone configured. As such, in its properties window I display
the current configured time zone, and if it is incorrect there is a button
that the user can click on which launches TimeDate.cpl. This is how I run
it:
System.Diagnostics.Process.Start ("rundll32.exe",
"shell32.dll,Control_RunDLL TimeDate.cpl");
This works just fine in debug mode from the VS.NET development environment;
however, when I compile and install a release version, TimeDate.cpl displays
a MessageBox with this message:
"You do not have the proper privilege level to change the System Time."
The user account does have that authority, as it is the same one I was able
to run TimeDate.cpl via the VS.NET devenv. Any ideas of how to get around
this?
Thanks,
Robert
correct time zone configured. As such, in its properties window I display
the current configured time zone, and if it is incorrect there is a button
that the user can click on which launches TimeDate.cpl. This is how I run
it:
System.Diagnostics.Process.Start ("rundll32.exe",
"shell32.dll,Control_RunDLL TimeDate.cpl");
This works just fine in debug mode from the VS.NET development environment;
however, when I compile and install a release version, TimeDate.cpl displays
a MessageBox with this message:
"You do not have the proper privilege level to change the System Time."
The user account does have that authority, as it is the same one I was able
to run TimeDate.cpl via the VS.NET devenv. Any ideas of how to get around
this?
Thanks,
Robert