summaryrefslogtreecommitdiffstats
path: root/comm/mailnews/mapi/include/mapiwz.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 17:32:43 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 17:32:43 +0000
commit6bf0a5cb5034a7e684dcc3500e841785237ce2dd (patch)
treea68f146d7fa01f0134297619fbe7e33db084e0aa /comm/mailnews/mapi/include/mapiwz.h
parentInitial commit. (diff)
downloadthunderbird-6bf0a5cb5034a7e684dcc3500e841785237ce2dd.tar.xz
thunderbird-6bf0a5cb5034a7e684dcc3500e841785237ce2dd.zip
Adding upstream version 1:115.7.0.upstream/1%115.7.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'comm/mailnews/mapi/include/mapiwz.h')
-rw-r--r--comm/mailnews/mapi/include/mapiwz.h73
1 files changed, 73 insertions, 0 deletions
diff --git a/comm/mailnews/mapi/include/mapiwz.h b/comm/mailnews/mapi/include/mapiwz.h
new file mode 100644
index 0000000000..0ebe69fcbf
--- /dev/null
+++ b/comm/mailnews/mapi/include/mapiwz.h
@@ -0,0 +1,73 @@
+/*
+ * M A P I W Z . H
+ *
+ * Definitions for the Profile Wizard. Includes all prototypes
+ * and constants required by the provider-wizard code consumers.
+ *
+ * Copyright (c) 2009 Microsoft Corporation. All Rights Reserved.
+ */
+
+#ifndef _MAPIWZ_H
+#define _MAPIWZ_H
+
+#if _MSC_VER > 1000
+#pragma once
+#endif
+
+#define WIZ_QUERYNUMPAGES (WM_USER +10)
+#define WIZ_NEXT (WM_USER +11)
+#define WIZ_PREV (WM_USER +12)
+/*
+ * NOTE: Provider-Wizards should not use ids ranging between
+ * (WM_USER + 1) and (WM_USER +20) as these have been reserved for
+ * future releases.
+ */
+
+/* Flags for LaunchWizard API */
+
+#define MAPI_PW_FIRST_PROFILE 0x00000001
+#define MAPI_PW_LAUNCHED_BY_CONFIG 0x00000002
+#define MAPI_PW_ADD_SERVICE_ONLY 0x00000004
+#define MAPI_PW_PROVIDER_UI_ONLY 0x00000008
+#define MAPI_PW_HIDE_SERVICES_LIST 0x00000010
+
+/*
+ * Provider should set this property to TRUE if it does not
+ * want the Profile Wizard to display the PST setup page.
+ */
+#define PR_WIZARD_NO_PST_PAGE PROP_TAG(PT_BOOLEAN, 0x6700)
+#define PR_WIZARD_NO_PAB_PAGE PROP_TAG(PT_BOOLEAN, 0x6701)
+
+typedef HRESULT (STDAPICALLTYPE LAUNCHWIZARDENTRY)
+(
+ HWND hParentWnd,
+ ULONG ulFlags,
+ LPCTSTR FAR * lppszServiceNameToAdd,
+ ULONG cbBufferMax,
+ LPTSTR lpszNewProfileName
+);
+typedef LAUNCHWIZARDENTRY FAR * LPLAUNCHWIZARDENTRY;
+
+typedef BOOL (STDAPICALLTYPE SERVICEWIZARDDLGPROC)
+(
+ HWND hDlg,
+ UINT wMsgID,
+ WPARAM wParam,
+ LPARAM lParam
+);
+typedef SERVICEWIZARDDLGPROC FAR * LPSERVICEWIZARDDLGPROC;
+
+typedef ULONG (STDAPICALLTYPE WIZARDENTRY)
+(
+ HINSTANCE hProviderDLLInstance,
+ LPTSTR FAR * lppcsResourceName,
+ DLGPROC FAR * lppDlgProc,
+ LPMAPIPROP lpMapiProp,
+ LPVOID lpMapiSupportObject
+);
+typedef WIZARDENTRY FAR * LPWIZARDENTRY;
+
+#define LAUNCHWIZARDENTRYNAME "LAUNCHWIZARD"
+
+#endif /* _MAPIWZ_H */
+