网站首页  词典首页

请输入您要查询的函数:

 

术语 werreportsetparameter
释义 WerReportSetParameter
语法:
C++
HRESULT WINAPI WerReportSetParameter(
__in HREPORT hReportHandle,
__in DWORD dwparamID,
__in_opt PCWSTR pwzName,
__in PCWSTR pwzValue
);
WerReportSetParameter功能
设置参数唯一地标识指定报告的事件。
参数
hReportHandle [in]
句柄报告。这种处理是由WerReportCreate函数返回。
dwparamID [in]
参数的设置标识符。此参数可以是下列值之一。
WER_P0
WER_P1
WER_P2
WER_P3
WER_P4
WER_P5
WER_P6
WER_P7
WER_P8
WER_P9
pwzName [中,可选]
一个Unicode字符串,其中包含事件名称的指针。如果该参数为NULL,则默认名称为酶,其中x匹配的dwparamID指定值的整数部分。
pwzValue [in]
参数值。
返回值
这个函数返回S_OK的成功或失败的错误代码,其中包括以下错误代码。
返回codeDescription
E_HANDLEThe指定的句柄无效。
WER_E_LENGTH_EXCEEDEDThe一个或多个字符串参数的长度超过了其极限。
备注
每份报告支持通过第P9参数的P0。该函数设置一次一个参数。如果参数酶被设置,那么所有从P参数和酶必须设置。
要求:
client最低支持Vista
server最低支持 Windows Server 2008
HeaderWerapi.h
LibraryWer.lib
DLLWer.dll
参见
WER Functions
WerReportCreate
Windows错误报告
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月30日
==英文原文==WerReportSetParameter Function
Sets the parameters that uniquely identify an event for the specified report.
Syntax
C++
HRESULT WINAPI WerReportSetParameter(
__in HREPORT hReportHandle,
__in DWORD dwparamID,
__in_opt PCWSTR pwzName,
__in PCWSTR pwzValue
);
Parameters
hReportHandle [in]
A handle to the report. This handle is returned by the WerReportCreate function.
dwparamID [in]
The identifier of the parameter to be set. This parameter can be one of the following values.
WER_P0
WER_P1
WER_P2
WER_P3
WER_P4
WER_P5
WER_P6
WER_P7
WER_P8
WER_P9
pwzName [in, optional]
A pointer to a Unicode string that contains the name of the event. If this parameter is NULL, the default name is Px, where x matches the integer portion of the value specified in dwparamID.
pwzValue [in]
The parameter value.
Return Value
This function returns S_OK on success or an error code on failure, including the following error code.
Return codeDescription
E_HANDLEThe specified handle is not valid.
WER_E_LENGTH_EXCEEDEDThe length of one or more string arguments has exceeded its limit.

Remarks
Each report supports parameters P0 through P9. This function sets one parameter at a time. If parameter Px is set, then all parameters from P0 and Px must be set.
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/bb513626(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:29:05