Platform SDK: Active Directory, ADSI, and Directory Services

IPersistQuery::WriteStruct

The IPersistQuery::WriteStruct method writes a structure to the directory store.

HRESULT WriteStruct(
  LPCWSTR pSection,
  LPCWSTR pValueName,
  LPVOID pStruct,
  DWORD  cbStruct
);

Parameters

pSection
[in] Section
pValueName
[in] Value name.
pStruct
[in] Structure to be persisted.
cbStruct
[in] Size of the structure.

Return Values

This method returns an HRESULT value.

Requirements

  Windows NT/2000: Requires Windows 2000.
  Header: Declared in Cmnquery.h.
  Library: Included as a resource in Cmnquery.dll.

See Also

Active Directory Display Interfaces, IPersistQuery