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