IPersistQuery::ReadStruct method (cmnquery.h)
The IPersistQuery::ReadStruct method reads a structure from the query store.
Syntax
HRESULT ReadStruct(
[in] LPCWSTR pSection,
[in] LPCWSTR pValueName,
[out] LPVOID pStruct,
[in] DWORD cbStruct
);
Parameters
[in] pSection
Pointer to a null-terminated Unicode string that represents the section name that the structure should be read from.
[in] pValueName
Pointer to a null-terminated Unicode string that represents the name of the structure value to be read.
[out] pStruct
Pointer to a buffer that will receive the structure. The cbStruct parameter specifies the size of this buffer, in bytes.
[in] cbStruct
Specifies the size, in bytes, of the buffer represented by the pStruct parameter.
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 |