ReactOS 0.4.15-dev-8127-g6338913
imaptransport.c
Go to the documentation of this file.
1/*
2 * IMAP Transport
3 *
4 * Copyright 2008 Hans Leidekker for CodeWeavers
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 */
20
21#define COBJMACROS
22
23#include <stdarg.h>
24#include <stdio.h>
25
26#include "windef.h"
27#include "winbase.h"
28#include "winnt.h"
29#include "winuser.h"
30#include "objbase.h"
31#include "mimeole.h"
32#include "wine/debug.h"
33
34#include "inetcomm_private.h"
35
37
38typedef struct
39{
43
45{
46 TRACE("(%s, %p)\n", debugstr_guid(riid), ppv);
47
49 IsEqualIID(riid, &IID_IInternetTransport) ||
50 IsEqualIID(riid, &IID_IIMAPTransport))
51 {
52 *ppv = iface;
53 IIMAPTransport_AddRef(iface);
54 return S_OK;
55 }
56 *ppv = NULL;
57 FIXME("no interface for %s\n", debugstr_guid(riid));
58 return E_NOINTERFACE;
59}
60
62{
64 return InterlockedIncrement((LONG *)&This->refs);
65}
66
68{
70 ULONG refs = InterlockedDecrement((LONG *)&This->refs);
71 if (!refs)
72 {
73 TRACE("destroying %p\n", This);
74 if (This->InetTransport.Status != IXP_DISCONNECTED)
76 if (This->InetTransport.pCallback) ITransportCallback_Release(This->InetTransport.pCallback);
78 }
79 return refs;
80}
81
83 LPINETSERVER pInetServer)
84{
86
87 TRACE("(%p)\n", pInetServer);
88 return InternetTransport_GetServerInfo(&This->InetTransport, pInetServer);
89}
90
92{
93 TRACE("()\n");
94 return IXP_IMAP;
95}
96
98 IXPISSTATE isstate)
99{
100 FIXME("(%d): stub\n", isstate);
101 return E_NOTIMPL;
102}
103
105 IIMAPTransport *iface, IImnAccount *pAccount, LPINETSERVER pInetServer)
106{
107 IMAPTransport *This = (IMAPTransport *)iface;
108
109 TRACE("(%p, %p)\n", pAccount, pInetServer);
110 return InternetTransport_InetServerFromAccount(&This->InetTransport, pAccount, pInetServer);
111}
112
114 LPINETSERVER pInetServer, boolean fAuthenticate, boolean fCommandLogging)
115{
116 IMAPTransport *This = (IMAPTransport *)iface;
117 HRESULT hr;
118
119 TRACE("(%p, %s, %s)\n", pInetServer, fAuthenticate ? "TRUE" : "FALSE", fCommandLogging ? "TRUE" : "FALSE");
120
121 hr = InternetTransport_Connect(&This->InetTransport, pInetServer, fAuthenticate, fCommandLogging);
122 return hr;
123}
124
126{
127 IMAPTransport *This = (IMAPTransport *)iface;
128
129 TRACE("()\n");
130 return InternetTransport_HandsOffCallback(&This->InetTransport);
131}
132
134{
135 FIXME("(): stub\n");
136 return E_NOTIMPL;
137}
138
140{
141 IMAPTransport *This = (IMAPTransport *)iface;
142
143 TRACE("()\n");
144 return InternetTransport_DropConnection(&This->InetTransport);
145}
146
148 IXPSTATUS *pCurrentStatus)
149{
150 IMAPTransport *This = (IMAPTransport *)iface;
151
152 TRACE("()\n");
153 return InternetTransport_GetStatus(&This->InetTransport, pCurrentStatus);
154}
155
157 LPSTR pszLogFilePath, IIMAPCallback *pCallback)
158{
159 IMAPTransport *This = (IMAPTransport *)iface;
160
161 TRACE("(%s, %p)\n", debugstr_a(pszLogFilePath), pCallback);
162
163 if (!pCallback)
164 return E_INVALIDARG;
165
166 if (pszLogFilePath)
167 FIXME("not using log file of %s, use Wine debug logging instead\n",
168 debugstr_a(pszLogFilePath));
169
170 IIMAPCallback_AddRef(pCallback);
171 This->InetTransport.pCallback = (ITransportCallback *)pCallback;
172 This->InetTransport.fInitialised = TRUE;
173
174 return S_OK;
175}
176
178 IRangeList **pprlNewRangeList)
179{
180 FIXME("(%p): stub\n", pprlNewRangeList);
181 return E_NOTIMPL;
182}
183
185 DWORD *pdwCapabilityFlags)
186{
187 FIXME("(%p): stub\n", pdwCapabilityFlags);
188 return E_NOTIMPL;
189}
190
192 WPARAM wParam, LPARAM lParam, IIMAPCallback *pCBHandler, LPSTR lpszMailboxName)
193{
194 FIXME("(%ld, %ld, %p, %s): stub\n", wParam, lParam, pCBHandler, debugstr_a(lpszMailboxName));
195 return E_NOTIMPL;
196}
197
199 WPARAM wParam, LPARAM lParam, IIMAPCallback *pCBHandler, LPSTR lpszMailboxName)
200{
201 FIXME("(%ld, %ld, %p, %s): stub\n", wParam, lParam, pCBHandler, debugstr_a(lpszMailboxName));
202 return E_NOTIMPL;
203}
204
206 WPARAM wParam, LPARAM lParam, IIMAPCallback *pCBHandler, LPSTR lpszMailboxName)
207{
208 FIXME("(%ld, %ld, %p, %s): stub\n", wParam, lParam, pCBHandler, debugstr_a(lpszMailboxName));
209 return E_NOTIMPL;
210}
211
213 WPARAM wParam, LPARAM lParam, IIMAPCallback *pCBHandler, LPSTR lpszMailboxName)
214{
215 FIXME("(%ld, %ld, %p, %s): stub\n", wParam, lParam, pCBHandler, debugstr_a(lpszMailboxName));
216 return E_NOTIMPL;
217}
218
220 IIMAPCallback *pCBHandler, LPSTR lpszMailboxName, LPSTR lpszNewMailboxName)
221{
222 FIXME("(%ld, %ld, %p, %s, %s): stub\n", wParam, lParam, pCBHandler,
223 debugstr_a(lpszMailboxName), debugstr_a(lpszNewMailboxName));
224 return E_NOTIMPL;
225}
226
228 WPARAM wParam, LPARAM lParam, IIMAPCallback *pCBHandler, LPSTR lpszMailboxName)
229{
230 FIXME("(%ld, %ld, %p, %s): stub\n", wParam, lParam, pCBHandler, debugstr_a(lpszMailboxName));
231 return E_NOTIMPL;
232}
233
235 WPARAM wParam, LPARAM lParam, IIMAPCallback *pCBHandler, LPSTR lpszMailboxName)
236{
237 FIXME("(%ld, %ld, %p, %s): stub\n", wParam, lParam, pCBHandler, debugstr_a(lpszMailboxName));
238 return E_NOTIMPL;
239}
240
242 IIMAPCallback *pCBHandler, LPSTR lpszMailboxNameReference, LPSTR lpszMailboxNamePattern)
243{
244 FIXME("(%ld, %ld, %p, %s, %s): stub\n", wParam, lParam, pCBHandler,
245 debugstr_a(lpszMailboxNameReference), debugstr_a(lpszMailboxNamePattern));
246 return E_NOTIMPL;
247}
248
250 IIMAPCallback *pCBHandler, LPSTR lpszMailboxNameReference, LPSTR lpszMailboxNamePattern)
251{
252 FIXME("(%ld, %ld, %p, %s, %s): stub\n", wParam, lParam, pCBHandler,
253 debugstr_a(lpszMailboxNameReference), debugstr_a(lpszMailboxNamePattern));
254 return E_NOTIMPL;
255}
256
258 WPARAM wParam, LPARAM lParam, IIMAPCallback *pCBHandler, LPSTR lpszMailboxName,
259 LPSTR lpszMessageFlags, FILETIME ftMessageDateTime, LPSTREAM lpstmMessageToSave)
260{
261 FIXME("(%ld, %ld, %p, %s, %s, %p): stub\n", wParam, lParam, pCBHandler,
262 debugstr_a(lpszMailboxName), debugstr_a(lpszMessageFlags), lpstmMessageToSave);
263 return E_NOTIMPL;
264}
265
268{
269 FIXME("(%ld, %ld, %p): stub\n", wParam, lParam, pCBHandler);
270 return E_NOTIMPL;
271}
272
275{
276 FIXME("(%ld, %ld, %p): stub\n", wParam, lParam, pCBHandler);
277 return E_NOTIMPL;
278}
279
281 WPARAM wParam, LPARAM lParam, IIMAPCallback *pCBHandler, LPSTR lpszSearchCriteria,
282 boolean bReturnUIDs, IRangeList *pMsgRange, boolean bUIDRangeList)
283{
284 FIXME("(%ld, %ld, %p, %s, %d, %p, %d): stub\n", wParam, lParam, pCBHandler,
285 debugstr_a(lpszSearchCriteria), bReturnUIDs, pMsgRange, bUIDRangeList);
286 return E_NOTIMPL;
287}
288
290 IIMAPCallback *pCBHandler, IRangeList *pMsgRange, boolean bUIDMsgRange, LPSTR lpszFetchArgs)
291{
292 FIXME("(%ld, %ld, %p, %p, %d, %s): stub\n", wParam, lParam, pCBHandler, pMsgRange,
293 bUIDMsgRange, debugstr_a(lpszFetchArgs));
294 return E_NOTIMPL;
295}
296
298 IIMAPCallback *pCBHandler, IRangeList *pMsgRange, boolean bUIDRangeList, LPSTR lpszStoreArgs)
299{
300 FIXME("(%ld, %ld, %p, %p, %d, %s): stub\n", wParam, lParam, pCBHandler, pMsgRange,
301 bUIDRangeList, debugstr_a(lpszStoreArgs));
302 return E_NOTIMPL;
303}
304
306 IIMAPCallback *pCBHandler, IRangeList *pMsgRange, boolean bUIDRangeList, LPSTR lpszMailboxName)
307{
308 FIXME("(%ld, %ld, %p, %p, %d, %s): stub\n", wParam, lParam, pCBHandler, pMsgRange,
309 bUIDRangeList, debugstr_a(lpszMailboxName));
310 return E_NOTIMPL;
311}
312
315{
316 FIXME("(%ld, %ld, %p): stub\n", wParam, lParam, pCBHandler);
317 return E_NOTIMPL;
318}
319
321{
322 FIXME("(%u): stub\n", dwSizeOfMbox);
323 return E_NOTIMPL;
324}
325
327 DWORD dwMsgSeqNum, DWORD dwUID)
328{
329 FIXME("(%u, %u): stub\n", dwMsgSeqNum, dwUID);
330 return E_NOTIMPL;
331}
332
334{
335 FIXME("(%u): stub\n", dwDeletedMsgSeqNum);
336 return E_NOTIMPL;
337}
338
340 DWORD *pdwUID)
341{
342 FIXME("(%u, %p): stub\n", dwMsgSeqNum, pdwUID);
343 return E_NOTIMPL;
344}
345
347 DWORD **ppdwMsgSeqNumToUIDArray, DWORD *pdwNumberOfElements)
348{
349 FIXME("(%p, %p): stub\n", ppdwMsgSeqNumToUIDArray, pdwNumberOfElements);
350 return E_NOTIMPL;
351}
352
354{
355 FIXME("(%p): stub\n", pdwHighestMSN);
356 return E_NOTIMPL;
357}
358
360{
361 FIXME("(): stub\n");
362 return E_NOTIMPL;
363}
364
366{
367 FIXME("(%p): stub\n", pCBHandler);
368 return E_NOTIMPL;
369}
370
372 IIMAPCallback *pCBHandler, LPSTR pszMailboxName, LPSTR pszStatusCmdArgs)
373{
374 FIXME("(%ld, %ld, %p, %s, %s): stub\n", wParam, lParam, pCBHandler,
375 debugstr_a(pszMailboxName), debugstr_a(pszStatusCmdArgs));
376 return E_NOTIMPL;
377}
378
379static const IIMAPTransportVtbl IMAPTransportVtbl =
380{
422};
423
425{
426 HRESULT hr;
428 if (!This)
429 return E_OUTOFMEMORY;
430
431 This->InetTransport.u.vtblIMAP = &IMAPTransportVtbl;
432 This->refs = 0;
433 hr = InternetTransport_Init(&This->InetTransport);
434 if (FAILED(hr))
435 {
437 return hr;
438 }
439
440 *ppTransport = (IIMAPTransport *)&This->InetTransport.u.vtblIMAP;
441 IIMAPTransport_AddRef(*ppTransport);
442
443 return S_OK;
444}
445
448{
449 *ppv = NULL;
451 {
452 *ppv = iface;
453 IClassFactory_AddRef(iface);
454 return S_OK;
455 }
456 return E_NOINTERFACE;
457}
458
460{
461 return 2; /* non-heap based object */
462}
463
465{
466 return 1; /* non-heap based object */
467}
468
471{
472 HRESULT hr;
473 IIMAPTransport *pImapTransport;
474
475 TRACE("(%p, %s, %p)\n", pUnk, debugstr_guid(riid), ppv);
476
477 *ppv = NULL;
478
479 if (pUnk)
481
482 hr = CreateIMAPTransport(&pImapTransport);
483 if (FAILED(hr))
484 return hr;
485
486 hr = IIMAPTransport_QueryInterface(pImapTransport, riid, ppv);
487 IIMAPTransport_Release(pImapTransport);
488
489 return hr;
490}
491
493{
494 FIXME("(%d), stub!\n",fLock);
495 return S_OK;
496}
497
498static const IClassFactoryVtbl IMAPTransportCFVtbl =
499{
505};
506static const IClassFactoryVtbl *IMAPTransportCF = &IMAPTransportCFVtbl;
507
509{
510 return IClassFactory_QueryInterface((IClassFactory *)&IMAPTransportCF, riid, ppv);
511}
#define InterlockedIncrement
Definition: armddk.h:53
#define InterlockedDecrement
Definition: armddk.h:52
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
Definition: precomp.h:23
const GUID IID_IUnknown
const GUID IID_IClassFactory
#define FIXME(fmt,...)
Definition: debug.h:114
WPARAM wParam
Definition: combotst.c:138
LPARAM lParam
Definition: combotst.c:139
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
#define E_INVALIDARG
Definition: ddrawi.h:101
#define E_NOTIMPL
Definition: ddrawi.h:99
#define NULL
Definition: types.h:112
#define TRUE
Definition: types.h:120
#define GetProcessHeap()
Definition: compat.h:736
#define HeapAlloc
Definition: compat.h:733
#define HeapFree(x, y, z)
Definition: compat.h:735
static void *static void *static LPDIRECTPLAY IUnknown * pUnk
Definition: dplayx.c:30
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
FxPnpStateCallbackInfo * pCallback
static HRESULT WINAPI IMAPTransport_SetDefaultCBHandler(IIMAPTransport *iface, IIMAPCallback *pCBHandler)
static HRESULT WINAPI IMAPTransport_GetServerInfo(IIMAPTransport *iface, LPINETSERVER pInetServer)
Definition: imaptransport.c:82
static const IClassFactoryVtbl * IMAPTransportCF
static HRESULT WINAPI IMAPTransport_Close(IIMAPTransport *iface, WPARAM wParam, LPARAM lParam, IIMAPCallback *pCBHandler)
static HRESULT WINAPI IMAPTransport_QueryInterface(IIMAPTransport *iface, REFIID riid, void **ppv)
Definition: imaptransport.c:44
static HRESULT WINAPI IMAPTransport_Connect(IIMAPTransport *iface, LPINETSERVER pInetServer, boolean fAuthenticate, boolean fCommandLogging)
HRESULT WINAPI CreateIMAPTransport(IIMAPTransport **ppTransport)
static HRESULT WINAPI IMAPTransport_ResizeMsgSeqNumTable(IIMAPTransport *iface, DWORD dwSizeOfMbox)
static HRESULT WINAPI IMAPTransport_Rename(IIMAPTransport *iface, WPARAM wParam, LPARAM lParam, IIMAPCallback *pCBHandler, LPSTR lpszMailboxName, LPSTR lpszNewMailboxName)
static HRESULT WINAPI IMAPTransport_GetMsgSeqNumToUIDArray(IIMAPTransport *iface, DWORD **ppdwMsgSeqNumToUIDArray, DWORD *pdwNumberOfElements)
static HRESULT WINAPI IMAPTransport_InitNew(IIMAPTransport *iface, LPSTR pszLogFilePath, IIMAPCallback *pCallback)
static HRESULT WINAPI IMAPTransport_Disconnect(IIMAPTransport *iface)
static HRESULT WINAPI IMAPTransport_RemoveSequenceNum(IIMAPTransport *iface, DWORD dwDeletedMsgSeqNum)
static HRESULT WINAPI IMAPTransport_MsgSeqNumToUID(IIMAPTransport *iface, DWORD dwMsgSeqNum, DWORD *pdwUID)
static IXPTYPE WINAPI IMAPTransport_GetIXPType(IIMAPTransport *iface)
Definition: imaptransport.c:91
static HRESULT WINAPI IMAPTransport_Status(IIMAPTransport *iface, WPARAM wParam, LPARAM lParam, IIMAPCallback *pCBHandler, LPSTR pszMailboxName, LPSTR pszStatusCmdArgs)
static HRESULT WINAPI IMAPTransportCF_QueryInterface(IClassFactory *iface, REFIID riid, LPVOID *ppv)
static HRESULT WINAPI IMAPTransport_Delete(IIMAPTransport *iface, WPARAM wParam, LPARAM lParam, IIMAPCallback *pCBHandler, LPSTR lpszMailboxName)
static HRESULT WINAPI IMAPTransport_Copy(IIMAPTransport *iface, WPARAM wParam, LPARAM lParam, IIMAPCallback *pCBHandler, IRangeList *pMsgRange, boolean bUIDRangeList, LPSTR lpszMailboxName)
static HRESULT WINAPI IMAPTransport_GetStatus(IIMAPTransport *iface, IXPSTATUS *pCurrentStatus)
static HRESULT WINAPI IMAPTransport_Lsub(IIMAPTransport *iface, WPARAM wParam, LPARAM lParam, IIMAPCallback *pCBHandler, LPSTR lpszMailboxNameReference, LPSTR lpszMailboxNamePattern)
static HRESULT WINAPI IMAPTransport_List(IIMAPTransport *iface, WPARAM wParam, LPARAM lParam, IIMAPCallback *pCBHandler, LPSTR lpszMailboxNameReference, LPSTR lpszMailboxNamePattern)
static HRESULT WINAPI IMAPTransport_IsState(IIMAPTransport *iface, IXPISSTATE isstate)
Definition: imaptransport.c:97
HRESULT IMAPTransportCF_Create(REFIID riid, LPVOID *ppv)
static ULONG WINAPI IMAPTransportCF_Release(IClassFactory *iface)
static HRESULT WINAPI IMAPTransport_Create(IIMAPTransport *iface, WPARAM wParam, LPARAM lParam, IIMAPCallback *pCBHandler, LPSTR lpszMailboxName)
static ULONG WINAPI IMAPTransport_Release(IIMAPTransport *iface)
Definition: imaptransport.c:67
static HRESULT WINAPI IMAPTransport_Unsubscribe(IIMAPTransport *iface, WPARAM wParam, LPARAM lParam, IIMAPCallback *pCBHandler, LPSTR lpszMailboxName)
static ULONG WINAPI IMAPTransport_AddRef(IIMAPTransport *iface)
Definition: imaptransport.c:61
static HRESULT WINAPI IMAPTransport_GetHighestMsgSeqNum(IIMAPTransport *iface, DWORD *pdwHighestMSN)
static const IClassFactoryVtbl IMAPTransportCFVtbl
static HRESULT WINAPI IMAPTransport_UpdateSeqNumToUID(IIMAPTransport *iface, DWORD dwMsgSeqNum, DWORD dwUID)
static HRESULT WINAPI IMAPTransport_Examine(IIMAPTransport *iface, WPARAM wParam, LPARAM lParam, IIMAPCallback *pCBHandler, LPSTR lpszMailboxName)
static HRESULT WINAPI IMAPTransport_Noop(IIMAPTransport *iface, WPARAM wParam, LPARAM lParam, IIMAPCallback *pCBHandler)
static HRESULT WINAPI IMAPTransport_Select(IIMAPTransport *iface, WPARAM wParam, LPARAM lParam, IIMAPCallback *pCBHandler, LPSTR lpszMailboxName)
static HRESULT WINAPI IMAPTransport_ResetMsgSeqNumToUID(IIMAPTransport *iface)
static HRESULT WINAPI IMAPTransport_Fetch(IIMAPTransport *iface, WPARAM wParam, LPARAM lParam, IIMAPCallback *pCBHandler, IRangeList *pMsgRange, boolean bUIDMsgRange, LPSTR lpszFetchArgs)
static HRESULT WINAPI IMAPTransport_HandsOffCallback(IIMAPTransport *iface)
static HRESULT WINAPI IMAPTransport_Search(IIMAPTransport *iface, WPARAM wParam, LPARAM lParam, IIMAPCallback *pCBHandler, LPSTR lpszSearchCriteria, boolean bReturnUIDs, IRangeList *pMsgRange, boolean bUIDRangeList)
static HRESULT WINAPI IMAPTransport_DropConnection(IIMAPTransport *iface)
static HRESULT WINAPI IMAPTransportCF_LockServer(IClassFactory *iface, BOOL fLock)
static HRESULT WINAPI IMAPTransport_NewIRangeList(IIMAPTransport *iface, IRangeList **pprlNewRangeList)
static HRESULT WINAPI IMAPTransport_Store(IIMAPTransport *iface, WPARAM wParam, LPARAM lParam, IIMAPCallback *pCBHandler, IRangeList *pMsgRange, boolean bUIDRangeList, LPSTR lpszStoreArgs)
static HRESULT WINAPI IMAPTransport_Append(IIMAPTransport *iface, WPARAM wParam, LPARAM lParam, IIMAPCallback *pCBHandler, LPSTR lpszMailboxName, LPSTR lpszMessageFlags, FILETIME ftMessageDateTime, LPSTREAM lpstmMessageToSave)
static HRESULT WINAPI IMAPTransport_Expunge(IIMAPTransport *iface, WPARAM wParam, LPARAM lParam, IIMAPCallback *pCBHandler)
static ULONG WINAPI IMAPTransportCF_AddRef(IClassFactory *iface)
static HRESULT WINAPI IMAPTransport_Subscribe(IIMAPTransport *iface, WPARAM wParam, LPARAM lParam, IIMAPCallback *pCBHandler, LPSTR lpszMailboxName)
static HRESULT WINAPI IMAPTransport_InetServerFromAccount(IIMAPTransport *iface, IImnAccount *pAccount, LPINETSERVER pInetServer)
static const IIMAPTransportVtbl IMAPTransportVtbl
static HRESULT WINAPI IMAPTransport_Capability(IIMAPTransport *iface, DWORD *pdwCapabilityFlags)
static HRESULT WINAPI IMAPTransportCF_CreateInstance(IClassFactory *iface, LPUNKNOWN pUnk, REFIID riid, LPVOID *ppv)
@ IXP_DISCONNECTED
Definition: imnxport.idl:253
enum tagIXPTYPE IXPTYPE
@ IXP_IMAP
Definition: imnxport.idl:238
enum tagIXPSTATUS IXPSTATUS
REFIID riid
Definition: atlbase.h:39
REFIID LPVOID * ppv
Definition: atlbase.h:39
HRESULT InternetTransport_InetServerFromAccount(InternetTransport *This, IImnAccount *pAccount, LPINETSERVER pInetServer) DECLSPEC_HIDDEN
HRESULT InternetTransport_DropConnection(InternetTransport *This) DECLSPEC_HIDDEN
HRESULT InternetTransport_GetServerInfo(InternetTransport *This, LPINETSERVER pInetServer) DECLSPEC_HIDDEN
HRESULT InternetTransport_GetStatus(InternetTransport *This, IXPSTATUS *pCurrentStatus) DECLSPEC_HIDDEN
HRESULT InternetTransport_Init(InternetTransport *This) DECLSPEC_HIDDEN
HRESULT InternetTransport_HandsOffCallback(InternetTransport *This) DECLSPEC_HIDDEN
HRESULT InternetTransport_Connect(InternetTransport *This, LPINETSERVER pInetServer, boolean fAuthenticate, boolean fCommandLogging) DECLSPEC_HIDDEN
#define S_OK
Definition: intsafe.h:52
#define FAILED(hr)
Definition: intsafe.h:51
#define debugstr_guid
Definition: kernel32.h:35
#define debugstr_a
Definition: kernel32.h:31
static LPUNKNOWN
Definition: ndr_ole.c:49
interface IStream * LPSTREAM
Definition: objfwd.h:10
long LONG
Definition: pedump.c:60
#define IsEqualIID(riid1, riid2)
Definition: guiddef.h:95
#define REFIID
Definition: guiddef.h:118
HRESULT hr
Definition: shlfolder.c:183
#define TRACE(s)
Definition: solgame.cpp:4
InternetTransport InetTransport
Definition: imaptransport.c:40
uint32_t ULONG
Definition: typedefs.h:59
LONG_PTR LPARAM
Definition: windef.h:208
UINT_PTR WPARAM
Definition: windef.h:207
#define WINAPI
Definition: msvc.h:6
#define E_NOINTERFACE
Definition: winerror.h:2364
#define CLASS_E_NOAGGREGATION
Definition: winerror.h:2662
char * LPSTR
Definition: xmlstorage.h:182