A little while ago, I noted that managing shared access to the HGLOBAL inside a stream can get tricky, and opined that the GetHGlobalFromStream should have been something like IStreamOnHGlobal::DetachHGlobal. But in fact there’s a straightforward use case for GetHGlobalFromStream even when there is no sharing going on. The post A practical use for <CODE>GetHGlobalFromStream</CODE> when sharing was never your intention appeared first on The Old New Thing....