This function retrieves a pointer to the shell’s IMalloc interface. A shell extension must use this interface to allocate memory that is later freed by the shell. Applications can also use this interface to allocate and free their own memory.
At a Glance
Header file: | Shellapi.h (Shlobj.h for Palm-size PC HPC) |
Windows CE versions: | 2.0 and later |
Syntax
HRESULT SHGetMalloc(LPMALLOC *ppMalloc);
Parameters
ppMalloc
[out] Pointer to a pointer that receives the shell’s IMalloc interface pointer.
Return Values
NONERROR indicates success. E_FAIL indicates failure.