Using Win32 functions in Visual FoxPro Image Gallery
Simple MAPI
..msdn
MAPIAddress
MAPIFindNext
MAPIFreeBuffer
MAPILogoff
MAPILogon
MAPIReadMail
MAPIResolveName
MAPISendDocuments
MAPISendMail
Code examples:
How to read email messages using Simple MAPI
MAPIFindNext
..msdn    Add comment     W32 Constants      Translate this page
The MAPIFindNext function retrieves the next (or first) message identifier of a specified type of incoming message.
Code examples:
How to read email messages using Simple MAPI
Declaration:
ULONG FAR PASCAL MAPIFindNext(
  LHANDLE lhSession,
  ULONG ulUIParam,
  LPTSTR lpszMessageType,
  LPTSTR lpszSeedMessageID,
  FLAGS flFlags,
  ULONG ulReserved,
  LPTSTR lpszMessageID
)
FoxPro declaration:
DECLARE INTEGER MAPIFindNext IN mapi32;
    INTEGER   lhSession,;
    INTEGER   ulUIParam,;
    STRING    lpszMsgType,;
    STRING    lpszSeedMsgID,;
    INTEGER   flFlags,;
    INTEGER   ulReserved,;
    STRING  @ lpszMsgID
Parameters:
lhSession
[in] Session handle that represents a Simple MAPI session.

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

lpszMessageType
[in] Pointer to a string identifying the message class to search.

lpszSeedMessageID
[in] Pointer to a string containing the message identifier seed for the request.

flFlags
[in] Bitmask of option flags.

ulReserved
Reserved; must be zero.

lpszMessageID
[out] Pointer to the returned message identifier.
Return value:
SUCCESS_SUCCESS (0) or an error code.
My comment:
There is no MAPIFindFirst function.

When the lpszSeedMessageID parameter is NULL or points to an empty string, MAPIFindNext returns the message identifier for the first message of the type specified by the lpszMessageType parameter.

Repeated calls to MAPIFindNext ultimately result in a return of the MAPI_E_NO_MESSAGES value, which means the enumeration is complete.
Word Index links for the MAPIFindNext :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2002-01-29 20:46:54
Modified: 2002-01-29 20:55:10
Visited in last 7 days: 12
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2014 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.1.68), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.166.255.168)
2.58 min.Example: 'How to assemble an array of strings and pass it to external function'
8.05 hrs.Function: 'UuidCreate'
8.08 hrs.Example: 'Validating the heap of the calling process'
3 day(s)Function: 'GetDlgItem'
Function group: 'Dialog Box'
Google
Advertise here!