Query

Queries the properties of the session and providers in all profiles.

Syntax

HRESULT Query
  ([out] BSTR* pbstrResults,
  [in] VARIANT_BOOL fValidateRuntimeState)
;

Parameters

pbstrResults
[out] A string in XML format that contains session and provider properties of all the profiles started by the WPRC library.

fValidateRuntimeState
[in] A Boolean that indicates whether the library should determine whether the recording is running.

Return Value

The following table describes the possible values.

Return Value Description

S_OK

The function successfully returned the properties.

E_POINTER

The pointer is invalid.

E_WPRC_FAILED_TO_QUERY_PROFILES

The library failed to query the properties of the session and providers in all the profiles. Use IControlErrorInfo to get detailed error information.

E_WPRC_INVALID_PROFILES_RUNTIME_STATE

The list of profiles that are running on the system does not match those used to start the recording. See IControlErrorInfo for detailed error information.

IControlManager