SHGetMalloc

Other versions of this page are also available for the following:

Windows Mobile Not SupportedWindows Embedded CE Supported

8/28/2008

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.

Syntax

HRESULT SHGetMalloc(
  LPMALLOC* ppMalloc 
);

Parameters

  • ppMalloc
    [out] Pointer to a pointer that receives the shell's IMalloc interface pointer.

Return Value

NOERROR indicates success. E_FAIL indicates failure.

Requirements

Header shlobj.h
Library ceshell.lib
Windows Embedded CE Windows CE 2.12 and later

See Also

Reference

Standard Shell Functions

Other Resources

IMalloc