MAPI headers no longer available for download from Microsoft; vendor from MIT license Github project
Categories
(MailNews Core :: Build Config, task)
Tracking
(Not tracked)
People
(Reporter: rjl, Assigned: rjl)
References
Details
Attachments
(3 files)
The MAPI Header files download URL is returning a 404 error, despite being linked to from various MSDN documents.
However, the headers have been released under an MIT license as part of the MAPI Stub Library which now lives on Github.
This bug is to vendor these headers into comm-central and update build code to use them rather than the toolchain artifact currently in use.
Assignee | ||
Comment 1•3 years ago
|
||
The Outlook 2010 Headers are no longer available for download from Microsoft.
The same files are part of the MAPIStubLibrary under MIT license on Github.
Updated•3 years ago
|
Assignee | ||
Comment 2•3 years ago
|
||
Depends on D118278
Assignee | ||
Comment 3•3 years ago
|
||
Depends on D118279
Assignee | ||
Comment 4•3 years ago
|
||
I compared the header files that I downloaded from Github against the ones I previously dowloaded from Microsoft. There are differences; 99% of those differences amount to whitespace. There is an addition to mapidefs.h. That #ifdef
is referring to SAL (MS Source code Annotation Language) and won't have an effect.
Magnus, does this need to run by the licensing team?
--- /home/rob/moz/vs2017_15.8.4/mapiheaders/mapidefs.h 2009-06-02 17:02:36.000000000 -0400
+++ mailnews/mapi/include/mapidefs.h 2021-06-18 17:52:42.912221718 -0400
@@ -94,8 +94,14 @@
typedef char TCHAR;
#endif
+
+#if _SAL_VERSION >= 20
+typedef _Null_terminated_ WCHAR FAR * LPWSTR;
+typedef _Null_terminated_ const WCHAR FAR * LPCWSTR;
+#else
typedef WCHAR FAR * LPWSTR;
typedef const WCHAR FAR * LPCWSTR;
+#endif
typedef TCHAR FAR * LPTSTR;
typedef const TCHAR FAR * LPCTSTR;
typedef BYTE FAR *
Comment 5•3 years ago
|
||
All you need to do is make sure to include the MIT licensing headers.
Pushed by thunderbird@calypsoblue.org:
https://hg.mozilla.org/comm-central/rev/c09c2688606c
Add MAPI headers to source tree. r=mkmelin
https://hg.mozilla.org/comm-central/rev/a6d5679971b6
Use vendored MAPI header files. r=justdave
https://hg.mozilla.org/comm-central/rev/e9f7d186671b
Remove mapiheaders toolchain job. r=justdave
Assignee | ||
Updated•3 years ago
|
Description
•