LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Programmatically shutdown of W2K

Does anybody know how is it possyble to automatically shutdown W2K using
Labview.
With W9x it was possible lauching some freeware software at the end of the
labview session or calling the API of Windows.
Thanks a lot, Gianluca
0 Kudos
Message 1 of 3
(2,509 Views)
You need to call some WINAPI for that. Recently i built a DLL in VC++ that does that and called that DLL funcion in labview.
See attached zip file.

Enjoy!

A Rafiq
Message 2 of 3
(2,509 Views)
Hi,

you have to call the function ExitWindows vs. ExitWindowsEx in one of
the standard dll libraries inside the system32 directory. At the moment
i don't know which you have to use. Perhaps you can find the information
inside the MSDN library

http://msdn.microsoft.com

good luck
Henrik


IARStudio schrieb:
>
> Does anybody know how is it possyble to automatically shutdown W2K using
> Labview.
> With W9x it was possible lauching some freeware software at the end of the
> labview session or calling the API of Windows.
> Thanks a lot, Gianluca
0 Kudos
Message 3 of 3
(2,509 Views)