IPersistQuery::WriteString メソッドは、クエリ ストアに文字列を書き込みます。
構文
HRESULT WriteString(
[in] LPCWSTR pSection,
[in] LPCWSTR pValueName,
[in] LPCWSTR pValue
);
パラメーター
[in] pSection
文字列を書き込むセクション名を表す null で終わる Unicode 文字列へのポインター。
[in] pValueName
文字列値の名前を表す null で終わる Unicode 文字列へのポインター。
[in] pValue
書き込まれる文字列を含む null で終わる Unicode 文字列へのポインター。
戻り値
成功した場合 はS_OK を返し、それ以外の場合は標準 の HRESULT 値を 返します。 考えられるエラー コードは次のとおりです。
要件
| 要件 | 値 |
|---|---|
| サポートされている最小のクライアント | Windows Vista |
| サポートされている最小のサーバー | Windows Server 2008 |
| 対象プラットフォーム | Windows |
| ヘッダー | cmnquery.h |
| Library | Uuid.lib |
| [DLL] | Dsquery.dll |