ISearchQueryHelper::WriteProperties method

Not implemented.

Syntax

HRESULT WriteProperties(
  ITEMID                   itemID,
  DWORD                    dwNumberOfColumns,
  PROPERTYKEY              *pColumns,
  SEARCH_COLUMN_PROPERTIES *pValues,
  FILETIME                 *pftGatherModifiedTime
);

Parameters

itemID

Type: int

The ItemID that is to be affected. The ItemID is used to store the items unique identifier, such as a DocID.

dwNumberOfColumns

Type: DWORD

The number of properties being written.

pColumns

Type: PROPERTYKEY*

            Pointer to an array of <a href="https://docs.microsoft.com/windows/desktop/api/wtypes/ns-wtypes-propertykey">PROPERTYKEY</a> structures that represent the properties.

pValues

Type: SEARCH_COLUMN_PROPERTIES*

Pointer to an array of SEARCH_COLUMN_PROPERTIES structures that hold the property values.

pftGatherModifiedTime

Type: FILETIME*

A pointer to the last modified time for the item being written. This time stamp is used later to see if an item has been changed and requires updating.

Return Value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

   
Minimum supported client Windows XP with SP2, Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 with SP1 [desktop apps only]
Target Platform Windows
Header searchapi.h (include Searchapi.h)

See Also

ISearchQueryHelper

ISearchQueryHelper::put_QueryContentProperties

Querying the Index Programmatically

Querying the Index with Windows Search SQL Syntax

System Properties