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

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
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.

Examples

To find the GUID of the Explorer ActiveX:

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

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