Using Win32 functions in Visual FoxPro Image Gallery
Simple MAPI
..msdn
MAPIAddress
MAPIFindNext
MAPIFreeBuffer
MAPILogoff
MAPILogon
MAPIReadMail
MAPIResolveName
MAPISendDocuments
MAPISendMail
Code examples:
Simple MAPI: how to pick an email recipient from Outlook Express address book
MAPIAddress
..msdn    Add comment     W32 Constants      Translate this page
The MAPIAddress function creates or modifies a set of address list entries.
Code examples:
Simple MAPI: how to pick an email recipient from Outlook Express address book
Declaration:
ULONG FAR PASCAL MAPIAddress(
  LHANDLE lhSession,
  ULONG ulUIParam,
  LPTSTR lpszCaption,
  ULONG nEditFields,
  LPTSTR lpszLabels,
  ULONG nRecips,
  lpMapiRecipDesc lpRecips,
  FLAGS flFlags,
  ULONG ulReserved,
  LPULONG lpnNewRecips,
  lpMapiRecipDesc FAR * lppNewRecips  
)

FoxPro declaration:
DECLARE INTEGER MAPIAddress IN mapi32;
    INTEGER   lhSession,;
    INTEGER   ulUIParam,;
    STRING    lpszCaption,;
    INTEGER   nEditFields,;
    STRING    lpszLabels,;
    INTEGER   nRecips,;
    STRING  @ lpRecips,;
    INTEGER   flFlags,;
    INTEGER   ulReserved,;
    INTEGER @ lpnNewRecips,;
    INTEGER @ lppNewRecips

Parameters:
lhSession
[in] Session handle that represents a Simple MAPI session or zero.

ulUIParam
[in] Parent window handle or zero, indicating that if a dialog box is displayed, it is application modal.

lpszCaption
[in] Pointer to the caption for the address list dialog box, NULL, or an empty string.

nEditFields
[in] The number of edit controls that should be present in the address list. The values 0 through 4 are valid.

lpszLabels
[in] Pointer to a string to be used as an edit control label in the address-list dialog box.

nRecips
[in] The number of entries in the array indicated by the lpRecips parameter.

lpRecips
[in] Pointer to an array of MapiRecipDesc structures defining the initial recipient entries to be used to populate the address-list dialog box.

flFlags
[in] Bitmask of option flags.

ulReserved
Reserved; must be zero.

lpnNewRecips
[out] Pointer to the number of entries in the lppNewRecips recipient output array.

lppNewRecips
[out] Pointer to an array of MapiRecipDesc structures containing the final list of recipients.
Return value:
SUCCESS_SUCCESS if the call succeeded and a list of recipient entries was returned. Otherwise it is a MAPI Error code.
My comment:
Client applications must call the MAPIFreeBuffer function to free this memory after MAPIAddress returns. If any error occurs, no memory was allocated and clients do not need to call MAPIFreeBuffer.
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2003-05-26 18:03:36
Modified: 2003-05-26 18:10:24
Visited in last 7 days: 22
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.163.61.66)
18 sec.Function: 'HttpSendRequest'
37 sec.Function: 'mixerGetLineControls'
57 sec.Function: 'SetThreadExecutionState'
1.25 min.Function: 'SetLastError'
1.62 min.Function: 'IcmpCreateFile'
1.98 min.Function: 'CryptGetHashParam'
2.33 min.Function: 'ZeroMemory'
2.65 min.Function: 'IsWindowVisible'
3.02 min.
Function group: 'Shell Lightweight Utility APIs -- misc. functions'
3.33 min.Function: 'SCardStatus'
Google
Advertise here!