home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / include / mapiwz.h < prev    next >
C/C++ Source or Header  |  1998-04-25  |  2KB  |  68 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. #define _MAPIWZ_H
  12.  
  13. #define WIZ_QUERYNUMPAGES   (WM_USER +10)
  14. #define WIZ_NEXT            (WM_USER +11)
  15. #define WIZ_PREV            (WM_USER +12)
  16. /*
  17.  *  NOTE: Provider-Wizards should not use ids ranging between
  18.  *  (WM_USER + 1) and (WM_USER +20) as these have been reserved for 
  19.  *  future releases.
  20.  */
  21.  
  22. /*  Flags for LaunchWizard API */
  23.  
  24. #define MAPI_PW_FIRST_PROFILE           0x00000001
  25. #define MAPI_PW_LAUNCHED_BY_CONFIG      0x00000002
  26. #define MAPI_PW_ADD_SERVICE_ONLY        0x00000004
  27. #define MAPI_PW_PROVIDER_UI_ONLY        0x00000008
  28. #define MAPI_PW_HIDE_SERVICES_LIST      0x00000010
  29.  
  30. /*
  31.  *  Provider should set this property to TRUE if it does not
  32.  *  want the Profile Wizard to display the PST setup page.
  33.  */
  34. #define PR_WIZARD_NO_PST_PAGE           PROP_TAG(PT_BOOLEAN, 0x6700)
  35.  
  36. typedef HRESULT (STDAPICALLTYPE LAUNCHWIZARDENTRY)
  37. (
  38.     HWND            hParentWnd,
  39.     ULONG           ulFlags,
  40.     LPCTSTR FAR *   lppszServiceNameToAdd,
  41.     ULONG           cbBufferMax,
  42.     LPTSTR          lpszNewProfileName
  43. );
  44. typedef LAUNCHWIZARDENTRY FAR * LPLAUNCHWIZARDENTRY;
  45.  
  46. typedef BOOL (STDAPICALLTYPE SERVICEWIZARDDLGPROC)
  47. (
  48.     HWND            hDlg,
  49.     UINT            wMsgID,
  50.     WPARAM          wParam,
  51.     LPARAM          lParam
  52. );
  53. typedef SERVICEWIZARDDLGPROC FAR * LPSERVICEWIZARDDLGPROC;
  54.  
  55. typedef ULONG (STDAPICALLTYPE WIZARDENTRY)
  56. (
  57.     HINSTANCE       hProviderDLLInstance,
  58.     LPTSTR FAR *    lppcsResourceName,
  59.     DLGPROC FAR *   lppDlgProc,
  60.     LPMAPIPROP      lpMapiProp,
  61.     LPVOID          lpMapiSupportObject
  62. );
  63. typedef WIZARDENTRY FAR * LPWIZARDENTRY;
  64.  
  65. #define LAUNCHWIZARDENTRYNAME           "LAUNCHWIZARD"
  66.  
  67. #endif  /* _MAPIWZ_H */
  68.