AUTOHOTKEY/레퍼런스
Shutdown 시스템을 종료, 재기동, 로그 오프 한다
님투
2007. 11. 5. 16:51
반응형
Shutdown
시스템을 종료, 재기동, 로그 오프 한다
Shutdown, Code
Parameters
인수명 | 설명 |
---|---|
Code | 이하의 것의 화
|
Remarks
OnExit써브루틴을 설정해 두어, 「A_ExitReason」변수를 조사하면, 유저가 슛다운이나 로그 오프를 실시하려고 한 것을 알 수 있다.
Related
Example(s)
; Force a reboot (reboot + force = 2 + 4 = 6): Shutdown, 6
; 중지나 하이바네이트를 실시하고 싶은 경우는, 아래와 같이Windows의API(을)를 호출한다. ; Windows 95/NT4: Since this function does not exist, the following call would have no effect. ; Parameter #1: Pass 1 instead of 0 to hibernate rather than suspend. ; Parameter #2: Pass 1 instead of 0 to request permission from each application prior to suspending. ; Parameter #3: Pass 1 instead of 0 to disable all wake events. DllCall("PowrProf\SetSuspendState", "int", 0, "int", 0, "int", 0)
반응형