|
|
|
IAddrBook Interface |
|
IID_IAddrBook |
{00020309-0000-0000-C000-000000000046} |
|
This interface supports access to the Microsoft Windows Address Book (WAB) and includes operations such as displaying common dialog boxes, opening containers, messaging users (contacts) and distribution lists (groups) in the address book, and performing name resolution.
Note The implementation of IMAPIProp::GetLastError for IAddrBook supports Unicode on Windows NT platforms only. The implementations of GetLastError for Windows 95 platforms and 16-bit platforms do not support Unicode.
The IAddrBook interface Inherits from IMAPIProp.
|
|
Methods in VTable order |
|
|
IUnknown Methods |
Description |
|
QueryInterface |
Returns pointers to supported interfaces. |
|
AddRef |
Increments reference count. |
|
Release |
Decrements reference count. |
|
IMAPIProp Methods |
Description |
|
GetLastError |
Not currently implemented. |
|
SaveChanges |
Not currently implemented. |
|
GetProps |
Not currently implemented. |
|
GetPropList |
Not currently implemented. |
|
OpenProperty |
Not currently implemented. |
|
SetProps |
Not currently implemented. |
|
DeleteProps |
Not currently implemented. |
|
CopyTo |
Not currently implemented. |
|
CopyProps |
Not currently implemented. |
|
GetNamesFromIDs |
Not currently implemented. |
|
GetIDsFromNames |
Not currently implemented. |
|
IAddrBook Methods |
Description |
|
OpenEntry |
Opens a container or mail user object and returns a pointer to the object. |
|
CompareEntryIDs |
Compares two entry identifiers. |
|
Advise |
Registers the caller with the WAB to receive notifications. |
|
Unadvise |
Unregisters the caller from the WAB for notifications. |
|
CreateOneOff |
Creates an entry identifier for a one-off address. |
|
NewEntry |
Displays a blank dialog box that enables the user to create a new entry. |
|
ResolveName |
Resolves a partial recipient list to full addresses. |
|
Address |
Displays the common address book dialog box. |
|
Details |
Displays a dialog box that shows details, and allows editing, of a particular entry in the WAB. |
|
RecipOptions |
Not currently implemented. |
|
QueryDefaultRecipOpt |
Not currently implemented. |
|
GetPAB |
Returns the entry identifier of the default WAB container. |
|
SetPAB |
Not currently implemented. |
|
GetDefaultDir |
Not currently implemented. |
|
SetDefaultDir |
Not currently implemented. |
|
GetSearchPath |
Returns an ordered list of the entry identifiers of containers to be included in the name resolution process initiated by the IAddrBook::ResolveName method. |
|
SetSearchPath |
Not currently implemented. |
|
PrepareRecips |
Prepares a recipient list for later use by the messaging system. |
|
OpenEntry |
|
FUNCTION
IAddrBook_OpenEntry (
_
|
|
CompareEntryIDs |
|
FUNCTION
IAddrBook_CompareEntryIDs
( _
|
|
Advise |
|
FUNCTION
IAddrBook_Advise ( _
|
|
Unadvise |
|
FUNCTION
IAddrBook_Unadvise ( _ |
|
CreateOneOff |
|
FUNCTION
IAddrBook_CreateOneOff
( _
|
|
Note: The use of the CreateOneOff method with the PowerBASIC compilers is problematic because it requires the use of an ENTRYID structure that has a variable-length byte array as one of his members, and PowerBASIC doesn't support structures with variable-length arrays. A workaround is not to use this function to make a one-off entry identifier, but to do it manually.
The one-off entry identifier uses a specific format, defined as follows.
$MAPI_ONE_OFF_UID
= GUID$("{812b1fa4-bea3-1019-9d6e-00dd010f5402}")
LOCAL strDisplayName AS
STRING
LOCAL strAdrType AS
STRING
LOCAL strEmailAddress AS
STRING
LOCAL strNul AS
STRING
strDisplayName = "José Roca" IF %fMapiUnicode THEN strDisplayName = UCODE$(strDisplayName) strAdrType = "SMTP" IF %fMapiUnicode THEN strAdrType = UCODE$(strAdrType) strEmailAddress = "JRoca@com.it-berater.org" IF %fMapiUnicode THEN strEmailAddress = UCODE$(strEmailAddress)
strNul = $NUL
Please note that although the version and flag fields are defined as 16-bit words in Intel byte order, we have to convert them to DWORDs when used in 32-bit OSes. The display name, address type and email address are null terminated strings (ASCIIZ), but we have to use dynamic strings (with a nul character added at the end) if we want to use Unicode.
|
|
NewEntry |
|
FUNCTION
IAddrBook_NewEntry ( _
|
|
ResolveName |
|
FUNCTION
IAddrBook_ResolveName
( _
|
|
Address |
|
FUNCTION
IAddrBook_Address ( _
|
|
Details |
|
FUNCTION
IAddrBook_Details ( _
|
|
RecipOptions |
|
FUNCTION
IAddrBook_RecipOptions
( _
|
|
QueryDefaultRecipOpt |
|
FUNCTION
IAddrBook_QueryDefaultRecipOpt
( _
|
|
GetPAB |
|
FUNCTION
IAddrBook_GetPAB ( _
|
|
SetPAB |
|
FUNCTION
IAddrBook_SetPAB ( _
|
|
GetDefaultDir |
|
FUNCTION
IAddrBook_GetDefaultDir
( _
|
|
GetSearchPath |
|
FUNCTION
IAddrBook_GetSearchPath
( _
|
|
SetSearchPath |
|
FUNCTION
IAddrBook_SetSearchPath
( _
|
|
PrepareRecips |
|
FUNCTION
IAddrBook_PrepareRecips
( _
|
Page last updated on Monday, 03 April 2006 20:13:16 +0200