网站首页  词典首页

请输入您要查询的函数:

 

术语 werreportaddfile
释义 WerReportAddFile
语法:
C++
HRESULT WINAPI WerReportAddFile(
__in HREPORT hReportHandle,
__in PCWSTR pwzPath,
__in WER_FILE_TYPE repFileType,
__in DWORD dwFileFlags
);
WerReportAddFile功能
添加一个文件到指定的报告。
参数
hReportHandle [in]
句柄报告。这种处理是由WerReportCreate函数返回。
pwzPath [in]
一个Unicode字符串,其中包含的完整路径文件指针要添加。此路径可以使用环境变量。这条道路的最大长度为MAX_PATH字符。
repFileType [in]
该类型的文件。此参数可从WER_FILE_TYPE枚举类型为下列值之一。
ValueMeaning
WerFileTypeHeapdumpAn扩展转储,它包含诸如进程的内存更多的数据。
WerFileTypeMicrodumpA有限转储只包含一个堆栈跟踪。
WerFileTypeMinidumpA小型转储文件。
WerFileTypeOtherAny其他类型的文件。此文件将总是加入到出租车(但仅在该服务器要求)的出租车。
WerFileTypeUserDocumentThe文件,使用由在该事件发生时的应用。该文件说:只有当服务器是这个类型的文件要求。
dwFileFlags [in]
此参数可以是一个或多个下列值。
ValueMeaning
WER_FILE_ANONYMOUS_DATAThe文件不包含个人信息,可以用来识别或联系用户。
WER_FILE_DELETE_WHEN_DONEAutomatically删除该文件后,提交报告。
返回值
这个函数返回S_OK的成功或失败的错误代码,其中包括以下错误代码。
返回codeDescription
HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND)指定的文件不存在。
HRESULT_FROM_WIN32(ERROR_NOT_SUPPORTED)指定的文件是一个用户的文件,是在一个加密文件存储系统,这个组合是不支持。
备注
虽然这个功能也可以用来增加内存转储(使用特定的标志)的错误报告,首选的功能供增加内存转储是WerReportAddDump。您应该使用这个函数只有当您想收集转储自己,然后将其添加到报表。
要求:
client最低支持Vista
server最低支持 Windows Server 2008
HeaderWerapi.h
LibraryWer.lib
DLLWer.dll
参见
WER Functions
WerReportCreate
Windows错误报告
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月30日
==英文原文==WerReportAddFile Function
Adds a file to the specified report.
Syntax
C++
HRESULT WINAPI WerReportAddFile(
__in HREPORT hReportHandle,
__in PCWSTR pwzPath,
__in WER_FILE_TYPE repFileType,
__in DWORD dwFileFlags
);
Parameters
hReportHandle [in]
A handle to the report. This handle is returned by the WerReportCreate function.
pwzPath [in]
A pointer to a Unicode string that contains the full path to the file to be added. This path can use environment variables. The maximum length of this path is MAX_PATH characters.
repFileType [in]
The type of file. This parameter can be one of the following values from the WER_FILE_TYPE enumeration type.
ValueMeaning
WerFileTypeHeapdumpAn extended minidump that contains additional data such as the process memory.
WerFileTypeMicrodumpA limited minidump that contains only a stack trace.
WerFileTypeMinidumpA minidump file.
WerFileTypeOtherAny other type of file. This file will always get added to the cab (but only if the server asks for a cab).
WerFileTypeUserDocumentThe document in use by the application at the time of the event. The document is added only if the server is asks for this type of document.

dwFileFlags [in]
This parameter can be one or more of the following values.
ValueMeaning
WER_FILE_ANONYMOUS_DATAThe file does not contain personal information that could be used to identify or contact the user.
WER_FILE_DELETE_WHEN_DONEAutomatically delete the file after the report is submitted.

Return Value
This function returns S_OK on success or an error code on failure, including the following error code.
Return codeDescription
HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND)The specified file does not exist.
HRESULT_FROM_WIN32(ERROR_NOT_SUPPORTED)The specified file is a user-document and is stored on an encrypted file-system; this combination is not supported.

Remarks
Although this function can also be used to add memory dumps (using specific flags) to the error report, the preferred function to use for adding memory dumps is WerReportAddDump . You should use this function only if you want to collect the dump yourself and then add it to the report.
Requirements
Minimum supported clientWindows Vista
Minimum supported serverWindows Server 2008
HeaderWerapi.h
LibraryWer.lib
DLLWer.dll
See Also
WER Functions
WerReportCreate
Windows Error Reporting
Send comments about this topic to Microsoft
Build date: 7/30/2009
==原始网址==http://msdn.microsoft.com/en-us/library/bb513623(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:22:56