IWABObject::Import method (wabapi.h)

Imports a .wab file into the user's Address Book.

Syntax

HRESULT Import(
  LPSTR lpWIP
);

Parameters

lpWIP

Type: LPSTR

Pointer to a WABIMPORTPARAM structure.

Return value

Type: HRESULT

Returns S_OK if successful, or an error value otherwise.

Remarks

When calling this method, pass a pointer to a WABIMPORTPARAM structure. If the caller specifies MAPI_DIALOG in the ulFlags member of the structure, the Windows Address Book (WAB) shows a dialog box with a progress bar indicating the progress of the import process. The caller can specify a file name to import. If the caller specifies a NULL file name, the WAB opens a GetOpenFileName dialog box to prompt the user to select a .wab file for importing.

For compatibility with previously released versions of the WAB that expose this method, the pointer to the WABIMPORTPARAM structure needs to be cast to an LPSTR prior to passing it into this method.

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