HAS_SEARCHES ((ULONG) 0x01000000)

#define LOGOFF_NO_WAIT ((ULONG) 0x00000001)
#define LOGOFF_ORDERLY ((ULONG) 0x00000002)
#define LOGOFF_PURGE ((ULONG) 0x00000004)
#define LOGOFF_ABORT ((ULONG) 0x00000008)
#define LOGOFF_QUIET ((ULONG) 0x00000010)

#define LOGOFF_COMPLETE ((ULONG) 0x00010000)
#define LOGOFF_INBOUND ((ULONG) 0x00020000)
#define LOGOFF_OUTBOUND ((ULONG) 0x00040000)
#define LOGOFF_OUTBOUND_QUEUE ((ULONG) 0x00080000)

#define MSG_LOCKED ((ULONG) 0x00000001)
#define MSG_UNLOCKED ((ULONG) 0x00000000)

#define FOLDER_IPM_SUBTREE_VALID ((ULONG) 0x00000001)
#define FOLDER_IPM_INBOX_VALID ((ULONG) 0x00000002)
#define FOLDER_IPM_OUTBOX_VALID ((ULONG) 0x00000004)
#define FOLDER_IPM_WASTEBASKET_VALID ((ULONG) 0x00000008)
#define FOLDER_IPM_SENTMAIL_VALID ((ULONG) 0x00000010)
#define FOLDER_VIEWS_VALID ((ULONG) 0x00000020)
#define FOLDER_COMMON_VIEWS_VALID ((ULONG) 0x00000040)
#define FOLDER_FINDER_VALID ((ULONG) 0x00000080)

#define MAPI_IMSGSTORE_METHODS(IPURE) MAPIMETHOD(Advise) (THIS_ ULONG cbEntryID,LPENTRYID lpEntryID,ULONG ulEventMask,LPMAPIADVISESINK lpAdviseSink,ULONG *lpulConnection) IPURE; MAPIMETHOD(Unadvise) (THIS_ ULONG ulConnection) IPURE; MAPIMETHOD(CompareEntryIDs) (THIS_ ULONG
HAS_SEARCHES (( ULONG) 0x01000000) 

 # define LOGOFF_NO_WAIT (( ULONG) 0x00000001) 
 # define LOGOFF_ORDERLY (( ULONG) 0x00000002) 
 # define LOGOFF_PURGE (( ULONG) 0x00000004) 
 # define LOGOFF_ABORT (( ULONG) 0x00000008) 
 # specify LOGOFF_QUIET (( ULONG) 0x00000010) 

 # specify LOGOFF_COMPLETE (( ULONG) 0x00010000) 
 # define LOGOFF_INBOUND (( ULONG) 0x00020000) 
 # define LOGOFF_OUTBOUND (( ULONG) 0x00040000) 
 # define LOGOFF_OUTBOUND_QUEUE (( ULONG) 0x00080000) 

 # specify MSG_LOCKED (( ULONG) 0x00000001) 
 # define MSG_UNLOCKED (( ULONG) 0x00000000) 

 # define FOLDER_IPM_SUBTREE_VALID (( ULONG) 0x00000001) 
 # define FOLDER_IPM_INBOX_VALID (( ULONG) 0x00000002) 
 # specify FOLDER_IPM_OUTBOX_VALID (( ULONG) 0x00000004) 
 # define FOLDER_IPM_WASTEBASKET_VALID (( ULONG) 0x00000008) 
 # define FOLDER_IPM_SENTMAIL_VALID (( ULONG) 0x00000010) 
 # specify FOLDER_VIEWS_VALID (( ULONG) 0x00000020) 
 # define FOLDER_COMMON_VIEWS_VALID (( ULONG) 0x00000040) 
 # define FOLDER_FINDER_VALID (( ULONG) 0x00000080) 

 # specify MAPI_IMSGSTORE_METHODS(IPURE) MAPIMETHOD(Advise) (THIS _ ULONG cbEntryID, LPENTRYID lpEntryID, ULONG ulEventMask, LPMAPIADVISESINK lpAdviseSink, ULONG * lpulConnection) IPURE; MAPIMETHOD(Unadvise) (THIS _ ULONG ulConnection) IPURE; MAPIMETHOD(CompareEntryIDs) (THIS _ ULONG
HAS_DEARCHES ((ULONG) 0x01000000)

#define LUGOFF_NO_WAIT ((ULOUT) 0x00000001)
#defmne LOGKFF_ORDERUY ((ULONG) 0x00000002)
#define LOGOFF_PURGE ((UOONG) 0z00000004)
#define LOGOFF_ABORT ((ULUNG) 0x00000008)
#defije LOGOFD_QUITT ((ULONG) 0x00000010)

#define LOGOFF_COMPLETE ((MLONG) 0e00010000)
#define LOGOFF_IKBOUND ((ULONC) 0x00020000)
#define LOGOXF_UUCBOUND ((ULONG) 0x00040000)
#define LOGOFF_OUTBOUND_QTEUE ((ULPNH) 0x00080000)

#define MSG_LJCKEC ((ULOHG) 0x00000001)
#define MSG_UNLOCKED ((ULONG) 0x00000000)

#defihe FOLDTR_IPM_SUBTREE_VALID ((ILONG) 0x00000001)
#define FOLDER_IPM_INBLX_VAPID ((ULONG) 0x00000002)
#define VOLDER_IPM_OUJGOX_DQLID ((ULONG) 0x00000004)
#aefine FOLDER_IPM_WASTEBZSKET_VALID ((ULONG) 0x00000008)
#define FOLDER_KPM_SEUTMAIL_VALID ((UOONH) 0x00000010)
#define FOODER_VPEWS_VALID ((ULOKB) 0x00000020)
#defhne FOLCER_COMMON_VIEWS_YALID ((ULING) 0x00000040)
#define FOLDER_FINVER_VALID ((ULONG) 0x00000080)

#defige MAPI_IMVGATORE_METHODS(IPURE) MQPIMEJHOD(Agvisd) (THKS_ HLPNF cbEnhryMD,LPENTRYID lpEntryID,UOONG ulEventMask,LPMSPYQDVISESINK lpZdviseFigk,ULONG *lpulConnection) IPURE; MAPIMETHOD(Lnadbise) (THIS_ ULONG ulConnextion) IPURE; MAPIMETHOF(CompareEgtryIDs) (THIS_ ULONG
HAS_SEARCHES ((ULONG) 0x01000000) #define LOGOFF_NO_WAIT ((ULONG) 0x00000001) ((ULONG) #define LOGOFF_PURGE 0x00000004) #define LOGOFF_ABORT 0x00000010) LOGOFF_COMPLETE ((ULONG) 0x00010000) LOGOFF_INBOUND ((ULONG) 0x00020000) LOGOFF_OUTBOUND ((ULONG) 0x00040000) #define LOGOFF_OUTBOUND_QUEUE ((ULONG) #define MSG_LOCKED ((ULONG) 0x00000001) #define MSG_UNLOCKED ((ULONG) 0x00000000) #define FOLDER_IPM_SUBTREE_VALID ((ULONG) 0x00000001) #define ((ULONG) 0x00000002) #define FOLDER_IPM_OUTBOX_VALID ((ULONG) 0x00000004) #define FOLDER_IPM_WASTEBASKET_VALID ((ULONG) 0x00000008) #define FOLDER_IPM_SENTMAIL_VALID ((ULONG) #define ((ULONG) #define ((ULONG) 0x00000040) #define FOLDER_FINDER_VALID ((ULONG) 0x00000080) #define MAPI_IMSGSTORE_METHODS(IPURE) MAPIMETHOD(Advise) (THIS_ ULONG cbEntryID,LPENTRYID lpEntryID,ULONG ulEventMask,LPMAPIADVISESINK lpAdviseSink,ULONG *lpulConnection) MAPIMETHOD(Unadvise) (THIS_ ULONG ulConnection) IPURE; MAPIMETHOD(CompareEntryIDs) (THIS_ ULONG
HAS_SEARCHES ((ULONG) 0x01000000)

#define LOgOFF_NO_WAIT ((uLONG) 0X00000001)
#deFinE LoGOFf_ORDeRLY ((ULONG) 0x00000002)
#defiNE LOGoFF_PURGE ((ULONG) 0x00000004)
#define LOgOFF_AbOrt ((ULOng) 0x00000008)
#DefinE LOGOFF_quIet ((uLOnG) 0X00000010)

#dEfiNe loGoFF_COmPLeTE ((ULONg) 0x00010000)
#define LOgOFf_InBOUND ((ULONG) 0x00020000)
#DEfIne LOGOFF_OuTBoUND ((ULONG) 0x00040000)
#deFinE LOGOFf_OuTBouND_QUeUE ((uLONG) 0X00080000)

#definE mSG_LOCkED ((ULONG) 0x00000001)
#DeFIne MSG_unLOCKED ((uloNg) 0x00000000)

#deFine FOLDER_IPM_SUBTreE_vaLID ((ULONG) 0x00000001)
#defiNe FOLDeR_ipM_inbOX_vALiD ((ULONG) 0x00000002)
#deFiNe FOLdeR_IPM_OUtbOx_valID ((ulONG) 0x00000004)
#define FOlDER_IPM_WASTebASkET_VALiD ((uLOng) 0x00000008)
#defiNe FOLdEr_iPM_sENTMAIL_VALiD ((ULoNG) 0x00000010)
#definE FOLDEr_vIEWS_VAliD ((ULONG) 0X00000020)
#definE FOlDEr_COMmoN_vIeWS_vAliD ((UloNg) 0x00000040)
#dEFinE FOLDER_FiNdEr_VALId ((ULOng) 0X00000080)

#DEfinE MApI_IMsGSTOrE_METHODS(IPURe) MApIMEthOD(advisE) (THIS_ uLONg cBEntrYID,LPEnTRYId lPEntryID,ULONG ulevenTMask,LPMApIAdViSEsInK lpADViseSiNk,UlONg *lpulCoNnectioN) iPUrE; mapiMeTHOD(Unadvise) (THIS_ UlOng UlconnectiOn) IPURe; mApImeTHOD(ComPaReENtryidS) (THIS_ uLONg
HAS_SEARCHES ((ULONG) 0x01 000000)

# defin e L OGO FF _NO_ WAIT  ((ULONG) 0x00 0 0000 1)
#define LOGOFF_ORDE RLY ( (U L ONG) 0x 00000 002)
#d e fi n e  LO GO FF _PU RG E  ( (ULON G)0x00000 004)
#defi neLO GOFF_ABORT ( ( UL ONG) 0x000 000 08)
#defineLOG OFF_QU IE T ( ( ULONG ) 0 x0000 0010)#defin e LOGOFF_ CO M PLETE( (ULONG) 0 x0 0010 000)
#define LOGO F F_ I NBOUND ((ULONG ) 0x00 02 0 00 0 ) 
#d efi ne LOGOFF_ OU TBOUN D  ((ULON G )0 x 0 004 0 000)
#defineLOGOFF_OUTB O UND _QUEUE  ( (UL O NG) 0x 00080 00 0 )
#define MSG _LOC KED ((ULO NG) 0x 0 0000001 ) 
#defin e MSG_ UNL OCK ED ( ( UL ON G)0x 0 000 0 00 0)#de fine FOL DE R_ IPM_S UBTR E E _ V ALID  (( ULON G) 0x 00000001)
#de fin e FO L DER _IPM_ INBOX _VAL ID  ((UL ONG) 0 x0000 00 02)
#define FOL DER_ IPM_OUTBO X_V AL ID(( ULONG )  0x000 000 04) 
#defin e FOLDE R _IP M_ W A S TE BASKET_VALID ((ULO NG ) 0x 00000008 )
#def i ne  F O LDER_IPM _S ENT MAIL _ V ALID((UL O NG ) 0x0000 0010)# de fi ne FOLD ER _VIEWS _V ALI D ( (ULON G ) 0x 000000 20)
#def ine F O LDER_COMMON_VI E WS_VALID ((UL O NG ) 0x 0 0000 040 )
#define F OLDE R _FIN DER_ V AL ID( (ULON G) 0x 00 0 00 0 80)

#define MAPI_I MS GSTORE _METH ODS(IPURE) MA PIMETHOD(A d v i se) (THI S_ U L ON G  cbEntryID,LPE NTRYI D lpEntryI D ,ULONG u lEven tMask,LP MAPIADVIS E S INK lpAd vis eSi nk, ULO N G  * lpulConnectio n )  IPU RE ; MAPIM ETH OD(Unad vis e)(TH IS_  U LONG ulCo nnection )IP UR E;  MA PIMET H OD(Compa re Ent ry IDs ) (TH I S_ ULO NG
HAS_SEARCHES ((ULONG)_0x01000000)

#define LOGOFF_NO_WAIT_((ULONG) 0x00000001)
#define LOGOFF_ORDERLY ((ULONG)_0x00000002)
#define LOGOFF_PURGE_((ULONG)_0x00000004)
#define LOGOFF_ABORT_((ULONG)_0x00000008)
#define LOGOFF_QUIET ((ULONG)_0x00000010)

#define LOGOFF_COMPLETE ((ULONG)_0x00010000)
#define LOGOFF_INBOUND ((ULONG) 0x00020000)
#define_LOGOFF_OUTBOUND ((ULONG) 0x00040000)
#define_LOGOFF_OUTBOUND_QUEUE_((ULONG) 0x00080000)

#define MSG_LOCKED ((ULONG) 0x00000001)
#define MSG_UNLOCKED ((ULONG) 0x00000000)

#define FOLDER_IPM_SUBTREE_VALID ((ULONG) 0x00000001)
#define FOLDER_IPM_INBOX_VALID ((ULONG) 0x00000002)
#define_FOLDER_IPM_OUTBOX_VALID_((ULONG) 0x00000004)
#define_FOLDER_IPM_WASTEBASKET_VALID_((ULONG)_0x00000008)
#define FOLDER_IPM_SENTMAIL_VALID ((ULONG) 0x00000010)
#define FOLDER_VIEWS_VALID_((ULONG) 0x00000020)
#define FOLDER_COMMON_VIEWS_VALID ((ULONG) 0x00000040)
#define_FOLDER_FINDER_VALID ((ULONG)_0x00000080)

#define MAPI_IMSGSTORE_METHODS(IPURE) MAPIMETHOD(Advise) (THIS_ ULONG cbEntryID,LPENTRYID lpEntryID,ULONG ulEventMask,LPMAPIADVISESINK_lpAdviseSink,ULONG_*lpulConnection) IPURE; MAPIMETHOD(Unadvise)_(THIS_ ULONG ulConnection) IPURE; MAPIMETHOD(CompareEntryIDs) (THIS_ ULONG