Hi to all!
I used to turn off the computer at end of the program with:
WinExec("shutdown -s -t 5 -c 'Shutdown Message'")
Now we are using Terminal Sever and the above command does nothing on the terminals.
There is some API to logoff the terminal?
TIA .and. regards, Euclides