home *** CD-ROM | disk | FTP | other *** search
/ PC Format (South-Africa) 2001 May / PCFMay2001.iso / Xenon / C++ / FreeCommandLineTools.exe / Include / mapiwz.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-01-31  |  2.0 KB  |  70 lines

  1. /*
  2.  *  M A P I W Z . H
  3.  *
  4.  *  Definitions for the Profile Wizard.  Includes all prototypes
  5.  *  and constants required by the provider-wizard code consumers.
  6.  *
  7.  *  Copyright 1986-1996 Microsoft Corporation. All Rights Reserved.
  8.  */
  9.  
  10. #ifndef _MAPIWZ_H
  11. #pragma option push -b -a8 -pc -A- /*P_O_Push*/
  12. #define _MAPIWZ_H
  13.  
  14. #define WIZ_QUERYNUMPAGES   (WM_USER +10)
  15. #define WIZ_NEXT            (WM_USER +11)
  16. #define WIZ_PREV            (WM_USER +12)
  17. /*
  18.  *  NOTE: Provider-Wizards should not use ids ranging between
  19.  *  (WM_USER + 1) and (WM_USER +20) as these have been reserved for 
  20.  *  future releases.
  21.  */
  22.  
  23. /*  Flags for LaunchWizard API */
  24.  
  25. #define MAPI_PW_FIRST_PROFILE           0x00000001
  26. #define MAPI_PW_LAUNCHED_BY_CONFIG      0x00000002
  27. #define MAPI_PW_ADD_SERVICE_ONLY        0x00000004
  28. #define MAPI_PW_PROVIDER_UI_ONLY        0x00000008
  29. #define MAPI_PW_HIDE_SERVICES_LIST      0x00000010
  30.  
  31. /*
  32.  *  Provider should set this property to TRUE if it does not
  33.  *  want the Profile Wizard to display the PST setup page.
  34.  */
  35. #define PR_WIZARD_NO_PST_PAGE           PROP_TAG(PT_BOOLEAN, 0x6700)
  36.  
  37. typedef HRESULT (STDAPICALLTYPE LAUNCHWIZARDENTRY)
  38. (
  39.     HWND            hParentWnd,
  40.     ULONG           ulFlags,
  41.     LPCTSTR FAR *   lppszServiceNameToAdd,
  42.     ULONG           cbBufferMax,
  43.     LPTSTR          lpszNewProfileName
  44. );
  45. typedef LAUNCHWIZARDENTRY FAR * LPLAUNCHWIZARDENTRY;
  46.  
  47. typedef BOOL (STDAPICALLTYPE SERVICEWIZARDDLGPROC)
  48. (
  49.     HWND            hDlg,
  50.     UINT            wMsgID,
  51.     WPARAM          wParam,
  52.     LPARAM          lParam
  53. );
  54. typedef SERVICEWIZARDDLGPROC FAR * LPSERVICEWIZARDDLGPROC;
  55.  
  56. typedef ULONG (STDAPICALLTYPE WIZARDENTRY)
  57. (
  58.     HINSTANCE       hProviderDLLInstance,
  59.     LPTSTR FAR *    lppcsResourceName,
  60.     DLGPROC FAR *   lppDlgProc,
  61.     LPMAPIPROP      lpMapiProp,
  62.     LPVOID          lpMapiSupportObject
  63. );
  64. typedef WIZARDENTRY FAR * LPWIZARDENTRY;
  65.  
  66. #define LAUNCHWIZARDENTRYNAME           "LAUNCHWIZARD"
  67.  
  68. #pragma option pop /*P_O_Pop*/
  69. #endif  /* _MAPIWZ_H */
  70.