Istream addon4/29/2023 GetHGlobalFromStream to retrieve the memory handle associated with the stream object. The new stream object’s initial seek position is the beginning of the stream. If the logical size of the stream is important, follow the call to this function with a call to the Because of rounding, this is not necessarily the same size that was originally allocated for the handle. The initial size of the stream is the size of hGlobal as returned by the GlobalSize function. The memory handle and its contents are undisturbed by the creation of the new stream object. Thus, CreateStreamOnHGlobal can be used to open an existing stream in memory. If hGlobal is not NULL, the initial contents of the stream are the current contents of the memory block. If hGlobal is NULL, the function allocates a new memory handle and the stream is initially empty. This function supports the standard return values E_INVALIDARG and E_OUTOFMEMORY, as well as the following. IStream* pointer variable that receives the interface pointer to the new stream object. See the Remarks for further discussion of the case where fDeleteOnRelease is FALSE. If set to TRUE, the final release will automatically free the underlying handle. If set to FALSE, the caller must free the hGlobal after the final release. The handle must be allocated as moveable and nondiscardable.Ī value that indicates whether the underlying handle for this stream object should be automatically freed when the stream object is released. A memory handle allocated by the GlobalAlloc function, or if NULL a new handle is to be allocated instead.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |