网站首页  词典首页

请输入您要查询的函数:

 

术语 weraddexcludedapplication
释义 WerAddExcludedApplication
语法:
C++
HRESULT WINAPI WerAddExcludedApplication(
__in PCWSTR pwzExeName,
__in BOOL bAllUsers
);
WerAddExcludedApplication功能
将指定的应用程序的应用程序的列表被排除在错误报告。
参数
pwzExeName [in]
一个Unicode字符串,指定应用程序的可执行文件名,包括文件扩展名的指针。这条道路的最大长度为MAX_PATH字符。
bAllUsers [in]
如果此参数为TRUE,则应用程序的名称被添加到所有用户的应用程序列表中排除。否则,它只是添加到当前用户排除应用程序的列表。
返回值
这个函数返回S_OK的成功或失败的错误代码,其中包括以下错误代码。
返回codeDescription
E_ACCESSDENIEDThe进程没有权限更新注册表中的名单。请参阅更多信息备注部分。
备注
如果bAllUsers为TRUE,排除应用程序列表是存储在HKEY_LOCAL_MACHINE注册表配置单元。调用进程必须具有的权限写入到HKLM注册表配置单元。如果bAllUsers是FALSE,则排除应用程序列表存储在HKEY_CURRENT_USER注册表配置单元。
若要从排除列表中的应用程序,调用WerRemoveExcludedApplication功能。
要求:
client最低支持Vista
server最低支持 Windows Server 2008
HeaderWerapi.h
LibraryWer.lib
DLLWer.dll
参见
WER Functions
WerRemoveExcludedApplication
Windows错误报告
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月30日
==英文原文==WerAddExcludedApplication Function
Adds the specified application to the list of applications that are to be excluded from error reporting.
Syntax
C++
HRESULT WINAPI WerAddExcludedApplication(
__in PCWSTR pwzExeName,
__in BOOL bAllUsers
);
Parameters
pwzExeName [in]
A pointer to a Unicode string that specifies the name of the executable file for the application, including the file name extension. The maximum length of this path is MAX_PATH characters.
bAllUsers [in]
If this parameter is TRUE, the application name is added to the list of excluded applications for all users. Otherwise, it is only added to the list of excluded applications for the current user.
Return Value
This function returns S_OK on success or an error code on failure, including the following error code.
Return codeDescription
E_ACCESSDENIEDThe process does not have permissions to update the list in the registry. See the Remarks section for additional information.

Remarks
If bAllUsers is TRUE, the list of excluded applications is stored under the HKEY_LOCAL_MACHINE registry hive. The calling process must have permissions to write to the HKLM registry hive. If bAllUsers is FALSE, the list of excluded applications is stored under the HKEY_CURRENT_USER registry hive.
To remove the application from the list of excluded applications, call the WerRemoveExcludedApplication function.
Requirements
Minimum supported clientWindows Vista
Minimum supported serverWindows Server 2008
HeaderWerapi.h
LibraryWer.lib
DLLWer.dll
See Also
WER Functions
WerRemoveExcludedApplication
Windows Error Reporting
Send comments about this topic to Microsoft
Build date: 7/30/2009
==原始网址==http://msdn.microsoft.com/en-us/library/bb513617(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:31:23