SetProcessShutdownParameters Function

2371 단어
SetProcessShutdownParameters Function
Sets shutdown parameters for the currently calling process. This function sets a shutdown order for a process relative to the other processes in the system.현재 호출 중인 프로세스의 종료 파라미터를 설정합니다.이 함수는 한 프로세스에서 다른 프로세스로 닫는 순서를 설정합니다

Syntax


C++

												BOOL WINAPI SetProcessShutdownParameters(
  __in  DWORD dwLevel,
  __in  DWORD dwFlags
);
										

Parameters


dwLevel [in]
The shutdown priority for a process relative to other processes in the system. The system shuts down processes from high dwLevel values to low. The highest and lowest shutdown priorities are reserved for system components. This parameter must be in the following range of values. 한 프로세스에서 다른 프로세스로의 닫기 우선 순위입니다.시스템은 높은 dwLevel 값에서 낮은 순서로 프로세스를 닫습니다.최고와 최저는 시스템 구성 요소를 위해 보존된 것이다.이 매개 변수는 아래의 범위일 뿐이다.
Value
Meaning
000-0FF
System reserved last shutdown range.
100-1FF
Application reserved last shutdown range.
200-2FF
Application reserved "in between"shutdown range.
300-3FF
Application reserved first shutdown range.
400-4FF
System reserved first shutdown range.
All processes start at shutdown level 0x280.모든 프로세스가 0x280에서 시작됨
dwFlags [in]
This parameter can be the following value.
Value
Meaning
SHUTDOWN_NORETRY
0x00000001
The system terminates the process without displaying a retry dialog box for the user.
시스템이 프로세스를 중단할 때 사용자에게 재시도 대화 상자를 표시하지 않습니다

Return Value


If the function is succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.

Remarks


Applications running in the system security context do not get shut down by the operating system. They get notified of shutdown or logoff through the callback function installable via SetConsoleCtrlHandler. They also get notified in the order specified by the dwLevel parameter.

 


Requirements


Minimum supported client
Windows 2000 Professional
Minimum supported server
Windows 2000 Server
Header
Winbase.h (include Windows.h)
Library
Kernel32.lib
DLL
Kernel32.dll

좋은 웹페이지 즐겨찾기