@msdn=http://search.microsoft.com/search/results.aspx?qu=$$$ @pinvoke=http://pinvoke.net/$$$.htm Summary: The OleLoadFromStream API !!!!C# Signature: [DllImport("ole32.dll")] static extern int OleLoadFromStream(System.Runtime.InteropServices.ComTypes.IStream pStm, [In] ref Guid riid, [MarshalAs(UnmanagedType.IUnknown)] out object ppvObj); !!!!User-Defined Types: None. !!!!Notes: None. !!!!Tips & Tricks: Please add some! !!!!Sample Code: byte[] data = new byte[2]; pStm.Read(data, sizeof(ushort), IntPtr.Zero); int varType = BitConverter.ToInt32(data, 0); if (varType == 13) //Object support IUnknown { object obj; Guid IID_IUnknown = new Guid("00000000-0000-0000-C000-000000000046"); int ret = OleLoadFromStream(stream, ref IID_IUnknown, out obj); IMyInterface myInterface = (IMyInterface)obj; } !!!!Alternative Managed API: Do you know one? Please contribute it! Documentation: OleLoadFromStream@msdn on MSDN
Edit ole32.OleLoadFrom...
You do not have permission to change this page. If you feel this is in error, please send feedback with the contact link on the main page.