LispWorks COM/Automation User Guide and Reference Manual > 2 COM Reference Entries

NextPrevUpTopContentsIndex

find-clsid

Function
Summary

Searches the registry for a GUID or ProgId.

Package

com

Signature

find-clsid name &optional errorp => refguid

Arguments

name

A string or a refguid.

errorp

A generalized boolean.

Values

refguid

A refguid.

Description

The function find-clsid searches for the supplied GUID or ProgId in the registry.

name can be a string representing a GUID (with or without the curly brackets) or a string containing a ProgId. Otherwise name can be a refguid, which is simply returned.

If find-clsid fails to find the GUID, it either signals an error or returns nil , depending on the value of errorp . The default value of errorp is t .

Example

To find the GUID of the Explorer ActiveX:

(com:find-clsid "Shell.Explorer")

LispWorks COM/Automation User Guide and Reference Manual - 22 Dec 2009

NextPrevUpTopContentsIndex