/// <summary> /// Helper function that returns the IMalloc interface used by the shell. /// </summary> private static NativeWindowCommon.IMalloc GetSHMalloc() { NativeWindowCommon.IMalloc malloc; NativeWindowCommon.SHGetMalloc(out malloc); return(malloc); }