Retrieves the global memory handle to a stream that was created through a call to the CreateStreamOnHGlobal function.
WINOLEAPI GetHGlobalFromStream(
IStream * pstm, |
//Points to the stream object |
HGLOBAL * phglobal |
//Points to the current memory handle for the specified stream |
); |
Parameters
Return Values
Comments
The handle this function returns may be different from the original handle due to intervening GlobalRealloc calls.
This function can be called only from within the same process from which the byte array was created.
See Also
GlobalRealloc in Win32