IWABObject::Import Method
Imports a .wab file into the user's Address Book.
Syntax
HRESULT Import(
LPSTR lpImportParam
);
Parameters
- lpImportParam
- LPSTR
-
Pointer to a WABIMPORTPARAM structure.
Return Value
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
Minimum supported client | Windows 2000 Professional |
|---|---|
Minimum supported server | Windows 2000 Server |
Product | Internet Explorer 4.0 |
Header | Wabapi.h |
DLL | Wab32.dll |
See Also
Send comments about this topic to Microsoft
Build date: 6/30/2010