ILocalRegistry4.RegisterClassObject(Guid, UInt32) Method

Definition

Loads a class factory and registers it with COM.

public:
 int RegisterClassObject(Guid % rclsid, [Runtime::InteropServices::Out] System::UInt32 % pdwCookie);
public int RegisterClassObject (ref Guid rclsid, out uint pdwCookie);
abstract member RegisterClassObject : Guid * uint32 -> int
Public Function RegisterClassObject (ByRef rclsid As Guid, ByRef pdwCookie As UInteger) As Integer

Parameters

rclsid
Guid

The CLSID to register.

pdwCookie
UInt32

Reference to the object.

Returns

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

Remarks

This method can be called from any thread, but the CLSID will be registered only for the calling apartment.

COM Signature

From vsshell90.idl:

HRESULT RegisterClassObject(  
   [in] REFCLSID rclsid,  
   [out] DWORD* pdwCookie  
);  

Applies to