This document is archived and information here might be outdated. Recommended version. |
Load an object from the specified stream. The first time an object is encountered, it is loaded from the stream. When subsequent references to the object are loaded, a pointer to the first object is returned.
[Visual Basic .NET]
Public Function LoadObject ( _
ByRef riid As Guid&, _
ByVal pUnkOuter As Object _
) As Object
[C#]
public object LoadObject (
ref Guid& riid,
ref object pUnkOuter
);
[C++]
HRESULT LoadObject(
System.Guid* riid,
LPUNKNOWN pUnkOuter
);
[C++] Parameters riid [in]
riid is a parameter of type System.Guid* pUnkOuter [in]
pUnkOuter is a parameter of type IUnknown
The first parameter of LoadObject is a GUID of an interface ID (most of them could be find under HKEY_CLASSES_ROOT\Interface in the registry), not the object's GUID. The object that gets loaded will QI for this interface and the result is returned with the IUnknown parameter.