IPersistQuery::WriteString method (cmnquery.h)

The IPersistQuery::WriteString method writes a string to the query store.

Syntax

HRESULT WriteString(
  [in] LPCWSTR pSection,
  [in] LPCWSTR pValueName,
  [in] LPCWSTR pValue
);

Parameters

[in] pSection

Pointer to a null-terminated Unicode string that represents the section name that the string should be written to.

[in] pValueName

Pointer to a null-terminated Unicode string that represents the name of the string value.

[in] pValue

Pointer to a null-terminated Unicode string that contains the string to be written.

Return value

Returns S_OK if successful or a standard HRESULT value otherwise. Possible error codes include the following.

Requirements

Requirement Value
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header cmnquery.h
Library Uuid.lib
DLL Dsquery.dll

See also

Display Interfaces in Active Directory Domain Services

IPersistQuery