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
Thanks,
Robert
"Robert Misiak" <chrono...@yahoo-cut.this.part.out-.com> wrote in
message news:1UNyc.3080$Wr....@newsread1.news.pas.earthlink.net...
>Alternatively, is it possible for me to programmatically change the time
>zone without launching TimeDate.cpl?
http://msdn.microsoft.com/library/en-us/sysinfo/base/settimezoneinformation.asp
Declaration available at http://www.pinvoke.net
Mattias
--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Best,
Robert
--
"Mattias Sjögren" <mattias.don...@mvps.org> wrote in message
news:eTrtMhTU...@tk2msftngp13.phx.gbl...