网站首页  词典首页

请输入您要查询的函数:

 

术语 getprocessshutdownparameters
释义 GetProcessShutdownParameters
语法:
C++
BOOL WINAPI GetProcessShutdownParameters(
__out LPDWORD lpdwLevel,
__out LPDWORD lpdwFlags
);
GetProcessShutdownParameters功能
检索为当前调用进程关闭参数。
参数
lpdwLevel [out]
一个变量,它接收关闭优先级的指针。上级首先关闭。系统级关机命令是留给系统组件。数字越大,首先关闭。以下是公约的Level。
ValueMeaning
000 - 0FFSystem上次关机时保留的范围。
100 1FFApplication上次关机时保留的范围。
200 2FFApplication保留“之间的”关闭范围。
300 - 3FFApplication保留第一次停产范围。
400 - 4FFSystem保留第一次停产范围。
所有的进程开始关闭Level0x280。
lpdwFlags [out]
一个变量,它接收关闭标志指针。此参数可以是以下值。
ValueMeaning
SHUTDOWN_NORETRY
0x00000001If这一过程所需的时间比指定的超时关闭,不重试对话框显示为用户框。相反,正义事业的进程直接退出。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinbase.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
参见
进程和线程函数
过程
SetProcessShutdownParameters
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==GetProcessShutdownParameters Function
Retrieves the shutdown parameters for the currently calling process.
Syntax
C++
BOOL WINAPI GetProcessShutdownParameters(
__out LPDWORD lpdwLevel,
__out LPDWORD lpdwFlags
);
Parameters
lpdwLevel [out]
A pointer to a variable that receives the shutdown priority level. Higher levels shut down first. System level shutdown orders are reserved for system components. Higher numbers shut down first. Following are the level conventions.
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.
lpdwFlags [out]
A pointer to a variable that receives the shutdown flags. This parameter can be the following value.
ValueMeaning
SHUTDOWN_NORETRY
0x00000001If this process takes longer than the specified timeout to shut down, do not display a retry dialog box for the user. Instead, just cause the process to directly exit.

Return Value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError .
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinbase.h (include Windows.h)
LibraryKernel32.lib
DLLKernel32.dll
See Also
Process and Thread Functions
Processes
SetProcessShutdownParameters
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms683221(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:20:17