ReactOS  0.4.15-dev-1377-ga59cecd
imaptransport.c File Reference
#include <stdarg.h>
#include <stdio.h>
#include "windef.h"
#include "winbase.h"
#include "winnt.h"
#include "winuser.h"
#include "objbase.h"
#include "mimeole.h"
#include "wine/debug.h"
#include "inetcomm_private.h"
Include dependency graph for imaptransport.c:

Go to the source code of this file.

Classes

struct  IMAPTransport
 

Macros

#define COBJMACROS
 

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (inetcomm)
 
static HRESULT WINAPI IMAPTransport_QueryInterface (IIMAPTransport *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI IMAPTransport_AddRef (IIMAPTransport *iface)
 
static ULONG WINAPI IMAPTransport_Release (IIMAPTransport *iface)
 
static HRESULT WINAPI IMAPTransport_GetServerInfo (IIMAPTransport *iface, LPINETSERVER pInetServer)
 
static IXPTYPE WINAPI IMAPTransport_GetIXPType (IIMAPTransport *iface)
 
static HRESULT WINAPI IMAPTransport_IsState (IIMAPTransport *iface, IXPISSTATE isstate)
 
static HRESULT WINAPI IMAPTransport_InetServerFromAccount (IIMAPTransport *iface, IImnAccount *pAccount, LPINETSERVER pInetServer)
 
static HRESULT WINAPI IMAPTransport_Connect (IIMAPTransport *iface, LPINETSERVER pInetServer, boolean fAuthenticate, boolean fCommandLogging)
 
static HRESULT WINAPI IMAPTransport_HandsOffCallback (IIMAPTransport *iface)
 
static HRESULT WINAPI IMAPTransport_Disconnect (IIMAPTransport *iface)
 
static HRESULT WINAPI IMAPTransport_DropConnection (IIMAPTransport *iface)
 
static HRESULT WINAPI IMAPTransport_GetStatus (IIMAPTransport *iface, IXPSTATUS *pCurrentStatus)
 
static HRESULT WINAPI IMAPTransport_InitNew (IIMAPTransport *iface, LPSTR pszLogFilePath, IIMAPCallback *pCallback)
 
static HRESULT WINAPI IMAPTransport_NewIRangeList (IIMAPTransport *iface, IRangeList **pprlNewRangeList)
 
static HRESULT WINAPI IMAPTransport_Capability (IIMAPTransport *iface, DWORD *pdwCapabilityFlags)
 
static HRESULT WINAPI IMAPTransport_Select (IIMAPTransport *iface, WPARAM wParam, LPARAM lParam, IIMAPCallback *pCBHandler, LPSTR lpszMailboxName)
 
static HRESULT WINAPI IMAPTransport_Examine (IIMAPTransport *iface, WPARAM wParam, LPARAM lParam, IIMAPCallback *pCBHandler, LPSTR lpszMailboxName)
 
static HRESULT WINAPI IMAPTransport_Create (IIMAPTransport *iface, WPARAM wParam, LPARAM lParam, IIMAPCallback *pCBHandler, LPSTR lpszMailboxName)
 
static HRESULT WINAPI IMAPTransport_Delete (IIMAPTransport *iface, WPARAM wParam, LPARAM lParam, IIMAPCallback *pCBHandler, LPSTR lpszMailboxName)
 
static HRESULT WINAPI IMAPTransport_Rename (IIMAPTransport *iface, WPARAM wParam, LPARAM lParam, IIMAPCallback *pCBHandler, LPSTR lpszMailboxName, LPSTR lpszNewMailboxName)
 
static HRESULT WINAPI IMAPTransport_Subscribe (IIMAPTransport *iface, WPARAM wParam, LPARAM lParam, IIMAPCallback *pCBHandler, LPSTR lpszMailboxName)
 
static HRESULT WINAPI IMAPTransport_Unsubscribe (IIMAPTransport *iface, WPARAM wParam, LPARAM lParam, IIMAPCallback *pCBHandler, LPSTR lpszMailboxName)
 
static HRESULT WINAPI IMAPTransport_List (IIMAPTransport *iface, WPARAM wParam, LPARAM lParam, IIMAPCallback *pCBHandler, LPSTR lpszMailboxNameReference, LPSTR lpszMailboxNamePattern)
 
static HRESULT WINAPI IMAPTransport_Lsub (IIMAPTransport *iface, WPARAM wParam, LPARAM lParam, IIMAPCallback *pCBHandler, LPSTR lpszMailboxNameReference, LPSTR lpszMailboxNamePattern)
 
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_Close (IIMAPTransport *iface, WPARAM wParam, LPARAM lParam, IIMAPCallback *pCBHandler)
 
static HRESULT WINAPI IMAPTransport_Expunge (IIMAPTransport *iface, WPARAM wParam, LPARAM lParam, IIMAPCallback *pCBHandler)
 
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_Fetch (IIMAPTransport *iface, WPARAM wParam, LPARAM lParam, IIMAPCallback *pCBHandler, IRangeList *pMsgRange, boolean bUIDMsgRange, LPSTR lpszFetchArgs)
 
static HRESULT WINAPI IMAPTransport_Store (IIMAPTransport *iface, WPARAM wParam, LPARAM lParam, IIMAPCallback *pCBHandler, IRangeList *pMsgRange, boolean bUIDRangeList, LPSTR lpszStoreArgs)
 
static HRESULT WINAPI IMAPTransport_Copy (IIMAPTransport *iface, WPARAM wParam, LPARAM lParam, IIMAPCallback *pCBHandler, IRangeList *pMsgRange, boolean bUIDRangeList, LPSTR lpszMailboxName)
 
static HRESULT WINAPI IMAPTransport_Noop (IIMAPTransport *iface, WPARAM wParam, LPARAM lParam, IIMAPCallback *pCBHandler)
 
static HRESULT WINAPI IMAPTransport_ResizeMsgSeqNumTable (IIMAPTransport *iface, DWORD dwSizeOfMbox)
 
static HRESULT WINAPI IMAPTransport_UpdateSeqNumToUID (IIMAPTransport *iface, DWORD dwMsgSeqNum, DWORD dwUID)
 
static HRESULT WINAPI IMAPTransport_RemoveSequenceNum (IIMAPTransport *iface, DWORD dwDeletedMsgSeqNum)
 
static HRESULT WINAPI IMAPTransport_MsgSeqNumToUID (IIMAPTransport *iface, DWORD dwMsgSeqNum, DWORD *pdwUID)
 
static HRESULT WINAPI IMAPTransport_GetMsgSeqNumToUIDArray (IIMAPTransport *iface, DWORD **ppdwMsgSeqNumToUIDArray, DWORD *pdwNumberOfElements)
 
static HRESULT WINAPI IMAPTransport_GetHighestMsgSeqNum (IIMAPTransport *iface, DWORD *pdwHighestMSN)
 
static HRESULT WINAPI IMAPTransport_ResetMsgSeqNumToUID (IIMAPTransport *iface)
 
static HRESULT WINAPI IMAPTransport_SetDefaultCBHandler (IIMAPTransport *iface, IIMAPCallback *pCBHandler)
 
static HRESULT WINAPI IMAPTransport_Status (IIMAPTransport *iface, WPARAM wParam, LPARAM lParam, IIMAPCallback *pCBHandler, LPSTR pszMailboxName, LPSTR pszStatusCmdArgs)
 
HRESULT WINAPI CreateIMAPTransport (IIMAPTransport **ppTransport)
 
static HRESULT WINAPI IMAPTransportCF_QueryInterface (IClassFactory *iface, REFIID riid, LPVOID *ppv)
 
static ULONG WINAPI IMAPTransportCF_AddRef (IClassFactory *iface)
 
static ULONG WINAPI IMAPTransportCF_Release (IClassFactory *iface)
 
static HRESULT WINAPI IMAPTransportCF_CreateInstance (IClassFactory *iface, LPUNKNOWN pUnk, REFIID riid, LPVOID *ppv)
 
static HRESULT WINAPI IMAPTransportCF_LockServer (IClassFactory *iface, BOOL fLock)
 
HRESULT IMAPTransportCF_Create (REFIID riid, LPVOID *ppv)
 

Variables

static const IIMAPTransportVtbl IMAPTransportVtbl
 
static const IClassFactoryVtbl IMAPTransportCFVtbl
 
static const IClassFactoryVtbl * IMAPTransportCF = &IMAPTransportCFVtbl
 

Macro Definition Documentation

◆ COBJMACROS

#define COBJMACROS

Definition at line 21 of file imaptransport.c.

Function Documentation

◆ CreateIMAPTransport()

HRESULT WINAPI CreateIMAPTransport ( IIMAPTransport **  ppTransport)

Definition at line 424 of file imaptransport.c.

425 {
426  HRESULT hr;
427  IMAPTransport *This = HeapAlloc(GetProcessHeap(), 0, sizeof(*This));
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 }
HRESULT hr
Definition: shlfolder.c:183
static const IIMAPTransportVtbl IMAPTransportVtbl
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
#define GetProcessHeap()
Definition: compat.h:595
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
LONG HRESULT
Definition: typedefs.h:79
#define S_OK
Definition: intsafe.h:51
HRESULT InternetTransport_Init(InternetTransport *This) DECLSPEC_HIDDEN
#define HeapFree(x, y, z)
Definition: compat.h:594

Referenced by IMAPTransportCF_CreateInstance().

◆ IMAPTransport_AddRef()

static ULONG WINAPI IMAPTransport_AddRef ( IIMAPTransport iface)
static

Definition at line 61 of file imaptransport.c.

62 {
63  IMAPTransport *This = (IMAPTransport *)iface;
64  return InterlockedIncrement((LONG *)&This->refs);
65 }
long LONG
Definition: pedump.c:60
#define InterlockedIncrement
Definition: armddk.h:53

◆ IMAPTransport_Append()

static HRESULT WINAPI IMAPTransport_Append ( IIMAPTransport iface,
WPARAM  wParam,
LPARAM  lParam,
IIMAPCallback pCBHandler,
LPSTR  lpszMailboxName,
LPSTR  lpszMessageFlags,
FILETIME  ftMessageDateTime,
LPSTREAM  lpstmMessageToSave 
)
static

Definition at line 257 of file imaptransport.c.

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 }
WPARAM wParam
Definition: combotst.c:138
#define FIXME(fmt,...)
Definition: debug.h:111
#define debugstr_a
Definition: kernel32.h:31
#define E_NOTIMPL
Definition: ddrawi.h:99
LPARAM lParam
Definition: combotst.c:139

◆ IMAPTransport_Capability()

static HRESULT WINAPI IMAPTransport_Capability ( IIMAPTransport iface,
DWORD pdwCapabilityFlags 
)
static

Definition at line 184 of file imaptransport.c.

186 {
187  FIXME("(%p): stub\n", pdwCapabilityFlags);
188  return E_NOTIMPL;
189 }
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ IMAPTransport_Close()

static HRESULT WINAPI IMAPTransport_Close ( IIMAPTransport iface,
WPARAM  wParam,
LPARAM  lParam,
IIMAPCallback pCBHandler 
)
static

Definition at line 266 of file imaptransport.c.

268 {
269  FIXME("(%ld, %ld, %p): stub\n", wParam, lParam, pCBHandler);
270  return E_NOTIMPL;
271 }
WPARAM wParam
Definition: combotst.c:138
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99
LPARAM lParam
Definition: combotst.c:139

◆ IMAPTransport_Connect()

static HRESULT WINAPI IMAPTransport_Connect ( IIMAPTransport iface,
LPINETSERVER  pInetServer,
boolean  fAuthenticate,
boolean  fCommandLogging 
)
static

Definition at line 113 of file imaptransport.c.

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 }
HRESULT hr
Definition: shlfolder.c:183
#define TRACE(s)
Definition: solgame.cpp:4
HRESULT InternetTransport_Connect(InternetTransport *This, LPINETSERVER pInetServer, boolean fAuthenticate, boolean fCommandLogging) DECLSPEC_HIDDEN
LONG HRESULT
Definition: typedefs.h:79

◆ IMAPTransport_Copy()

static HRESULT WINAPI IMAPTransport_Copy ( IIMAPTransport iface,
WPARAM  wParam,
LPARAM  lParam,
IIMAPCallback pCBHandler,
IRangeList pMsgRange,
boolean  bUIDRangeList,
LPSTR  lpszMailboxName 
)
static

Definition at line 305 of file imaptransport.c.

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 }
WPARAM wParam
Definition: combotst.c:138
#define FIXME(fmt,...)
Definition: debug.h:111
#define debugstr_a
Definition: kernel32.h:31
#define E_NOTIMPL
Definition: ddrawi.h:99
LPARAM lParam
Definition: combotst.c:139

◆ IMAPTransport_Create()

static HRESULT WINAPI IMAPTransport_Create ( IIMAPTransport iface,
WPARAM  wParam,
LPARAM  lParam,
IIMAPCallback pCBHandler,
LPSTR  lpszMailboxName 
)
static

Definition at line 205 of file imaptransport.c.

207 {
208  FIXME("(%ld, %ld, %p, %s): stub\n", wParam, lParam, pCBHandler, debugstr_a(lpszMailboxName));
209  return E_NOTIMPL;
210 }
WPARAM wParam
Definition: combotst.c:138
#define FIXME(fmt,...)
Definition: debug.h:111
#define debugstr_a
Definition: kernel32.h:31
#define E_NOTIMPL
Definition: ddrawi.h:99
LPARAM lParam
Definition: combotst.c:139

◆ IMAPTransport_Delete()

static HRESULT WINAPI IMAPTransport_Delete ( IIMAPTransport iface,
WPARAM  wParam,
LPARAM  lParam,
IIMAPCallback pCBHandler,
LPSTR  lpszMailboxName 
)
static

Definition at line 212 of file imaptransport.c.

214 {
215  FIXME("(%ld, %ld, %p, %s): stub\n", wParam, lParam, pCBHandler, debugstr_a(lpszMailboxName));
216  return E_NOTIMPL;
217 }
WPARAM wParam
Definition: combotst.c:138
#define FIXME(fmt,...)
Definition: debug.h:111
#define debugstr_a
Definition: kernel32.h:31
#define E_NOTIMPL
Definition: ddrawi.h:99
LPARAM lParam
Definition: combotst.c:139

◆ IMAPTransport_Disconnect()

static HRESULT WINAPI IMAPTransport_Disconnect ( IIMAPTransport iface)
static

Definition at line 133 of file imaptransport.c.

134 {
135  FIXME("(): stub\n");
136  return E_NOTIMPL;
137 }
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ IMAPTransport_DropConnection()

static HRESULT WINAPI IMAPTransport_DropConnection ( IIMAPTransport iface)
static

Definition at line 139 of file imaptransport.c.

140 {
141  IMAPTransport *This = (IMAPTransport *)iface;
142 
143  TRACE("()\n");
144  return InternetTransport_DropConnection(&This->InetTransport);
145 }
#define TRACE(s)
Definition: solgame.cpp:4
HRESULT InternetTransport_DropConnection(InternetTransport *This) DECLSPEC_HIDDEN

◆ IMAPTransport_Examine()

static HRESULT WINAPI IMAPTransport_Examine ( IIMAPTransport iface,
WPARAM  wParam,
LPARAM  lParam,
IIMAPCallback pCBHandler,
LPSTR  lpszMailboxName 
)
static

Definition at line 198 of file imaptransport.c.

200 {
201  FIXME("(%ld, %ld, %p, %s): stub\n", wParam, lParam, pCBHandler, debugstr_a(lpszMailboxName));
202  return E_NOTIMPL;
203 }
WPARAM wParam
Definition: combotst.c:138
#define FIXME(fmt,...)
Definition: debug.h:111
#define debugstr_a
Definition: kernel32.h:31
#define E_NOTIMPL
Definition: ddrawi.h:99
LPARAM lParam
Definition: combotst.c:139

◆ IMAPTransport_Expunge()

static HRESULT WINAPI IMAPTransport_Expunge ( IIMAPTransport iface,
WPARAM  wParam,
LPARAM  lParam,
IIMAPCallback pCBHandler 
)
static

Definition at line 273 of file imaptransport.c.

275 {
276  FIXME("(%ld, %ld, %p): stub\n", wParam, lParam, pCBHandler);
277  return E_NOTIMPL;
278 }
WPARAM wParam
Definition: combotst.c:138
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99
LPARAM lParam
Definition: combotst.c:139

◆ IMAPTransport_Fetch()

static HRESULT WINAPI IMAPTransport_Fetch ( IIMAPTransport iface,
WPARAM  wParam,
LPARAM  lParam,
IIMAPCallback pCBHandler,
IRangeList pMsgRange,
boolean  bUIDMsgRange,
LPSTR  lpszFetchArgs 
)
static

Definition at line 289 of file imaptransport.c.

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 }
WPARAM wParam
Definition: combotst.c:138
#define FIXME(fmt,...)
Definition: debug.h:111
#define debugstr_a
Definition: kernel32.h:31
#define E_NOTIMPL
Definition: ddrawi.h:99
LPARAM lParam
Definition: combotst.c:139

◆ IMAPTransport_GetHighestMsgSeqNum()

static HRESULT WINAPI IMAPTransport_GetHighestMsgSeqNum ( IIMAPTransport iface,
DWORD pdwHighestMSN 
)
static

Definition at line 353 of file imaptransport.c.

354 {
355  FIXME("(%p): stub\n", pdwHighestMSN);
356  return E_NOTIMPL;
357 }
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ IMAPTransport_GetIXPType()

static IXPTYPE WINAPI IMAPTransport_GetIXPType ( IIMAPTransport iface)
static

Definition at line 91 of file imaptransport.c.

92 {
93  TRACE("()\n");
94  return IXP_IMAP;
95 }
#define TRACE(s)
Definition: solgame.cpp:4

◆ IMAPTransport_GetMsgSeqNumToUIDArray()

static HRESULT WINAPI IMAPTransport_GetMsgSeqNumToUIDArray ( IIMAPTransport iface,
DWORD **  ppdwMsgSeqNumToUIDArray,
DWORD pdwNumberOfElements 
)
static

Definition at line 346 of file imaptransport.c.

348 {
349  FIXME("(%p, %p): stub\n", ppdwMsgSeqNumToUIDArray, pdwNumberOfElements);
350  return E_NOTIMPL;
351 }
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ IMAPTransport_GetServerInfo()

static HRESULT WINAPI IMAPTransport_GetServerInfo ( IIMAPTransport iface,
LPINETSERVER  pInetServer 
)
static

Definition at line 82 of file imaptransport.c.

84 {
85  IMAPTransport *This = (IMAPTransport *)iface;
86 
87  TRACE("(%p)\n", pInetServer);
88  return InternetTransport_GetServerInfo(&This->InetTransport, pInetServer);
89 }
#define TRACE(s)
Definition: solgame.cpp:4
HRESULT InternetTransport_GetServerInfo(InternetTransport *This, LPINETSERVER pInetServer) DECLSPEC_HIDDEN

◆ IMAPTransport_GetStatus()

static HRESULT WINAPI IMAPTransport_GetStatus ( IIMAPTransport iface,
IXPSTATUS pCurrentStatus 
)
static

Definition at line 147 of file imaptransport.c.

149 {
150  IMAPTransport *This = (IMAPTransport *)iface;
151 
152  TRACE("()\n");
153  return InternetTransport_GetStatus(&This->InetTransport, pCurrentStatus);
154 }
HRESULT InternetTransport_GetStatus(InternetTransport *This, IXPSTATUS *pCurrentStatus) DECLSPEC_HIDDEN
#define TRACE(s)
Definition: solgame.cpp:4

◆ IMAPTransport_HandsOffCallback()

static HRESULT WINAPI IMAPTransport_HandsOffCallback ( IIMAPTransport iface)
static

Definition at line 125 of file imaptransport.c.

126 {
127  IMAPTransport *This = (IMAPTransport *)iface;
128 
129  TRACE("()\n");
130  return InternetTransport_HandsOffCallback(&This->InetTransport);
131 }
HRESULT InternetTransport_HandsOffCallback(InternetTransport *This) DECLSPEC_HIDDEN
#define TRACE(s)
Definition: solgame.cpp:4

◆ IMAPTransport_InetServerFromAccount()

static HRESULT WINAPI IMAPTransport_InetServerFromAccount ( IIMAPTransport iface,
IImnAccount pAccount,
LPINETSERVER  pInetServer 
)
static

Definition at line 104 of file imaptransport.c.

106 {
107  IMAPTransport *This = (IMAPTransport *)iface;
108 
109  TRACE("(%p, %p)\n", pAccount, pInetServer);
110  return InternetTransport_InetServerFromAccount(&This->InetTransport, pAccount, pInetServer);
111 }
HRESULT InternetTransport_InetServerFromAccount(InternetTransport *This, IImnAccount *pAccount, LPINETSERVER pInetServer) DECLSPEC_HIDDEN
#define TRACE(s)
Definition: solgame.cpp:4

◆ IMAPTransport_InitNew()

static HRESULT WINAPI IMAPTransport_InitNew ( IIMAPTransport iface,
LPSTR  pszLogFilePath,
IIMAPCallback pCallback 
)
static

Definition at line 156 of file imaptransport.c.

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 }
#define TRUE
Definition: types.h:120
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_INVALIDARG
Definition: ddrawi.h:101
#define TRACE(s)
Definition: solgame.cpp:4
#define debugstr_a
Definition: kernel32.h:31
#define S_OK
Definition: intsafe.h:51
FxPnpStateCallbackInfo * pCallback

◆ IMAPTransport_IsState()

static HRESULT WINAPI IMAPTransport_IsState ( IIMAPTransport iface,
IXPISSTATE  isstate 
)
static

Definition at line 97 of file imaptransport.c.

99 {
100  FIXME("(%d): stub\n", isstate);
101  return E_NOTIMPL;
102 }
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ IMAPTransport_List()

static HRESULT WINAPI IMAPTransport_List ( IIMAPTransport iface,
WPARAM  wParam,
LPARAM  lParam,
IIMAPCallback pCBHandler,
LPSTR  lpszMailboxNameReference,
LPSTR  lpszMailboxNamePattern 
)
static

Definition at line 241 of file imaptransport.c.

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 }
WPARAM wParam
Definition: combotst.c:138
#define FIXME(fmt,...)
Definition: debug.h:111
#define debugstr_a
Definition: kernel32.h:31
#define E_NOTIMPL
Definition: ddrawi.h:99
LPARAM lParam
Definition: combotst.c:139

◆ IMAPTransport_Lsub()

static HRESULT WINAPI IMAPTransport_Lsub ( IIMAPTransport iface,
WPARAM  wParam,
LPARAM  lParam,
IIMAPCallback pCBHandler,
LPSTR  lpszMailboxNameReference,
LPSTR  lpszMailboxNamePattern 
)
static

Definition at line 249 of file imaptransport.c.

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 }
WPARAM wParam
Definition: combotst.c:138
#define FIXME(fmt,...)
Definition: debug.h:111
#define debugstr_a
Definition: kernel32.h:31
#define E_NOTIMPL
Definition: ddrawi.h:99
LPARAM lParam
Definition: combotst.c:139

◆ IMAPTransport_MsgSeqNumToUID()

static HRESULT WINAPI IMAPTransport_MsgSeqNumToUID ( IIMAPTransport iface,
DWORD  dwMsgSeqNum,
DWORD pdwUID 
)
static

Definition at line 339 of file imaptransport.c.

341 {
342  FIXME("(%u, %p): stub\n", dwMsgSeqNum, pdwUID);
343  return E_NOTIMPL;
344 }
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ IMAPTransport_NewIRangeList()

static HRESULT WINAPI IMAPTransport_NewIRangeList ( IIMAPTransport iface,
IRangeList **  pprlNewRangeList 
)
static

Definition at line 177 of file imaptransport.c.

179 {
180  FIXME("(%p): stub\n", pprlNewRangeList);
181  return E_NOTIMPL;
182 }
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ IMAPTransport_Noop()

static HRESULT WINAPI IMAPTransport_Noop ( IIMAPTransport iface,
WPARAM  wParam,
LPARAM  lParam,
IIMAPCallback pCBHandler 
)
static

Definition at line 313 of file imaptransport.c.

315 {
316  FIXME("(%ld, %ld, %p): stub\n", wParam, lParam, pCBHandler);
317  return E_NOTIMPL;
318 }
WPARAM wParam
Definition: combotst.c:138
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99
LPARAM lParam
Definition: combotst.c:139

◆ IMAPTransport_QueryInterface()

static HRESULT WINAPI IMAPTransport_QueryInterface ( IIMAPTransport iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 44 of file imaptransport.c.

45 {
46  TRACE("(%s, %p)\n", debugstr_guid(riid), ppv);
47 
48  if (IsEqualIID(riid, &IID_IUnknown) ||
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 }
#define E_NOINTERFACE
Definition: winerror.h:2364
REFIID riid
Definition: precomp.h:44
REFIID LPVOID * ppv
Definition: atlbase.h:39
#define FIXME(fmt,...)
Definition: debug.h:111
#define debugstr_guid
Definition: kernel32.h:35
#define TRACE(s)
Definition: solgame.cpp:4
const GUID IID_IUnknown
#define S_OK
Definition: intsafe.h:51
#define NULL
Definition: types.h:112
#define IsEqualIID(riid1, riid2)
Definition: guiddef.h:95

◆ IMAPTransport_Release()

static ULONG WINAPI IMAPTransport_Release ( IIMAPTransport iface)
static

Definition at line 67 of file imaptransport.c.

68 {
69  IMAPTransport *This = (IMAPTransport *)iface;
70  ULONG refs = InterlockedDecrement((LONG *)&This->refs);
71  if (!refs)
72  {
73  TRACE("destroying %p\n", This);
74  if (This->InetTransport.Status != IXP_DISCONNECTED)
75  InternetTransport_DropConnection(&This->InetTransport);
76  if (This->InetTransport.pCallback) ITransportCallback_Release(This->InetTransport.pCallback);
78  }
79  return refs;
80 }
long LONG
Definition: pedump.c:60
#define TRACE(s)
Definition: solgame.cpp:4
#define GetProcessHeap()
Definition: compat.h:595
#define InterlockedDecrement
Definition: armddk.h:52
HRESULT InternetTransport_DropConnection(InternetTransport *This) DECLSPEC_HIDDEN
unsigned int ULONG
Definition: retypes.h:1
#define HeapFree(x, y, z)
Definition: compat.h:594

◆ IMAPTransport_RemoveSequenceNum()

static HRESULT WINAPI IMAPTransport_RemoveSequenceNum ( IIMAPTransport iface,
DWORD  dwDeletedMsgSeqNum 
)
static

Definition at line 333 of file imaptransport.c.

334 {
335  FIXME("(%u): stub\n", dwDeletedMsgSeqNum);
336  return E_NOTIMPL;
337 }
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ IMAPTransport_Rename()

static HRESULT WINAPI IMAPTransport_Rename ( IIMAPTransport iface,
WPARAM  wParam,
LPARAM  lParam,
IIMAPCallback pCBHandler,
LPSTR  lpszMailboxName,
LPSTR  lpszNewMailboxName 
)
static

Definition at line 219 of file imaptransport.c.

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 }
WPARAM wParam
Definition: combotst.c:138
#define FIXME(fmt,...)
Definition: debug.h:111
#define debugstr_a
Definition: kernel32.h:31
#define E_NOTIMPL
Definition: ddrawi.h:99
LPARAM lParam
Definition: combotst.c:139

◆ IMAPTransport_ResetMsgSeqNumToUID()

static HRESULT WINAPI IMAPTransport_ResetMsgSeqNumToUID ( IIMAPTransport iface)
static

Definition at line 359 of file imaptransport.c.

360 {
361  FIXME("(): stub\n");
362  return E_NOTIMPL;
363 }
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ IMAPTransport_ResizeMsgSeqNumTable()

static HRESULT WINAPI IMAPTransport_ResizeMsgSeqNumTable ( IIMAPTransport iface,
DWORD  dwSizeOfMbox 
)
static

Definition at line 320 of file imaptransport.c.

321 {
322  FIXME("(%u): stub\n", dwSizeOfMbox);
323  return E_NOTIMPL;
324 }
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ IMAPTransport_Search()

static HRESULT WINAPI IMAPTransport_Search ( IIMAPTransport iface,
WPARAM  wParam,
LPARAM  lParam,
IIMAPCallback pCBHandler,
LPSTR  lpszSearchCriteria,
boolean  bReturnUIDs,
IRangeList pMsgRange,
boolean  bUIDRangeList 
)
static

Definition at line 280 of file imaptransport.c.

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 }
WPARAM wParam
Definition: combotst.c:138
#define FIXME(fmt,...)
Definition: debug.h:111
#define debugstr_a
Definition: kernel32.h:31
#define E_NOTIMPL
Definition: ddrawi.h:99
LPARAM lParam
Definition: combotst.c:139

◆ IMAPTransport_Select()

static HRESULT WINAPI IMAPTransport_Select ( IIMAPTransport iface,
WPARAM  wParam,
LPARAM  lParam,
IIMAPCallback pCBHandler,
LPSTR  lpszMailboxName 
)
static

Definition at line 191 of file imaptransport.c.

193 {
194  FIXME("(%ld, %ld, %p, %s): stub\n", wParam, lParam, pCBHandler, debugstr_a(lpszMailboxName));
195  return E_NOTIMPL;
196 }
WPARAM wParam
Definition: combotst.c:138
#define FIXME(fmt,...)
Definition: debug.h:111
#define debugstr_a
Definition: kernel32.h:31
#define E_NOTIMPL
Definition: ddrawi.h:99
LPARAM lParam
Definition: combotst.c:139

◆ IMAPTransport_SetDefaultCBHandler()

static HRESULT WINAPI IMAPTransport_SetDefaultCBHandler ( IIMAPTransport iface,
IIMAPCallback pCBHandler 
)
static

Definition at line 365 of file imaptransport.c.

366 {
367  FIXME("(%p): stub\n", pCBHandler);
368  return E_NOTIMPL;
369 }
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ IMAPTransport_Status()

static HRESULT WINAPI IMAPTransport_Status ( IIMAPTransport iface,
WPARAM  wParam,
LPARAM  lParam,
IIMAPCallback pCBHandler,
LPSTR  pszMailboxName,
LPSTR  pszStatusCmdArgs 
)
static

Definition at line 371 of file imaptransport.c.

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 }
WPARAM wParam
Definition: combotst.c:138
#define FIXME(fmt,...)
Definition: debug.h:111
#define debugstr_a
Definition: kernel32.h:31
#define E_NOTIMPL
Definition: ddrawi.h:99
LPARAM lParam
Definition: combotst.c:139

◆ IMAPTransport_Store()

static HRESULT WINAPI IMAPTransport_Store ( IIMAPTransport iface,
WPARAM  wParam,
LPARAM  lParam,
IIMAPCallback pCBHandler,
IRangeList pMsgRange,
boolean  bUIDRangeList,
LPSTR  lpszStoreArgs 
)
static

Definition at line 297 of file imaptransport.c.

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 }
WPARAM wParam
Definition: combotst.c:138
#define FIXME(fmt,...)
Definition: debug.h:111
#define debugstr_a
Definition: kernel32.h:31
#define E_NOTIMPL
Definition: ddrawi.h:99
LPARAM lParam
Definition: combotst.c:139

◆ IMAPTransport_Subscribe()

static HRESULT WINAPI IMAPTransport_Subscribe ( IIMAPTransport iface,
WPARAM  wParam,
LPARAM  lParam,
IIMAPCallback pCBHandler,
LPSTR  lpszMailboxName 
)
static

Definition at line 227 of file imaptransport.c.

229 {
230  FIXME("(%ld, %ld, %p, %s): stub\n", wParam, lParam, pCBHandler, debugstr_a(lpszMailboxName));
231  return E_NOTIMPL;
232 }
WPARAM wParam
Definition: combotst.c:138
#define FIXME(fmt,...)
Definition: debug.h:111
#define debugstr_a
Definition: kernel32.h:31
#define E_NOTIMPL
Definition: ddrawi.h:99
LPARAM lParam
Definition: combotst.c:139

◆ IMAPTransport_Unsubscribe()

static HRESULT WINAPI IMAPTransport_Unsubscribe ( IIMAPTransport iface,
WPARAM  wParam,
LPARAM  lParam,
IIMAPCallback pCBHandler,
LPSTR  lpszMailboxName 
)
static

Definition at line 234 of file imaptransport.c.

236 {
237  FIXME("(%ld, %ld, %p, %s): stub\n", wParam, lParam, pCBHandler, debugstr_a(lpszMailboxName));
238  return E_NOTIMPL;
239 }
WPARAM wParam
Definition: combotst.c:138
#define FIXME(fmt,...)
Definition: debug.h:111
#define debugstr_a
Definition: kernel32.h:31
#define E_NOTIMPL
Definition: ddrawi.h:99
LPARAM lParam
Definition: combotst.c:139

◆ IMAPTransport_UpdateSeqNumToUID()

static HRESULT WINAPI IMAPTransport_UpdateSeqNumToUID ( IIMAPTransport iface,
DWORD  dwMsgSeqNum,
DWORD  dwUID 
)
static

Definition at line 326 of file imaptransport.c.

328 {
329  FIXME("(%u, %u): stub\n", dwMsgSeqNum, dwUID);
330  return E_NOTIMPL;
331 }
#define FIXME(fmt,...)
Definition: debug.h:111
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ IMAPTransportCF_AddRef()

static ULONG WINAPI IMAPTransportCF_AddRef ( IClassFactory iface)
static

Definition at line 459 of file imaptransport.c.

460 {
461  return 2; /* non-heap based object */
462 }

◆ IMAPTransportCF_Create()

HRESULT IMAPTransportCF_Create ( REFIID  riid,
LPVOID ppv 
)

Definition at line 508 of file imaptransport.c.

509 {
510  return IClassFactory_QueryInterface((IClassFactory *)&IMAPTransportCF, riid, ppv);
511 }
REFIID riid
Definition: precomp.h:44
REFIID LPVOID * ppv
Definition: atlbase.h:39
static const IClassFactoryVtbl * IMAPTransportCF

Referenced by DllGetClassObject().

◆ IMAPTransportCF_CreateInstance()

static HRESULT WINAPI IMAPTransportCF_CreateInstance ( IClassFactory iface,
LPUNKNOWN  pUnk,
REFIID  riid,
LPVOID ppv 
)
static

Definition at line 469 of file imaptransport.c.

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)
480  return CLASS_E_NOAGGREGATION;
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 }
HRESULT hr
Definition: shlfolder.c:183
REFIID riid
Definition: precomp.h:44
REFIID LPVOID * ppv
Definition: atlbase.h:39
HRESULT WINAPI CreateIMAPTransport(IIMAPTransport **ppTransport)
#define debugstr_guid
Definition: kernel32.h:35
#define TRACE(s)
Definition: solgame.cpp:4
LONG HRESULT
Definition: typedefs.h:79
#define CLASS_E_NOAGGREGATION
Definition: winerror.h:2662
#define NULL
Definition: types.h:112
static void *static void *static LPDIRECTPLAY IUnknown * pUnk
Definition: dplayx.c:30

◆ IMAPTransportCF_LockServer()

static HRESULT WINAPI IMAPTransportCF_LockServer ( IClassFactory iface,
BOOL  fLock 
)
static

Definition at line 492 of file imaptransport.c.

493 {
494  FIXME("(%d), stub!\n",fLock);
495  return S_OK;
496 }
#define FIXME(fmt,...)
Definition: debug.h:111
#define S_OK
Definition: intsafe.h:51

◆ IMAPTransportCF_QueryInterface()

static HRESULT WINAPI IMAPTransportCF_QueryInterface ( IClassFactory iface,
REFIID  riid,
LPVOID ppv 
)
static

Definition at line 446 of file imaptransport.c.

448 {
449  *ppv = NULL;
451  {
452  *ppv = iface;
453  IClassFactory_AddRef(iface);
454  return S_OK;
455  }
456  return E_NOINTERFACE;
457 }
#define E_NOINTERFACE
Definition: winerror.h:2364
REFIID riid
Definition: precomp.h:44
REFIID LPVOID * ppv
Definition: atlbase.h:39
const GUID IID_IUnknown
#define S_OK
Definition: intsafe.h:51
#define NULL
Definition: types.h:112
const GUID IID_IClassFactory
#define IsEqualIID(riid1, riid2)
Definition: guiddef.h:95

◆ IMAPTransportCF_Release()

static ULONG WINAPI IMAPTransportCF_Release ( IClassFactory iface)
static

Definition at line 464 of file imaptransport.c.

465 {
466  return 1; /* non-heap based object */
467 }

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( inetcomm  )

Variable Documentation

◆ IMAPTransportCF

const IClassFactoryVtbl* IMAPTransportCF = &IMAPTransportCFVtbl
static

Definition at line 506 of file imaptransport.c.

Referenced by IMAPTransportCF_Create().

◆ IMAPTransportCFVtbl

const IClassFactoryVtbl IMAPTransportCFVtbl
static
Initial value:
=
{
}
static HRESULT WINAPI IMAPTransportCF_CreateInstance(IClassFactory *iface, LPUNKNOWN pUnk, REFIID riid, LPVOID *ppv)
static ULONG WINAPI IMAPTransportCF_Release(IClassFactory *iface)
static ULONG WINAPI IMAPTransportCF_AddRef(IClassFactory *iface)
static HRESULT WINAPI IMAPTransportCF_LockServer(IClassFactory *iface, BOOL fLock)
static HRESULT WINAPI IMAPTransportCF_QueryInterface(IClassFactory *iface, REFIID riid, LPVOID *ppv)

Definition at line 498 of file imaptransport.c.

◆ IMAPTransportVtbl

const IIMAPTransportVtbl IMAPTransportVtbl
static

Definition at line 379 of file imaptransport.c.

Referenced by CreateIMAPTransport().