IContactManager::Initialize method

Initializes the contact manager with the unique application name and application version being used to manipulate contacts.

Syntax

HRESULT Initialize(
  LPCWSTR pszAppName,
  LPCWSTR pszAppVersion
);

Parameters

pszAppName

Type: LPWSTR

Specifies the application name.

pszAppVersion

Type: LPCWSTR

Specifies the application version.

Return Value

Type: HRESULT

Returns one of the following values:

Return code Description
S_OK

IContactManager is initialized.

Remarks

Note  This method MUST be called before other IContactManager methods.
 

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)