TYSPEC enumeration (wtypes.h)
Specifies a mapping for a class ID.
typedef enum tagTYSPEC {
TYSPEC_CLSID = 0,
TYSPEC_FILEEXT,
TYSPEC_MIMETYPE,
TYSPEC_FILENAME,
TYSPEC_PROGID,
TYSPEC_PACKAGENAME,
TYSPEC_OBJECTID
} TYSPEC;
TYSPEC_CLSID Value: 0 A CLSID. |
TYSPEC_FILEEXT A file name extension. |
TYSPEC_MIMETYPE A MIME type. |
TYSPEC_FILENAME A file name. |
TYSPEC_PROGID A PROGID. |
TYSPEC_PACKAGENAME A package name. |
TYSPEC_OBJECTID An object ID. |
The TYSPEC enumeration and uCLSSPEC union provide mappings to a class ID. Note that TYSPEC_CLSID is the only supported value.
typedef union switch(DWORD tyspec)
{
case TYSPEC_CLSID:
CLSID clsid;
case TYSPEC_FILEEXT:
LPOLESTR pFileExt;
case TYSPEC_MIMETYPE:
LPOLESTR pMimeType;
case TYSPEC_PROGID:
LPOLESTR pProgId;
case TYSPEC_FILENAME:
LPOLESTR pFileName;
case TYSPEC_PACKAGENAME:
struct {
LPOLESTR pPackageName;
GUID PolicyId;
} ByName;
case TYSPEC_OBJECTID:
struct {
GUID ObjectId;
GUID PolicyId;
} ByObjectId;
} uCLSSPEC;
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Header | wtypes.h |