网站首页  词典首页

请输入您要查询的函数:

 

术语 setprocessshutdownparameters
释义 SetProcessShutdownParameters
语法:
C++
BOOL WINAPI SetProcessShutdownParameters(
__in DWORD dwLevel,
__in DWORD dwFlags
);
SetProcessShutdownParameters功能
设置为当前调用进程关闭参数。该函数设置一个过程关机命令相对于系统中的其他进程。
参数
dwLevel [in]
对于一个进程关闭的权利优先于其他进程在系统中。该系统关闭从高dwLevel值低进程。最高和最低的关闭的重点是保留给系统组件。此参数必须在下列范围的值。
ValueMeaning
000 - 0FFSystem上次关机时保留的范围。
100 1FFApplication上次关机时保留的范围。
200 2FFApplication保留“之间的”关闭范围。
300 - 3FFApplication保留第一次停产范围。
400 - 4FFSystem保留第一次停产范围。
所有的进程开始关闭Level0x280。
dwFlags [in]
此参数可以是以下值。
ValueMeaning
SHUTDOWN_NORETRY
0x00000001The系统终止,而不显示重试对话框中为用户的过程。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
应用系统安全上下文中运行没有得到关闭由操作系统。他们通过4,856回调函数安装通过SetConsoleCtrlHandler的关机或注销。 They also get notified in the order specified by the dwLevel parameter.
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinbase.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
参见
GetProcessShutdownParameters
进程和线程函数
过程
SetConsoleCtrlHandler
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==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.
ValueMeaning
000-0FFSystem reserved last shutdown range.
100-1FFApplication reserved last shutdown range.
200-2FFApplication reserved "in between" shutdown range.
300-3FFApplication reserved first shutdown range.
400-4FFSystem reserved first shutdown range.

All processes start at shutdown level 0x280.
dwFlags [in]
This parameter can be the following value.
ValueMeaning
SHUTDOWN_NORETRY
0x00000001The 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 clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinbase.h (include Windows.h)
LibraryKernel32.lib
DLLKernel32.dll
See Also
GetProcessShutdownParameters
Process and Thread Functions
Processes
SetConsoleCtrlHandler
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms686227(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 13:15:58