Type a page name and press Enter. You'll jump to the page if it exists, or you can create it if it doesn't.
To create a page in a module other than Interfaces, prefix the name with the module name and a period.
IMalloc (Interfaces)
.
C# Definition:
[ComImport]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[Guid("00000002-0000-0000-C000-000000000046")]
interface IMalloc {
// Allocate a block of memory
// Return value: a pointer to the allocated memory block.
[PreserveSig]
IntPtr Alloc(
UInt32 cb); // Size, in bytes, of the memory block to be
// allocated.
// Changes the size of a previously allocated memory block.
// Return value: reallocated memory block
[PreserveSig]
IntPtr Realloc(
IntPtr pv, // Pointer to the memory block to be reallocated
UInt32 cb); // Size of the memory block, in bytes, to be
// reallocated.
// Free a previously allocated block of memory.
[PreserveSig]
void Free(
IntPtr pv); // Pointer to the memory block to be freed.
// This method returns the size, in bytes, of a memory block
// previously
// allocated with IMalloc::Alloc or IMalloc::Realloc.
// Return value: The size of the allocated memory block in bytes.
[PreserveSig]
UInt32 GetSize(
IntPtr pv); // Pointer to the memory block for which the size is
// requested.
// This method determines whether this allocator was used to allocate
// the specified block of memory.
// Return value: 1 - allocated 0 - not allocated by this IMalloc Instance.
[PreserveSig]
Int16 DidAlloc(
IntPtr pv); // Pointer to the memory block
// Minimizes the heap by releasing unused memory to the operating system.
[PreserveSig]
void HeapMinimize();
}
VB Definition:
<ComImport> _
<Guid("TODO")> _
'TODO: Insert <InterfaceType(ComInterfaceType.InterfaceIsIUnknown)> _ if this doesn't derive from IDispatch
Interface IMalloc
TODO
End Interface
User-Defined Types:
None.
Notes:
None.
The IMalloc interface allocates, frees, and manages memory.
11/7/2011 11:34:00 AM - -208.50.255.30
Please edit this page!
Do you have...
helpful tips?
corrections to the existing content?
alternate definitions?
additional languages you want to include?
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing any supporting types needed.