Retrieves a binary CLSID for the given ProgID (COM classname) e.g. "VisualFoxPro.Application".

CLSIDFromProgID(cProgID)

Parameters

cProgID

The ProgID for which to retrieve the CLSID.

Return Value

The CLSID (binary characters).

Remarks

A programmatic identifier (ProgID) is a registry entry that can be associated with a CLSID. Like the CLSID, the ProgID identifies a class but with less precision because it is not guaranteed to be globally unique. The format of a ProgID is <Program>.<Component>.<Version>, separated by periods and with no spaces, as in Word.Document.6.

Example

Copy code
lcCLSID = CLSIDFromProgID('VisualFoxPro.Application')
&& lcCLSID now contains the CLSID in binary format
? StringFromCLSID(lcCLSID) && convert into human readable format

See Also

Reference

CLSIDFromString
CreateGuid
CreateThreadObject
GetIUnknown
IsEqualGuid
ProgIDFromCLSID
RegisterActiveObject
RegisterObjectAsFileMoniker
RevokeActiveObject
StringFromCLSID

Used WinApi functions

CLSIDFromProgID