ILocalRegistry4.RegisterClassObject(Guid, UInt32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.