SHGetMalloc

[Now Supported on Windows NT]

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.

HRESULT SHGetMalloc(

LPMALLOC *ppMalloc  
);  

Parameters

ppMalloc

Address of a value that receives the address of the shell's IMalloc interface.

Return Values

Returns the NOERROR value if successful or E_FAIL otherwise.