Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The IPersistQuery::WriteInt method writes an integer value to the query store.
Syntax
HRESULT WriteInt(
  [in] LPCWSTR pSection,
  [in] LPCWSTR pValueName,
  [in] INT     value
);
Parameters
[in] pSection
Pointer to a null-terminated Unicode string that represents the section name that the integer should be written to.
[in] pValueName
Pointer to a null-terminated Unicode string that represents the name of the integer value.
[in] value
Contains the integer value to be written to the query store.
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 |