网站首页  词典首页

请输入您要查询的函数:

 

术语 notifybootconfigstatus
释义 NotifyBootConfigStatus
语法:
C++
BOOL WINAPI NotifyBootConfigStatus(
__in BOOL BootAcceptable
);
NotifyBootConfigStatus功能
报告的引导地位,服务控制管理器。它是使用启动核查程序。这个功能可以调用只有通过在LocalSystem或管理员帐户运行的进程。
参数
BootAcceptable [in]
如果该值为TRUE,系统保存的最后一次正确的配置配置。如果该值为FALSE,系统会立即重新启动,使用以前保存的最后一次正确的配置。
返回值
如果BootAcceptable参数为FALSE,函数不返回。
如果最后的正确配置已成功保存,则返回值为非零。
如果发生错误,返回值是零。为了获得更多错误信息,调用GetLastError。
下面的错误代码可能被设置由服务控制管理器。其他的错误代码可能被设置的注册表由服务控制管理要求来设置参数的功能配置注册表。
返回codeDescription
ERROR_ACCESS_DENIEDThe用户没有权限执行此操作。只有制度和管理员组的成员可以这样做。
备注
保存一个具有这种功能正在运行的系统配置是一个拯救最后的正确配置可以接受的方法。如果启动配置是不能接受的,使用此功能重新启动系统利用现有的最后一次正确的配置。
此函数调用需要SC_MANAGER_MODIFY_BOOT_CONFIG访问的权利。有关更多信息,请参阅服务安全和访问权限。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinsvc.h(头文件:winuser.h)
LibraryAdvapi32.lib
DLLAdvapi32.dll
参见
自动启动服务
服务函数
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==NotifyBootConfigStatus Function
Reports the boot status to the service control manager. It is used by boot verification programs. This function can be called only by a process running in the LocalSystem or Administrator's account.
Syntax
C++
BOOL WINAPI NotifyBootConfigStatus(
__in BOOL BootAcceptable
);
Parameters
BootAcceptable [in]
If the value is TRUE, the system saves the configuration as the last-known good configuration. If the value is FALSE, the system immediately reboots, using the previously saved last-known good configuration.
Return Value
If the BootAcceptable parameter is FALSE, the function does not return.
If the last-known good configuration was successfully saved, the return value is nonzero.
If an error occurs, the return value is zero. To get extended error information, call GetLastError .
The following error codes may be set by the service control manager. Other error codes may be set by the registry functions that are called by the service control manager to set parameters in the configuration registry.
Return codeDescription
ERROR_ACCESS_DENIEDThe user does not have permission to perform this operation. Only the system and members of the Administrator's group can do so.

Remarks
Saving the configuration of a running system with this function is an acceptable method for saving the last-known good configuration. If the boot configuration is unacceptable, use this function to reboot the system using the existing last-known good configuration.
This function call requires the SC_MANAGER_MODIFY_BOOT_CONFIG access right. For more information, see Service Security and Access Rights .
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinsvc.h (include Windows.h)
LibraryAdvapi32.lib
DLLAdvapi32.dll
See Also
Automatically Starting Services
Service Functions
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms684274(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 11:26:12