请教:定时关闭系统API函数应用问题
程序代码:
* 定时关闭系统(WinNT only) *------------------------------------------------------ Clea Declare INTEGER GetLastError IN kernel32 Declare SHORT InitiateSystemShutdown IN advapi32; STRING lpMachineName,; STRING lpMessage,; INTEGER dwTimeout,; SHORT bForceAppsClosed,; SHORT bRebootAfterShutdown If InitiateSystemShutdown ("", "时间超出", 10, 0, 1) <> 1 &&这一部分是什么意思? * Common reasons for failure include an invalid * or inaccessible computer name or insufficient privilege. * 5 = ERROR_ACCESS_DENIED * 120 = ERROR_CALL_NOT_IMPLEMENTED -- not supported in Win9* ? "Error code:", GetLastError() Endif代码放到VFP的主程序中吗?是定时关闭VFP程序?还是关闭操作系统?谢谢帮忙!
[ 本帖最后由 muyubo 于 2012-3-31 09:36 编辑 ]