IContactProperties::SetDate method

Sets the date and time value at a specified property to a given FILETIME. All times are stored and returned as Coordinated Universal Time (UTC).

Syntax

HRESULT SetDate(
  LPCWSTR  pszPropertyName,
  DWORD    dwFlags,
  FILETIME ftDateTime
);

Parameters

pszPropertyName

Type: LPCWSTR

Specifies the property to set.

dwFlags

Type: DWORD

CGD_DEFAULT can be used to create or overwrite value at pszPropertyName.

ftDateTime

Type: FILETIME

FILETIME structure to use for date.

Return Value

Type: HRESULT

Returns one of the following values:

Return code Description
S_OK
Value is set at this property.
ERROR_PATH_NOT_FOUND
Property name invalid for set.
ERROR_INVALID_DATATYPE
Unable to set the value for this property due to schema.

Requirements

   
Windows version Windows Vista [desktop apps only] Windows Server 2003 [desktop apps only]
Target Platform Windows
Header icontact.h (include Contact.h)
DLL Wab32.dll (Version 6.0 or later)