Freigeben über


ILocalRegistry.GetClassObjectOfClsid Method

Definition

Returns the class object associated with a CLSID.

public:
 int GetClassObjectOfClsid(Guid % clsid, System::UInt32 dwFlags, IntPtr lpReserved, Guid % riid, [Runtime::InteropServices::Out] IntPtr % ppvClassObject);
public int GetClassObjectOfClsid (ref Guid clsid, uint dwFlags, IntPtr lpReserved, ref Guid riid, out IntPtr ppvClassObject);
abstract member GetClassObjectOfClsid : Guid * uint32 * nativeint * Guid * nativeint -> int
Public Function GetClassObjectOfClsid (ByRef clsid As Guid, dwFlags As UInteger, lpReserved As IntPtr, ByRef riid As Guid, ByRef ppvClassObject As IntPtr) As Integer

Parameters

clsid
Guid

[in] Class identifier (CLSID) of the requested object. This is the CLSID associated with the data and code that is used to create the object.

dwFlags
UInt32

[in] Flags controlling the instance creation from the CLSCTX enumeration. Specifies a value of CLSCTX_INPROC_SERVER.

lpReserved
IntPtr

nativeint

[in] Reserved.

riid
Guid

[in] Interface to be used to communicate with the object. For example, IID_IClassFactory.

ppvClassObject
IntPtr

nativeint

[in] Address of pointer variable that receives the interface pointer requested in riid. Upon successful return, ppvObj contains the requested interface pointer. Upon failure, ppvObj contains null.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

This method is safe to access from any thread.

Applies to