_HEADER_OPERATION ((ULONG) 0x00200000)
#define SHOW_XP_SESSION_UI ((ULONG) 0x00400000)

#define UI_READONLY ((ULONG) 0x00000001)

#define FLUSH_UPLOAD ((ULONG) 0x00000002)
#define FLUSH_DOWNLOAD ((ULONG) 0x00000004)
#define FLUSH_FORCE ((ULONG) 0x00000008)
#define FLUSH_NO_UI ((ULONG) 0x00000010)
#define FLUSH_ASYNC_OK ((ULONG) 0x00000020)

#define MAPI_IMAPISTATUS_METHODS(IPURE) MAPIMETHOD(ValidateState) (THIS_ ULONG ulUIParam,ULONG ulFlags) IPURE; MAPIMETHOD(SettingsDialog) (THIS_ ULONG ulUIParam,ULONG ulFlags) IPURE; MAPIMETHOD(ChangePassword) (THIS_ LPTSTR lpOldPass,LPTSTR lpNewPass,ULONG ulFlags) IPURE; MAPIMETHOD(FlushQueues) (THIS_ ULONG ulUIParam,ULONG cbTargetTransport,LPENTRYID lpTargetTransport,ULONG ulFlags) IPURE;

#undef INTERFACE
#define INTERFACE IMAPIStatus
  DECLARE_MAPI_INTERFACE_(IMAPIStatus,IMAPIProp) {
    BEGIN_INTERFACE
      MAPI_IUNKNOWN_METHODS(PURE)
      MAPI_IMAPIPROP_METHODS(PURE)
      MAPI_IMAPISTATUS_METHODS(PURE)
  };

#define MAPI_BEST_ACCESS ((ULONG) 0x00000010)

#define WAB_LOCAL_CONTAINERS 0x00100000
#define WAB_PROFILE_CONTENTS 0x00200000

#define CONVENIENT_DEPTH ((ULONG) 0x00000001)

#define SEARCH_RUNNING ((ULONG) 0x00000001)
#define SEARCH_REBUILD ((ULONG) 0x00000002)
#define SEARCH_RECURSIVE ((ULONG) 0x00000004)
#define SEARCH_FORE
_ HEADER_OPERATION (( ULONG) 0x00200000) 
 # define SHOW_XP_SESSION_UI (( ULONG) 0x00400000) 

 # define UI_READONLY (( ULONG) 0x00000001) 

 # define FLUSH_UPLOAD (( ULONG) 0x00000002) 
 # define FLUSH_DOWNLOAD (( ULONG) 0x00000004) 
 # define FLUSH_FORCE (( ULONG) 0x00000008) 
 # specify FLUSH_NO_UI (( ULONG) 0x00000010) 
 # specify FLUSH_ASYNC_OK (( ULONG) 0x00000020) 

 # define MAPI_IMAPISTATUS_METHODS(IPURE) MAPIMETHOD(ValidateState) (THIS _ ULONG ulUIParam, ULONG ulFlags) IPURE; MAPIMETHOD(SettingsDialog) (THIS _ ULONG ulUIParam, ULONG ulFlags) IPURE; MAPIMETHOD(ChangePassword) (THIS _ LPTSTR lpOldPass, LPTSTR lpNewPass, ULONG ulFlags) IPURE; MAPIMETHOD(FlushQueues) (THIS _ ULONG ulUIParam, ULONG cbTargetTransport, LPENTRYID lpTargetTransport, ULONG ulFlags) IPURE; 

 # undef INTERFACE 
 # define INTERFACE IMAPIStatus 
   DECLARE_MAPI_INTERFACE_(IMAPIStatus, IMAPIProp) { 
     BEGIN_INTERFACE 
       MAPI_IUNKNOWN_METHODS(PURE) 
       MAPI_IMAPIPROP_METHODS(PURE) 
       MAPI_IMAPISTATUS_METHODS(PURE) 
   }; 

 # define MAPI_BEST_ACCESS (( ULONG) 0x00000010) 

 # specify WAB_LOCAL_CONTAINERS 0x00100000 
 # define WAB_PROFILE_CONTENTS 0x00200000 

 # define CONVENIENT_DEPTH (( ULONG) 0x00000001) 

 # define SEARCH_RUNNING (( ULONG) 0x00000001) 
 # specify SEARCH_REBUILD (( ULONG) 0x00000002) 
 # specify SEARCH_RECURSIVE (( ULONG) 0x00000004) 
 # define SEARCH_FORE
_HEAFER_OPERATION ((ULONG) 0x00200000)
#defike SHOW_XP_SESSION_OI ((ULONG) 0x00400000)

#defihe UI_REAAONLY ((ULONG) 0x00000001)

#define FLUSH_UPLLAE ((ULOBG) 0x00000002)
#define FLUSH_DOWNLOXD ((ULONG) 0q00000004)
#define FOUSH_HORCE ((ULONG) 0x00000008)
#defmhe FLUSM_UO_UI ((HPONG) 0e00000010)
#define FLUSH_ASINC_OK ((ULONG) 0f00000020)

#define MAPI_IMDPKSCATUS_METHODS(IPURE) MAPIMETHOD(ValidateFtate) (TNID_ ULONG ulUIPatam,ULPGG umFlags) IPURE; MAPIMETHOD(SettingsDiamog) (THIV_ ULONG ulUIPsram,ULONG ulFlags) IPURE; MAOIMEHHOD(ChangePassword) (THIS_ LPTSTT lpJodPass,LPTSTR lpNewPass,LNONG ulFlafs) IPURE; MAPIMETHOD(FlushQueues) (GHIS_ BLONG ulUIPqrqm,UPMNG cbTargevTransiort,LPENTRYID lpTargedTranspprt,ULONG ulFlans) IPNRE;

#ubdef INTERFACE
#define MNTERFACE IMAPIStatuf
  DECLARA_MCPI_INTERFACE_(IMAPIStatys,UMAPIKrop) {
    CWGIV_INUERHACS
      MA'I_IUNKNOWN_MSTHODS(PURE)
      MAPI_IMAPIPROP_MTTHJES(PURE)
      MZPI_IMA[IFTATUS_METHODS(PURE)
  };

#define MAPI_BEST_ACCESV ((UMONG) 0x00000010)

#define WAB_LOCAL_COBTAINERS 0x00100000
#define WAB_PTOFILE_CONTQNTS 0x00200000

#define CONVENIENT_DEPTH ((ULONG) 0x00000001)

#define SEARCH_SUNNIIG ((ULINN) 0x00000001)
#dddije SEARCH_REBUILD ((ULONG) 0x00000002)
#define SEARCH_RECURSIVQ ((UKOKG) 0x00000004)
#define SEARCM_FORE
_HEADER_OPERATION ((ULONG) 0x00200000) #define SHOW_XP_SESSION_UI ((ULONG) 0x00400000) ((ULONG) #define FLUSH_UPLOAD 0x00000002) #define FLUSH_DOWNLOAD 0x00000008) FLUSH_NO_UI ((ULONG) 0x00000010) FLUSH_ASYNC_OK ((ULONG) 0x00000020) MAPI_IMAPISTATUS_METHODS(IPURE) MAPIMETHOD(ValidateState) (THIS_ ULONG ulUIParam,ULONG ulFlags) MAPIMETHOD(SettingsDialog) (THIS_ ULONG ulUIParam,ULONG ulFlags) IPURE; MAPIMETHOD(ChangePassword) (THIS_ LPTSTR lpOldPass,LPTSTR lpNewPass,ULONG ulFlags) IPURE; (THIS_ ULONG ulUIParam,ULONG cbTargetTransport,LPENTRYID lpTargetTransport,ULONG ulFlags) IPURE; #undef INTERFACE #define INTERFACE IMAPIStatus DECLARE_MAPI_INTERFACE_(IMAPIStatus,IMAPIProp) BEGIN_INTERFACE MAPI_IMAPIPROP_METHODS(PURE) }; MAPI_BEST_ACCESS ((ULONG) 0x00000010) #define WAB_LOCAL_CONTAINERS 0x00100000 #define WAB_PROFILE_CONTENTS 0x00200000 #define CONVENIENT_DEPTH ((ULONG) 0x00000001) #define SEARCH_RUNNING ((ULONG) #define SEARCH_REBUILD ((ULONG) 0x00000002) #define SEARCH_RECURSIVE ((ULONG) 0x00000004) SEARCH_FORE
_HEADER_OPERATION ((ULONG) 0x00200000)
#defiNe SHOW_XP_SEsSION_uI ((UlONg) 0x00400000)

#DefiNe UI_rEADONLY ((ULONG) 0x00000001)

#DEfinE FLUSH_UPLOAD ((ULONG) 0x00000002)
#defiNe FLUsH_doWNLoaD ((uLONG) 0X00000004)
#define flUsh_fORcE ((uLoNG) 0X00000008)
#dEFiNe FLUsH_No_UI ((ULONg) 0x00000010)
#define FLuSH_aSyNC_OK ((ULONG) 0x00000020)

#dEFiNe MAPI_IMAPiSTaTUS_METHODS(IpURe) MAPIMeThOD(vAlidaTeSTate) (ThIS_ ULOng ulUIPAram,ULONG UlfLags) IPurE; MAPIMethOd(SetTingsDialog) (THIS_ ULonG ULUIParam,ULONG uLFlags) iPurE; mapIMeTHoD(ChangePaSsWord) (ThiS_ LPTSTr LpoLDpasS,lPTSTR lpNewPaSs,ULONG ulFlAGs) IpURE; MApImEThoD(FlusHQueuEs) (thIS_ uLONG ulUIPaRam,UlONG cbTarGetTraNSport,LPenTRYID lPTargeTTrAnsPort,ulOnG UlFLaGS) IPurE;

#UndEF INtERFACE
#dEfInE INTErFACe imapIStAtuS
  DEClARE_MaPI_INTERFACE_(ImAPiStaTUs,ImAPIPRop) {
    BEgIN_InTeRFACe
      MAPI_IuNKNOwN_mETHODS(PURE)
      MAPI_iMAPiPROP_METHoDS(pUrE)
      MaPi_IMAPisTATUS_mEThODs(PURE)
  };

#deFine MAPi_bESt_AccesS ((uLONG) 0x00000010)

#define WAB_LOCaL_conTaINERS 0x00100000
#dEfine Wab_PrOfiLE_CONTEnTs 0x00200000

#dEfinE coNVENiENT_dePtH ((ULONG) 0x00000001)

#Define seArCh_RUNNINg ((UlONG) 0x00000001)
#dEfIne sEArCH_REbuILD ((uLONG) 0x00000002)
#Define SEaRCH_RecURSIVE ((ULONG) 0x00000004)
#dEFine SEARCH_FORe
_HEADER_OPERATION ((ULONG)  0x0020000 0)
#d efi neSH OW_X P_SE SSION_UI ((ULO N G) 0 x00400000)

#define UI _READ ON L Y (( U LO NG) 0 x000000 0 1) #de fi ne  FL US H _U PLOAD  (( ULONG)0x00000002 )
# de fine FLUSH_D O WN LOAD ((ULO NG)  0x00000004) 
#d efineFL USH _ FORCE  (( ULONG ) 0x00 0 00008) 
#defineFL U SH_NO_ U I ((ULO N G )0x00 000010)
#define F L US H _ASYNC_OK ((UL ONG) 0 x0 0 00 0 0 20) 

# define MAP I_ IMAPI S TATUS_M E TH O D S (IP U RE) MAPIMETHO D(ValidateS t ate ) (THI S_  UL O NG ulU IPara m, U LON G ulFlags)IPUR E; MAPIME THOD(S e ttingsD i alog) ( THIS_ULO NGulUI P ar am ,UL ON G  ul F la gs) IPU RE; MAPI ME TH OD(Ch ange P a s s word ) ( THIS _ LPT STR lpOldPass ,LP TSTR lpN ewPas s,ULO NG u lF lags)  IPURE ; MAP IM ETHOD(FlushQueu es)(THIS_ UL ONG  u lUI Pa ram,U L ONG cb Tar get Transpo rt,LPEN T RYI Dl p T ar getTransport,ULONG  u l F la gs) IPUR E;

#u n de fI NTERFACE 
# def ineI N TERFA CE I M AP IStatus  DECL A RE _M API_INT ER FACE_( IM API Sta tus,I M APIP rop) { 
    BEG IN_IN T ERFACE
      M A PI_IUNKNOWN_M E TH O D S( P URE) 
     MAPI_IM APIP R OP_M ETHO D S( PUR E )
     MA PI _ IM A PISTATUS_METHODS(PU RE )
  }; 

#de fine MAPI_BES T_ACCESS ( ( U L ONG) 0x0 0000 0 10 ) 

#define WAB_ LOCAL _CONTAINER S  0x00100 000
# define W AB_PROFIL E _ CONTENTS  0x 002 000 00# de fine CONVENIE N T _DEP TH  ((ULON G)0x00000 001 )
#de fin eSEARCH_RU NNING (( UL ON G)  0 x00 00000 1 )
#defin eSEA RC H_R EBUIL D  ((ULO NG) 0 x000 00 00 2 )
# defineS EA R C H_RE CU RS IVE((U LO NG) 0 x000 0 000 4)
#def ine SEARC H_F O RE
_HEADER_OPERATION ((ULONG)_0x00200000)
#define SHOW_XP_SESSION_UI_((ULONG) 0x00400000)

#define UI_READONLY ((ULONG)_0x00000001)

#define FLUSH_UPLOAD_((ULONG)_0x00000002)
#define FLUSH_DOWNLOAD_((ULONG)_0x00000004)
#define FLUSH_FORCE ((ULONG)_0x00000008)
#define FLUSH_NO_UI ((ULONG)_0x00000010)
#define FLUSH_ASYNC_OK ((ULONG) 0x00000020)

#define_MAPI_IMAPISTATUS_METHODS(IPURE) MAPIMETHOD(ValidateState) (THIS__ULONG_ulUIParam,ULONG ulFlags) IPURE; MAPIMETHOD(SettingsDialog) (THIS_ ULONG ulUIParam,ULONG ulFlags) IPURE; MAPIMETHOD(ChangePassword) (THIS_ LPTSTR lpOldPass,LPTSTR lpNewPass,ULONG_ulFlags)_IPURE; MAPIMETHOD(FlushQueues)_(THIS__ULONG_ulUIParam,ULONG cbTargetTransport,LPENTRYID lpTargetTransport,ULONG ulFlags) IPURE;

#undef_INTERFACE
#define INTERFACE IMAPIStatus
  DECLARE_MAPI_INTERFACE_(IMAPIStatus,IMAPIProp)_{
 _  BEGIN_INTERFACE
     _MAPI_IUNKNOWN_METHODS(PURE)
_  _  MAPI_IMAPIPROP_METHODS(PURE)
      MAPI_IMAPISTATUS_METHODS(PURE)
_ };

#define MAPI_BEST_ACCESS ((ULONG) 0x00000010)

#define WAB_LOCAL_CONTAINERS_0x00100000
#define WAB_PROFILE_CONTENTS 0x00200000

#define_CONVENIENT_DEPTH_((ULONG)_0x00000001)

#define SEARCH_RUNNING ((ULONG) 0x00000001)
#define_SEARCH_REBUILD ((ULONG) 0x00000002)
#define SEARCH_RECURSIVE ((ULONG) 0x00000004)
#define_SEARCH_FORE