ILocalRegistry4::RegisterClassObject Method (Guid, UInt32)

 

Loads a class factory and registers it with COM.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.9.0 (in Microsoft.VisualStudio.Shell.Interop.9.0.dll)

int RegisterClassObject(
	[InAttribute] Guid% rclsid,
	[OutAttribute] unsigned int% pdwCookie
)

Parameters

rclsid
Type: System::Guid

The CLSID to register.

pdwCookie
Type: System::UInt32

Reference to the object.

Return Value

Type: System::Int32

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

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

From vsshell90.idl:

HRESULT RegisterClassObject(
   [in] REFCLSID rclsid,
   [out] DWORD* pdwCookie
);
Return to top
Show: