- CVI 정보나눔(www.cvi.kr)
- 스터디
- 질문답변
질문,답변
글 수 1,629
노식님께서 남기신 글입니다.
> 컴퓨터사용제한 프로그램을 만들고 싶군요.
> 혹 System을 제어할려면 어떤Function을 사용하면되느지 궁금합니다.
> 즉 프로그램사용중이라하드라도 Power Off가능하게 할려고 합니다.
>
새해 복 많이 받으셨나요..^^
cvi에서 컴퓨터를 제어할려고 하면...Windows SDK 를 사용하시면 됩니다.
cvi의 help에 보면 나와 있어요...
님이..하실려는 power off는 윈도우를 종료하면 power off가 되니까..
다음의 함수를 사용해보세요..
BOOL ExitWindowsEx(
UINT uFlags, // shutdown operation
DWORD dwReserved // reserved
);
The ExitWindowsEx function either logs off the current user, shuts down the system, or shuts down and restarts the system. It sends the WM_QUERYENDSESSION message to all applications to determine if they can be terminated.
혹시...OS를 가릴지도 모르니까...HELP를 잘 보세요.....^^
그럼..^^
> 컴퓨터사용제한 프로그램을 만들고 싶군요.
> 혹 System을 제어할려면 어떤Function을 사용하면되느지 궁금합니다.
> 즉 프로그램사용중이라하드라도 Power Off가능하게 할려고 합니다.
>
새해 복 많이 받으셨나요..^^
cvi에서 컴퓨터를 제어할려고 하면...Windows SDK 를 사용하시면 됩니다.
cvi의 help에 보면 나와 있어요...
님이..하실려는 power off는 윈도우를 종료하면 power off가 되니까..
다음의 함수를 사용해보세요..
BOOL ExitWindowsEx(
UINT uFlags, // shutdown operation
DWORD dwReserved // reserved
);
The ExitWindowsEx function either logs off the current user, shuts down the system, or shuts down and restarts the system. It sends the WM_QUERYENDSESSION message to all applications to determine if they can be terminated.
혹시...OS를 가릴지도 모르니까...HELP를 잘 보세요.....^^
그럼..^^