Group: COM - Library: ole32
The GetHGlobalFromStream function retrieves the global memory handle to a stream that was created through a call to the CreateStreamOnHGlobal function.
WINOLEAPI GetHGlobalFromStream(
IStream* pstm,
HGLOBAL* phglobal
);
DECLARE INTEGER GetHGlobalFromStream IN ole32;
INTEGER pstm,;
INTEGER @ phglobal
pstm [in] IStream pointer to the stream object previously created by a call to the CreateStreamOnHGlobal function.
phglobal [out] Pointer to the current memory handle used by the specified stream object.
S_OK indicates that the handle was successfully returned.