The WHEAErrorSourceMethods::EnableErrorSourceRtn WMI provider method enables an error source.
- Status [out, retval]
The result of the call to the WHEAErrorSourceMethods::EnableErrorSourceRtn method. The value that is returned is an NTSTATUS code.
- ErrorSourceId [in]
The identifier of the error source that is being enabled.
A user-mode WHEA management application calls the WHEAErrorSourceMethods::EnableErrorSourceRtn method to enable an error source. To disable an error source, the application calls the WHEAErrorSourceMethods::DisableErrorSourceRtn method.
The identifier for an error source is contained in the ErrorSourceId member of the WHEA_ERROR_SOURCE_DESCRIPTOR structure that describes the error source. A user-mode WHEA management application can retrieve a list of WHEA_ERROR_SOURCE_DESCRIPTOR structures that describe all of the error sources that are supported by the hardware platform by calling the WHEAErrorSourceMethods::GetAllErrorSourcesRtn method.
A user-mode WHEA management application does not call the WHEAErrorSourceMethods::EnableErrorSourceRtn method directly. It must call it indirectly by calling the IWbemServices::ExecMethod method. For more information about how to call methods in WMI provider classes, see the Calling a Provider Method topic in the Microsoft Windows SDK documentation.
|Supported in Windows Server 2008, Windows Vista SP1, and later versions of Windows.|