Partager via


GetProviderGuidFromName

Applies To: Windows 8, Windows 8.1

Gets the provider GUID associated with the specified name.

HRESULT GetProviderGuidFromName
  ([out] GUID* ProviderId,
  [in] BSTR bstrProViderName)
;

Parameters

  • GUID* ProviderId
    [out] A GUID that indicates the provider identifier.
  • BSTR bstrProViderName
    [in] A string that indicates the provider name.

Return Value

The following table describes possible return values.

Return Value Description

E_WPRC_FAILED_TO_TRANSLATE_EVENT_PROVIDER_NAME_TO_GUID

WPR was unable to translate the event provider name to a GUID.

S_OK

The function successfully returned the GUID.

See Also

Reference

IControlManager