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 is safe to access from any thread.

Applies to