WerReportSetParameter function
Sets the parameters that uniquely identify an event for the specified report.
Syntax
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 parameter. 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 code | Description |
|---|---|
|
The specified handle is not valid. |
|
The 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 client | Windows Vista [desktop apps only] |
|---|---|
|
Minimum supported server | Windows Server 2008 [desktop apps only] |
|
Header |
|
|
Library |
|
|
DLL |
|
See also
Send comments about this topic to Microsoft
Build date: 10/26/2012