General information
Category:
Coding, syntax & commands
>>I put this code into xboot.prg and then ran it... nothing happened.
>>
>>Is there more I need to know / do?
>>
>>Thanks
>>
>>>>I need to lock a PC so that it runs my app on startup and reboots when my app exits...
>>>>
>>>>Any ideas?
>>>
>>>DECLARE INTEGER ExitWindowsEx IN WIN32API INTEGER uFlags, INTEGER nReserved
>>>ExitWindowsEx(2 + 4 + 16, 0)
>>>
>
>It worked on the machine I tested at home; try using 6 (drop the ForceIfHung flag, 0x10, from the flag mix) rather than 22, since that might not be in whatever version of the API you're using. It's a relatively late addition to the API.
>
>>>>
>>>>TIA
Is this what you mean......
DECLARE INTEGER ExitWindowsEx IN WIN32API INTEGER uFlags, INTEGER nReserved
*ExitWindowsEx(2 + 4 + 16, 0)
ExitWindowsEx(6,0)
?????????????????
Still didn't reboot... Where can I find API help?
Thanks
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only