You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This class implements [IAtlMemMgr](../../atl/reference/iatlmemmgr-class.md) using the COM memory allocation functions.
11
+
This class implements [`IAtlMemMgr`](../../atl/reference/iatlmemmgr-class.md) using the COM memory allocation functions.
12
12
13
13
> [!IMPORTANT]
14
14
> This class and its members cannot be used in applications that execute in the Windows Runtime.
15
15
16
16
## Syntax
17
17
18
-
```
18
+
```cpp
19
19
classCComHeap : publicIAtlMemMgr
20
20
```
21
21
22
22
## Members
23
23
24
-
### Public Methods
24
+
### Public methods
25
25
26
26
|Name|Description|
27
27
|----------|-----------------|
28
-
|[CComHeap::Allocate](#allocate)|Call this method to allocate a block of memory.|
29
-
|[CComHeap::Free](#free)|Call this method to free a block of memory allocated by this memory manager.|
30
-
|[CComHeap::GetSize](#getsize)|Call this method to get the allocated size of a memory block allocated by this memory manager.|
31
-
|[CComHeap::Reallocate](#reallocate)|Call this method to reallocate memory allocated by this memory manager.|
28
+
|[`CComHeap::Allocate`](#allocate)|Call this method to allocate a block of memory.|
29
+
|[`CComHeap::Free`](#free)|Call this method to free a block of memory allocated by this memory manager.|
30
+
|[`CComHeap::GetSize`](#getsize)|Call this method to get the allocated size of a memory block allocated by this memory manager.|
31
+
|[`CComHeap::Reallocate`](#reallocate)|Call this method to reallocate memory allocated by this memory manager.|
32
32
33
33
## Remarks
34
34
35
-
`CComHeap` implements memory allocation functions using the COM allocation functions, including [CoTaskMemAlloc](/windows/win32/api/combaseapi/nf-combaseapi-cotaskmemalloc), [CoTaskMemFree](/windows/win32/api/combaseapi/nf-combaseapi-cotaskmemfree), [IMalloc::GetSize](/windows/win32/api/objidlbase/nf-objidlbase-imalloc-getsize), and [CoTaskMemRealloc](/windows/win32/api/combaseapi/nf-combaseapi-cotaskmemrealloc). The maximum amount of memory that can be allocated is equal to INT_MAX (2147483647) bytes.
35
+
`CComHeap` implements memory allocation functions using the COM allocation functions, including [`CoTaskMemAlloc`](/windows/win32/api/combaseapi/nf-combaseapi-cotaskmemalloc), [`CoTaskMemFree`](/windows/win32/api/combaseapi/nf-combaseapi-cotaskmemfree), [`IMalloc::GetSize`](/windows/win32/api/objidlbase/nf-objidlbase-imalloc-getsize), and [`CoTaskMemRealloc`](/windows/win32/api/combaseapi/nf-combaseapi-cotaskmemrealloc). The maximum amount of memory that can be allocated is equal to `INT_MAX` (2147483647) bytes.
36
36
37
37
## Example
38
38
39
-
See the example for [IAtlMemMgr](../../atl/reference/iatlmemmgr-class.md).
39
+
See the example for [`IAtlMemMgr`](../../atl/reference/iatlmemmgr-class.md).
40
40
41
-
## Inheritance Hierarchy
41
+
## Inheritance hierarchy
42
42
43
43
`IAtlMemMgr`
44
44
@@ -52,95 +52,95 @@ See the example for [IAtlMemMgr](../../atl/reference/iatlmemmgr-class.md).
0 commit comments