af062818b47340eef15700d2f0211576ba3506eevboxsync * Copyright 2006 Robert Shearman for CodeWeavers
af062818b47340eef15700d2f0211576ba3506eevboxsync * This library is free software; you can redistribute it and/or
af062818b47340eef15700d2f0211576ba3506eevboxsync * modify it under the terms of the GNU Lesser General Public
af062818b47340eef15700d2f0211576ba3506eevboxsync * License as published by the Free Software Foundation; either
af062818b47340eef15700d2f0211576ba3506eevboxsync * version 2.1 of the License, or (at your option) any later version.
af062818b47340eef15700d2f0211576ba3506eevboxsync * This library is distributed in the hope that it will be useful,
af062818b47340eef15700d2f0211576ba3506eevboxsync * but WITHOUT ANY WARRANTY; without even the implied warranty of
af062818b47340eef15700d2f0211576ba3506eevboxsync * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
af062818b47340eef15700d2f0211576ba3506eevboxsync * Lesser General Public License for more details.
af062818b47340eef15700d2f0211576ba3506eevboxsync * You should have received a copy of the GNU Lesser General Public
af062818b47340eef15700d2f0211576ba3506eevboxsync * License along with this library; if not, write to the Free Software
af062818b47340eef15700d2f0211576ba3506eevboxsync * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
4b9d6701570cb98fd36e209314239d104ec584d3vboxsync * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
4b9d6701570cb98fd36e209314239d104ec584d3vboxsync * other than GPL or LGPL is available it will apply instead, Oracle elects to use only
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * a choice of LGPL license versions is made available with the language indicating
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * that LGPLv2 or any later version may be used, or where a choice of which version
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * of the LGPL is applied is otherwise unspecified.
af062818b47340eef15700d2f0211576ba3506eevboxsyncimport "imnact.idl";
af062818b47340eef15700d2f0211576ba3506eevboxsync/* CLSIDs */
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("DEFINE_GUID(CLSID_IInternetMessageUrl, 0xca30cc91, 0xb1b3, 0x11d0, 0x85, 0xd0, 0x00, 0xc0, 0x4f, 0xd8, 0x5a, 0xb4);")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("DEFINE_GUID(CLSID_ISMTPTransport, 0xfd853ce6, 0x7f86, 0x11d0, 0x82, 0x52, 0x00, 0xc0, 0x4f, 0xd8, 0x5a, 0xb4);")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("DEFINE_GUID(CLSID_ISMTPTransport2, 0xdf2c7eC, 0x3435, 0x11d0, 0x81, 0xd0, 0x0, 0xc0, 0x4f, 0xd8, 0x5a, 0xb4);")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("DEFINE_GUID(CLSID_IPOP3Transport, 0xfd853ce7, 0x7f86, 0x11d0, 0x82, 0x52, 0x00, 0xc0, 0x4f, 0xd8, 0x5a, 0xb4);")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("DEFINE_GUID(CLSID_INNTPTransport, 0xfd853ce8, 0x7f86, 0x11d0, 0x82, 0x52, 0x00, 0xc0, 0x4f, 0xd8, 0x5a, 0xb4);")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("DEFINE_GUID(CLSID_IRASTransport, 0xfd853ce9, 0x7f86, 0x11d0, 0x82, 0x52, 0x00, 0xc0, 0x4f, 0xd8, 0x5a, 0xb4);")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("DEFINE_GUID(CLSID_IRangeList, 0xfd853cea, 0x7f86, 0x11d0, 0x82, 0x52, 0x00, 0xc0, 0x4f, 0xd8, 0x5a, 0xb4);")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("DEFINE_GUID(CLSID_IIMAPTransport, 0xfd853ceb, 0x7f86, 0x11d0, 0x82, 0x52, 0x00, 0xc0, 0x4f, 0xd8, 0x5a, 0xb4);")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("DEFINE_GUID(CLSID_IHTTPMailTransport, 0x5a580c11, 0xe5eb, 0x11d1, 0xa8, 0x6e, 0x00, 0x00, 0xf8, 0x08, 0x4f, 0x96);")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("DEFINE_GUID(CLSID_IPropFindRequest, 0xbb847b8a, 0x054a, 0x11d2, 0xa8, 0x94, 0x00, 0x00, 0xf8, 0x08, 0x4f, 0x96);")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("DEFINE_GUID(CLSID_IPropPatchRequest, 0xea678830, 0x235d, 0x11d2, 0xa8, 0xb6, 0x00, 0x00, 0xf8, 0x08, 0x4f, 0x96);")
af062818b47340eef15700d2f0211576ba3506eevboxsync/* Error Codes */
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define HR_E(n) MAKE_SCODE(SEVERITY_ERROR, FACILITY_INTERNET, n)")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define HR_S(n) MAKE_SCODE(SEVERITY_SUCCESS, FACILITY_INTERNET, n)")
af062818b47340eef15700d2f0211576ba3506eevboxsync/* General Error Codes */
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define IXP_E_LOAD_SICILY_FAILED HR_E(0xCC00)")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define IXP_E_INVALID_CERT_CN HR_E(0xCC01)")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define IXP_E_INVALID_CERT_DATE HR_E(0xCC02)")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define IXP_E_ALREADY_CONNECTED HR_E(0xCC03)")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define IXP_E_NOT_CONNECTED HR_E(0xCC05)")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define IXP_E_INVALID_STATE HR_E(0xCC08)")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define IXP_E_CANT_FIND_HOST HR_E(0xCC0D)")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define IXP_E_FAILED_TO_CONNECT HR_E(0xCC0E)")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define IXP_E_CONNECTION_DROPPED HR_E(0xCC0F)")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define IXP_E_INVALID_ADDRESS HR_E(0xCC10)")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define IXP_E_INVALID_ADDRESS_LIST HR_E(0xCC11)")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define IXP_E_SOCKET_READ_ERROR HR_E(0xCC12)")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define IXP_E_SOCKET_WRITE_ERROR HR_E(0xCC13)")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define IXP_E_SCOKET_INIT_ERROR HR_E(0xCC14)")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define IXP_E_SOCKET_CONNECT_ERROR HR_E(0xCC15)")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define IXP_E_INVALID_ACCOUNT HR_E(0xCC16)")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define IXP_E_SICILY_LOGON_FAILED HR_E(0xCC18)")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define IXP_E_SECURE_CONNECT_FAILED HR_E(0xCC1A)")
af062818b47340eef15700d2f0211576ba3506eevboxsync/* SMTP Failure Statuses */
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define IXP_E_SMTP_RESPONSE_ERROR HR_E(0xCC60)")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define IXP_E_SMTP_UNKNOWN_RESPONSE_CODE HR_E(0xCC61)")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define IXP_E_SMTP_500_SYNTAX_ERROR HR_E(0xCC62)")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define IXP_E_SMTP_501_PARAM_SYNTAX HR_E(0xCC63)")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define IXP_E_SMTP_502_COMMAND_NOTIMPL HR_E(0xCC64)")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define IXP_E_SMTP_503_COMMAND_SEQ HR_E(0xCC65)")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define IXP_E_SMTP_504_COMMAND_PARAM_NOTIMPL HR_E(0xCC66)")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define IXP_E_SMTP_421_NOT_AVAILABLE HR_E(0xCC67)")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define IXP_E_SMTP_450_MAILBOX_BUSY HR_E(0xCC68)")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define IXP_E_SMTP_550_MAILBOX_NOT_FOUND HR_E(0xCC69)")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define IXP_E_SMTP_451_ERROR_PROCESSING HR_E(0xCC6A)")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define IXP_E_SMTP_551_USER_NOT_LOCAL HR_E(0xCC6B)")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define IXP_E_SMTP_452_NO_SYSTEM_STORAGE HR_E(0xCC6C)")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define IXP_E_SMTP_552_STORAGE_OVERFLOW HR_E(0xCC6D)")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define IXP_E_SMTP_553_MAILBOX_NAME_SYNTAX HR_E(0xCC6E)")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define IXP_E_SMTP_554_TRANSACT_FAILED HR_E(0xCC6F)")
af062818b47340eef15700d2f0211576ba3506eevboxsync/* SMTP Success Statuses */
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define IXP_E_SMTP_211_SYSTEM_STATUS HR_S(0xCC70)")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define IXP_E_SMTP_214_HELP_MESSAGE HR_S(0xCC71)")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define IXP_E_SMTP_220_READY HR_S(0xCC72)")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define IXP_E_SMTP_221_CLOSING HR_S(0xCC73)")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define IXP_E_SMTP_250_MAIL_ACTION_OKAY HR_S(0xCC74)")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define IXP_E_SMTP_251_FORWARDING_MAIL HR_S(0xCC75)")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define IXP_E_SMTP_354_START_MAIL_INPUT HR_S(0xCC76)")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define IXP_E_SMTP_CONTINUE HR_S(0xCC77)")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define IXP_E_SMTP_334_AUTH_READY_RESPONSE HR_S(0xCC78)")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define IXP_E_SMTP_245_AUTH_SUCCESS HR_S(0xCC79)")
af062818b47340eef15700d2f0211576ba3506eevboxsync/* More SMTP Failure Statuses */
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define IXP_E_SMTP_REJECTED_SENDER HR_E(0xCC78)")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define IXP_E_SMTP_REJECTED_RECIPIENTS HR_E(0xCC79)")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define IXP_E_SMTP_NO_SENDER HR_E(0xCC7A)")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define IXP_E_SMTP_NO_RECIPIENTS HR_E(0xCC7B)")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define IXP_E_SMTP_530_STARTTLS_REQUIRED HR_E(0xCC7C)")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define IXP_E_SMTP_NO_STARTTLS_SUPPORT HR_E(0xCC7D)")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define IXP_E_SMTP_NO_DSN_SUPPORT HR_E(0xCC7E)")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define IXP_E_SMTP_454_STARTTLS_FAILED HR_E(0xCC7F)")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define ISF_ALWAYSPROMPTFORPASSWORD 0x02")
af062818b47340eef15700d2f0211576ba3506eevboxsync/* for SMTP - send EHLO and use STARTTLS if available: */
af062818b47340eef15700d2f0211576ba3506eevboxsync/* for SMTP - send EHLO and use AUTH if available: */
af062818b47340eef15700d2f0211576ba3506eevboxsyncconst MEMBERINFOFLAGS HTTP_MEMBERINFO_COMMONPROPS = 0x0;
af062818b47340eef15700d2f0211576ba3506eevboxsyncconst MEMBERINFOFLAGS HTTP_MEMBERINFO_FOLDERPROPS = 0x1;
af062818b47340eef15700d2f0211576ba3506eevboxsyncconst MEMBERINFOFLAGS HTTP_MEMBERINFO_MESSAGEPROPS = 0x2;
af062818b47340eef15700d2f0211576ba3506eevboxsyncconst MEMBERINFOFLAGS HTTP_MEMBERINFO_ALLPROPS = HTTP_MEMBERINFO_FOLDERPROPS | HTTP_MEMBERINFO_MESSAGEPROPS;
af062818b47340eef15700d2f0211576ba3506eevboxsync/* FIXME: IDAVNamespaceArbiter, IPropPatchRequest, IPropFindRequest, IPropFindMultiResponse, IPropFindResponse, IHTTPMailCallback, IHTTPMailTransport */
af062818b47340eef15700d2f0211576ba3506eevboxsync/* FIXME: INNTPCallback, INNTPTransport */
af062818b47340eef15700d2f0211576ba3506eevboxsync typedef [switch_type(IMAP_RESPONSE_TYPE)] union tagIMAP_RESPONSE_DATA
af062818b47340eef15700d2f0211576ba3506eevboxsync [case (irtMAILBOX_UPDATE)] MBOX_MSGCOUNT *pmcMsgCount;
af062818b47340eef15700d2f0211576ba3506eevboxsync [case (irtFETCH_BODY)] FETCH_BODY_PART *pFetchBodyPart;
af062818b47340eef15700d2f0211576ba3506eevboxsync [case (irtUPDATE_MSG)] FETCH_CMD_RESULTS *pFetchResults;
af062818b47340eef15700d2f0211576ba3506eevboxsync [case (irtAPPLICABLE_FLAGS, irtPERMANENT_FLAGS)] IMAP_MSGFLAGS imfImapMessageFlags;
af062818b47340eef15700d2f0211576ba3506eevboxsync [case (irtMAILBOX_LISTING)] IMAP_LISTLSUB_RESPONSE illrdMailboxListing;
af062818b47340eef15700d2f0211576ba3506eevboxsync [case (irtMAILBOX_STATUS)] IMAP_STATUS_RESPONSE *pisrStatusResponse;
af062818b47340eef15700d2f0211576ba3506eevboxsync [case (irtAPPEND_PROGRESS)] APPEND_PROGRESS *papAppendProgress;
af062818b47340eef15700d2f0211576ba3506eevboxsync [case (irtUPDATE_MSG_EX)] FETCH_CMD_RESULTS_EX *pFetchResultsEx;
af062818b47340eef15700d2f0211576ba3506eevboxsync [switch_is(irtResponseType)] IMAP_RESPONSE_DATA irdResponseData;
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT OnResponse([in] const IMAP_RESPONSE *pirIMAPResponse);
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("HRESULT WINAPI CreateRASTransport(IRASTransport **ppTransport);")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("HRESULT WINAPI CreateNNTPTransport(INNTPTransport **ppTransport);")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("HRESULT WINAPI CreateIMAPTransport2(IIMAPTransport2 **ppTransport);")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("HRESULT WINAPI CreateRangeList(IRangeList **ppRangeList);")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("HRESULT WINAPI CreateSMTPTransport(ISMTPTransport **ppTransport);")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("HRESULT WINAPI CreatePOP3Transport(IPOP3Transport **ppTransport);")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("HRESULT WINAPI CreateIMAPTransport(IIMAPTransport **ppTransport);")