You are right, shut down is not standard on all windows system but it is
basic component of all nt systems, like I sad. by the way on unix platform
it is also a common way
to remote shutdown or shedule shutdown your system.
SeShutDownPrivelige is what I meant concerning the shutdown api... indeed it
is very simple.
"Wiebe@AIR" wrote in message
news:3e3a6e08$0$121$e4fe514c@dreader4.news.xs4all.nl...
> Well, I get:
>
> 'shutdown' is not recognized as an internal or external command, operable
> program or batch file.....
>
> So this is probably a feature that is not standard.
>
> It's not that difficult to get the SeShutdownPrivilege with
> AdjustTokenPrivileges...
>
> Regards,
>
> Wiebe.
>
>
>
> "Sebastian Dau" wrote in message
> news:3e3927ae$0$205$4d4ebb8e@read.news.de.uu.net...
> > Just write a dll that uses the shutdown api (relatively easy) in c++ or,
> if
> > you'r using a win nt system, just call a command line feature
> (shutdown -s).
> > there are some tips according a command line call by using labview.
> >
> > "Wiebe@AIR" wrote in message
> > news:3e34f70a$0$151$e4fe514c@dreader8.news.xs4all.nl...
> > > Hi,
> > >
> > > Actually, the user might have the rights to shutdown the PC, the
program
> > > doesn't. A logout is allowed, because this does not require services
to
> > > stop.
> > >
> > > A program can get the rights to shutdown the PC. It's not easy (lot's
of
> > > complicated VI's), but it can be done from LV. If you drop me a mail,
> I'll
> > > send you the VI.
> > >
> > > Regards,
> > >
> > > Wiebe.
> > >
> > >
> > >
> > > "waldemar.hersacher" wrote in message
> > > news:506500000005000000A7C70000-1042324653000@exchange.ni.com...
> > > > ExitWindows.vi and ExitWindowsEx will not work for a normal user
under
> > > > Win NT, 2000 and XP Professional since a normal user has not the
right
> > > > to shutdown windows.
> > > >
> > > > You have to search in the internet for programs which do this. We
use
> > > > Winexit form http://posum.com which works fine.
> > > > Another way todo this is to write a program of your own. The sample
> > > > source code is in the MSDN examples. You find this under security
> > > > tokens.
> > >
> > >
> > >
> >
> >
>
>
>