Retrieves the ProgID for a given CLSID.
ProgIDFromCLSID(cClsID | nClsIdPointer)
Parameters
- cClsIDBinary | cClsIDString | nClsIDPointer
The function takes the CLSID in three different formats:
1. ClsID as binary string (16 bytes wide)
2. ClsID in string format - {002D2B10-C1FA-4193-B134-D86EAECC5250}
3. a numeric pointer which points to the memory address of the CLSID in binary form
Return Value
The readable ProgID (string) of the passed in CLSID.
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.
A CLSID is a globally unique identifier that identifies a COM class object. If your server or container allows linking to its embedded objects, you need to register a CLSID for each supported class of objects.
Example
lcCLSID = CLSIDFromProgID('VisualFoxPro.Application') && lcCLSID now contains the CLSID in binary format ? ProgIdFromCLSID(lcCLSID) && convert into human readable format && Returns VisualFoxpro.Application.9
See Also
Reference
CLSIDFromProgID
CLSIDFromString
CreateGuid
CreateThreadObject
GetIUnknown
IsEqualGuid
RegisterActiveObject
RegisterObjectAsFileMoniker
RevokeActiveObject
StringFromCLSID