IWABObject::VCardCreate method (wabapi.h)

Translates the properties of a given MailUser object into a vCard file.

Syntax

HRESULT VCardCreate(
  LPADRBOOK  lpIAB,
  ULONG      ulFlags,
  LPSTR      lpszVCard,
  LPMAILUSER lpMailUser
);

Parameters

lpIAB

Type: IAddrBook*

Pointer to an IAddrBook interface that specifies the address book.

ulFlags

Type: ULONG

No flags.

lpszVCard

Type: LPSTR

Value of type LPSTR that specifies the string containing the complete path name of the file to create.

lpMailUser

Type: IMailUser*

Pointer to an IMailUser interface that specifies the object whose properties are to be written into the file.

Return value

Type: HRESULT

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

Remarks

The complete file name must be specified. If the file already exists, it will be overwritten. Vcard creation is extensible: if your client application is using named properties to store client-specific data in the Windows Address Book (WAB), it may be possible to include this data in the newly created vCard.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header wabapi.h
DLL Wab32.dll

See also

IWABObject

Importing and Exporting Named Properties Through vCards