2010-11-04 104 views

回答

3

使用SetSuspendState功能,該功能在powrprof.dll

function SetSuspendState(hibernate, forcecritical, disablewakeevent: boolean): boolean; 
    stdcall; external 'powrprof.dll' name 'SetSuspendState'; 

SetSuspendState(false, false, false); // stand by 
SetSuspendState(true, false, false); // hibernate 
相關問題