Skip to content

Latest commit

 

History

History
45 lines (30 loc) · 897 Bytes

GetHGlobalFromStream.md

File metadata and controls

45 lines (30 loc) · 897 Bytes

Home

Function name : GetHGlobalFromStream

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.


Declaration:

WINOLEAPI GetHGlobalFromStream(
  IStream* pstm,
  HGLOBAL* phglobal
);
  

FoxPro declaration:

DECLARE INTEGER GetHGlobalFromStream IN ole32;
	INTEGER   pstm,;
	INTEGER @ phglobal
  

Parameters:

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.


Return value:

S_OK indicates that the handle was successfully returned.