All Manuals > COM/Automation User Guide and Reference Manual > 4 Automation Reference Entries

register-active-object Function

Summary

Registers an instance of a coclass.

Package

com

Signature

register-active-object interface-ptr &key clsid progid flags => token

Arguments
interface-ptr
A COM interface pointer.
clsid
A string or a refguid giving a CLSID to create.
progid
A string giving a ProgID to create.
flags
An integer.
Values
token
An integer.
Description

The function register-active-object registers interface-ptr in the system Running Object Table for a specific coclass that the application implements. The coclass can be specified directly by supplying clsid or indirectly by supplying progid, which will locate the CLSID from the registry.

flags can be an integer as specified for the Win32 API function RegisterActiveObject. The default value of flags is 0.

The returned value token can be used with revoke-active-object to revoke the registration.

See also

revoke-active-object


COM/Automation User Guide and Reference Manual - 01 Dec 2021 19:38:41