#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "winreg.h"
#include "winuser.h"
#include "winerror.h"
#include "winternl.h"
#include "objbase.h"
#include "shlwapi.h"
#include "mapiutil.h"
#include "util.h"
#include "wine/debug.h"
Go to the source code of this file.
◆ COBJMACROS
◆ IMAPIMalloc_fnAddRef()
Definition at line 95 of file imalloc.c.
96{
97 TRACE(
"(%p)\n", iface);
99 return 1u;
100}
#define InterlockedIncrement
◆ IMAPIMalloc_fnAlloc()
Definition at line 115 of file imalloc.c.
116{
117 TRACE(
"(%p)->(%ld)\n", iface,
cb);
118
120}
HLOCAL NTAPI LocalAlloc(UINT uFlags, SIZE_T dwBytes)
static HMODULE MODULEINFO DWORD cb
◆ IMAPIMalloc_fnDidAlloc()
Definition at line 160 of file imalloc.c.
161{
162 TRACE(
"(%p)->(%p)\n", iface, pv);
163 return -1;
164}
◆ IMAPIMalloc_fnFree()
Definition at line 142 of file imalloc.c.
143{
144 TRACE(
"(%p)->(%p)\n", iface, pv);
146}
HLOCAL NTAPI LocalFree(HLOCAL hMem)
◆ IMAPIMalloc_fnGetSize()
Definition at line 151 of file imalloc.c.
152{
153 TRACE(
"(%p)->(%p)\n", iface, pv);
155}
SIZE_T NTAPI LocalSize(HLOCAL hMem)
◆ IMAPIMalloc_fnHeapMinimize()
◆ IMAPIMalloc_fnQueryInterface()
Definition at line 76 of file imalloc.c.
78{
80
83 {
85 TRACE(
"Returning IMalloc (%p)\n", *ppvObj);
87 }
88 TRACE(
"Returning E_NOINTERFACE\n");
90}
static MAPI_IMALLOC MAPI_IMalloc
#define IsEqualIID(riid1, riid2)
◆ IMAPIMalloc_fnRealloc()
Definition at line 125 of file imalloc.c.
126{
127 TRACE(
"(%p)->(%p, %ld)\n", iface, pv,
cb);
128
129 if (!pv)
131
134
137}
HLOCAL NTAPI LocalReAlloc(HLOCAL hMem, SIZE_T dwBytes, UINT uFlags)
◆ IMAPIMalloc_fnRelease()
Definition at line 105 of file imalloc.c.
106{
107 TRACE(
"(%p)\n", iface);
109 return 1u;
110}
#define InterlockedDecrement
◆ MAPIGetDefaultMalloc()
Definition at line 62 of file imalloc.c.
63{
65
68
71}
MAPI_FUNCTIONS mapiFunctions
◆ WINE_DEFAULT_DEBUG_CHANNEL()
WINE_DEFAULT_DEBUG_CHANNEL |
( |
mapi |
| ) |
|
◆ MAPI_IMalloc
◆ MAPI_IMalloc_vt
static const IMallocVtbl MAPI_IMalloc_vt |
|
static |
Initial value:=
{
}
static SIZE_T WINAPI IMAPIMalloc_fnGetSize(LPMALLOC iface, LPVOID pv)
static ULONG WINAPI IMAPIMalloc_fnAddRef(LPMALLOC iface)
static HRESULT WINAPI IMAPIMalloc_fnQueryInterface(LPMALLOC iface, REFIID refiid, LPVOID *ppvObj)
static LPVOID WINAPI IMAPIMalloc_fnRealloc(LPMALLOC iface, LPVOID pv, SIZE_T cb)
static void WINAPI IMAPIMalloc_fnHeapMinimize(LPMALLOC iface)
static ULONG WINAPI IMAPIMalloc_fnRelease(LPMALLOC iface)
static LPVOID WINAPI IMAPIMalloc_fnAlloc(LPMALLOC iface, SIZE_T cb)
static INT WINAPI IMAPIMalloc_fnDidAlloc(LPMALLOC iface, LPVOID pv)
static void WINAPI IMAPIMalloc_fnFree(LPMALLOC iface, LPVOID pv)
Definition at line 39 of file imalloc.c.
◆ MAPI_ObjectCount