Hi,
how can i preform reboot to my machine from my win application?
Thanks,
Gidi.
zacks@construction-imaging.com - 31 Jul 2008 13:56 GMT
> Hi,
>
> how can i preform reboot to my machine from my win application?
>
> Thanks,
> Gidi.
I do ti by running a "shutdown /r" command in a Process.
Gidi - 31 Jul 2008 14:12 GMT
Thanks,
I know this command, but it's not working for Win2K, i'm looking for
something generic.
> > Hi,
> >
[quoted text clipped - 4 lines]
>
> I do ti by running a "shutdown /r" command in a Process.
Larry Smith - 31 Jul 2008 14:16 GMT
> how can i preform reboot to my machine from my win application?
http://msdn.microsoft.com/en-us/library/aa376883(VS.85).aspx
Gidi - 31 Jul 2008 14:51 GMT
Hi,
thanks, I tried that, and it doesn't work for Win 2K...
> > how can i preform reboot to my machine from my win application?
>
> http://msdn.microsoft.com/en-us/library/aa376883(VS.85).aspx
Larry Smith - 31 Jul 2008 14:59 GMT
> Hi,
>
> thanks, I tried that, and it doesn't work for Win 2K...
I no longer have Win2K installed. How could it not work however. These are
the official functions from the WinAPI itself and most are documented to
include Win2K. All other platforms including .NET itself will rely on these
in theory.
Ignacio Machin ( .NET/ C# MVP ) - 31 Jul 2008 14:45 GMT
> Hi,
>
> how can i preform reboot to my machine from my win application?
>
> Thanks,
> Gidi.
always look into the archives before asking:
http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_t
hread/thread/7963a5465a78a259/75d94c9bc162951b?lnk=gst&q=reboot#75d94c9bc162951b
Gidi - 31 Jul 2008 15:28 GMT
Thanks,
that works!
> > Hi,
> >
[quoted text clipped - 5 lines]
> always look into the archives before asking:
> http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_t
hread/thread/7963a5465a78a259/75d94c9bc162951b?lnk=gst&q=reboot#75d94c9bc162951b