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::ReadInt method reads an integer value from the query store.
Syntax
HRESULT ReadInt(
  [in]  LPCWSTR pSection,
  [in]  LPCWSTR pValueName,
  [out] LPINT   pValue
);
Parameters
[in] pSection
A pointer to a null-terminated Unicode string that represents the section name that the integer should be read from.
[in] pValueName
A pointer to a null-terminated Unicode string that represents the name of the integer value to be read.
[out] pValue
Pointer to an integer variable that receives the integer value.
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 |