All Manuals > COM/Automation User Guide and Reference Manual > 1 Using COM

1.5 Obtaining the first COM interface pointer

All interaction with a remote COM server is done via its interface pointers and the most common way to obtain the first interface pointer is using the function create-instance. This takes the CLSID of the server and returns an interface pointer for the i-unknown interface unless another interface name is specified. Note that you must initialize the COM runtime before calling create-instance (see 1.4 Initializing the COM runtime).

For example, the following will create an instance of Microsoft Word:

(create-instance "000209FF-0000-0000-C000-000000000046")

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