창조유저그룹-커즈닷컴
Window close
ID :     PASS :   
   
  처음으로
  창조
  창조 소개
창조 다운로드
CUGz.com 소개
온라인 도움말
  커뮤니티
  가입인사
자유게시판
Q/A게시판
TIP/TECH
열린강좌
자주하는질문
아이디어게시판
  자료실
  소스자료실
프로그램자료실
기타자료실
명예의 전당
이미지 자료실
  지원/기타
  표준용어재정
구글 웹서치  
관리자 전용


질문게시판
- 반드시 검색을 하신 후 원하는 답변을 찾을 수 없을 때, 질문을 올려주세요.


LIST ALL
Posted by ps.구루2004-04-24 13:29:02, Hit : 4601
API - ExitWindowsEx (<table><td><tr> 안먹네;;)
Post URL : http://cugz.sjworks.net/bbs/zboard.php?id=qna&no=746
ExitWindowsEx

The ExitWindowsEx function either logs off, shuts down, or shuts down and restarts the system.
ExitWindowsEx 함수는 로그 오프, 시스템 종료, 시스템 재시작을 가능하게 합니다.
 
원형:
BOOL ExitWindowsEx(
    UINT uFlags,    // shutdown operation
    DWORD dwReserved    // reserved
   );

창조에 맞춤:
진리함수: ExitWindowsEx(실수: uFlags, dwReserved);


   
창조에서 사용법

1. user32.dll을 사용자함수에 연결
2. 함수 목록 중 하나에 위 '창조에 맞춤' 아래 부분을 추가...
3. 사용시 내용은 아래 내용 쭈우욱 참조

예) ExitWindowsEx(1, 0); //시스템 종료시
 
 
1. 인자 (매개변수)
 
1. 1. uFlags
1. 1. Specifies the type of shutdown. This parameter must be some combination of the following values:
1. 1. 시스템 종료하는 종류를 의미합니다. 이 매개변수는 반드시 다음 내용 중 하나여야 하죠.

값      |      (창조에서) 값      |        뜻


EWX_FORCE      |      4      |      Forces processes to terminate. When this flag is set, Windows does not send the messages WM_QUERYENDSESSION and WM_ENDSESSION to the applications currently running in the system. This can cause the applications to lose data. Therefore, you should only use this flag in an emergency.
            프로세스를 끝낸다. 이 플래그가 설정되면 WM_QUERYENDSESSION와 WM_ENDSESSION 메시지를 띄워져 있는 프로그램에게 전달합니다 (메시지는 일종의 컴퓨터 쪽지죠.. SendMessage와 PostMessage와 관련이 깊습니다). 주의! 이 방법은 어플리케이션의 정보를 잃을 수 있습니다. 그래서 이 플래그는 비상사태에만 써야합니다.
        


            

EWX_LOGOFF      |      0      |      Shuts down all processes running in the security context of the process that called the ExitWindowsEx function. Then it logs the user off.
            모든 구동중인 프로세스를 안전하게 닫고 로그 오프합니다.
        


            

EWX_POWEROFF      |      8      |      Shuts down the system and turns off the power. The system must support the power-off feature.
            모든 시스템을 닫고 전원을 끕니다. 시스템(운영체제)이 이를 지원해야 합니다. 주의! 이 방법은 그리 안전하지 않습니다
            Windows NT: The calling process must have the SE_SHUTDOWN_NAME privilege. For more information, see the following Remarks section.
            Windows 95: Security privileges are not supported or required.
        


            

EWX_REBOOT      |      2      |      Shuts down the system and turns off the power. The system must support the power-off feature.
            시스템을 끄고 전원도 끕니다(켠다는 말이 있을텐데 안보임). 시스템이 이를 지원해야합니다.
            Windows NT: The calling process must have the SE_SHUTDOWN_NAME privilege. For more information, see the following Remarks section.
            Windows 95: Security privileges are not supported or required.
        


            

EWX_SHUTDOWN      |      1      |      Shuts down the system to a point at which it is safe to turn off the power. All file buffers have been flushed to disk, and all running processes have stopped.
            가장 시스템을 안전하게 끄는 방법입니다. 모든 파일버퍼는 지워지고, 모든 구동 중인 프로세스는 정지합니다.
            Windows NT: The calling process must have the SE_SHUTDOWN_NAME privilege. For more information, see the following Remarks section.
            Windows 95: Security privileges are not supported or required.
        


            
 
1. 2. dwReserved
 
1. 2. Reserved; this parameter is ignored.
1. 2. 예비; 이 매개변수는 무시된다.
 
 
 
2. 반환 값
 
2. If the function succeeds, the return value is nonzero.
2. 만일 함수가 성공하면, 반환 값은 0이 아니다. ('참')
2. If the function fails, the return value is zero. To get extended error information, call GetLastError.
2. 만일 함수가 실패하면, 반환 값은  0이다. ('거짓') 추가 에러정보를 보려면 GetLastError 함수 참조
 
3. 참조 (이하 번역 불능)
 
3. The ExitWindowsEx function returns as soon as it has initiated the shutdown. The shutdown or logoff then proceeds asynchronously.
3. During a shutdown or log-off operation, applications that are shut down are allowed a specific amount of time to respond to the shutdown request. If the time expires, Windows displays a dialog box that allows the user to forcibly shut down the application, to retry the shutdown, or to cancel the shutdown request. If the EWX_FORCE value is specified, Windows always forces applications to close and does not display the dialog box.
 
3. The ExitWindowsEx function sends a separate notification message, CTRL_SHUTDOWN_EVENT or CTRL_LOGOFF_EVENT as the situation warrants, to console processes. A console process routes these messages to its HandlerRoutine functions, which are added and removed by calls to the SetConsoleCtrlHandler function. ExitWindowsEx sends these notification messages asynchronously; thus, an application cannot assume that the console notification messages have been handled when a call to ExitWindowsEx returns.
 
3. Windows NT: To shut down or restart the system, the calling process must use the AdjustTokenPrivileges function to enable the SE_SHUTDOWN_NAME privilege. For more information about security privileges, see Privileges.
3. Windows 95: Security privileges are not supported or required.

이경근   2004-04-30 PM 6:23:05  
감사합니다^^
LIST ALL               GO TO THE TOP


N
Category
   Subject
Posted by
Date
H
notice 창조   반드시 검색 후 질문을 올려주세요.<... 박종훈 2007/09/24  6107
notice 창조   단순 소스제작 부탁은 예고없이 삭제합니... [2] 손상진 2007/04/11  5937
notice 창조   답변소스 등록 관련 안내입니다. [7] 변혁수 2006/01/11  7800
2154 창조
   메모장 자동 폭 가능할까요?
날아라KTX 2024/04/29  20
2153 창조
   풍선말 글꼴, 크기
날아라KTX 2024/03/26  63
2152 창조
   네이버 증권페이지 가격 [2]
날아라KTX 2024/02/22  92
2151 창조
   문자창, 대화창 프로그램 가운데 출력하기
날아라KTX 2023/02/27  315
2150 창조
   리스트박스 질문드려요.
날아라KTX 2022/10/25  373
2149 창조
   메모내용 코마를 구분으로 리스트박스에 정렬... [3]
날아라KTX 2022/10/02  391
2148 창조
   문자표 글꼴 색상 질문드려요
날아라KTX 2022/09/24  430
2147 창조
   멀티버튼이 마우스 따라다니기 [1]
날아라KTX 2022/09/17  417
2146 창조
   카카오톡 다중 접속기도 만들 수 있을까요?
김지훈 2022/04/19  615
2145 창조
   레지스트리...문제점이 뭘까요???? [3]
날아라KTX 2022/04/14  525
2144 창조
   자판을 뗄때 사건에서 띵띵소리 [1]
날아라KTX 2022/04/09  555
2143 창조
   메모 상단줄 질문드려요.
날아라KTX 2022/04/05  520
2142 창조
   폴더명추출 [1]
날아라KTX 2022/01/24  607
2141 창조
   문자표 질문드려요. [1]
날아라KTX 2021/10/19  591
2140 창조
   성인e님께서 도움주셨던 글자 찾아 색상바꾸... [5]
날아라KTX 2021/10/01  670
2139 창조
   리스트박스에 파일명+파일내용 추가하기 [3]
날아라KTX 2020/07/26  1310
2138 창조
   리스트박스 줄위치에 해당하는 버튼 클릭하기 [2]
날아라KTX 2020/03/11  1503
2137 창조
   에디트0 영역에 문자추가 삭제하기 [2]
날아라KTX 2019/10/15  1606
2136 창조
   이진읽어를 10진으로 바꾼다음에 1과 0만으로... [1]
박재성 2019/06/12  1797
2135 창조
   알파벳순서대로 정렬도 창조로 가능할까요?
날아라KTX 2019/05/12  1587
2134 창조
     [re] 알파벳순서대로 정렬도 창조로 가능할까요? [2]
성인e 2019/05/12  1876
2133  
   리스트박스1 * 문자가 있는 이름을 리스트박... [3]
날아라KTX 2019/04/17  1806
LIST ALL   1 [2][3][4][5][6][7][8][9][10]..[87] Next
Copyright 1999-2024 Zeroboard / skin by reedyfox in miniwini style
로그인
지우개 Expert 3.0
제작자 : 천호성 님 [LINK]
로그인
대박로또2005
제작자 : 최재일 님 [LINK]
로그인
1박종훈15292 점
2지상현8809 점
3손상진7388 점
4권선중6060 점
5이진백5174 점
로그인
가입일닉네임
05/31김동률
03/31홍형기
09/01o00pp99oo
12/27이재민
11/20이희철
로그인