LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Shutdown the computer from a CVI Aplication on W'98

Can Anybidy explain me how can I Shotdown the computer or Restart the computer
fom a CVI program running on W'98?
Many thanks
Image Hosted by ImageShack.us
0 Kudos
Message 1 of 2
(3,147 Views)
In article <3a3de6bb@newsgroups.ni.com>, Xavier Caparrós
writes
>
>Can Anybidy explain me how can I Shotdown the computer or Restart the computer
>fom a CVI program running on W'98?
>Many thanks

You need the Windows SDK for this;

/* Shut down the system and force all applications to close. */

ExitWindowsEx(EWX_SHUTDOWN | EWX_FORCE, 0);

--
Regards

John Cameron
Senior Design Engineer

Northern Hi-Tec Ltd
Wasco House
Willow Lane
Lancaster
LA1 5NA
United Kingdom

Telephone: +44 (0) 1524 67833
Facsimile: +44 (0) 1524 67544
Email: john.cameron@nht.co.uk
URL: www.nht.co.uk
0 Kudos
Message 2 of 2
(3,147 Views)