TYSPEC enumeration

Defines ways of mapping to a class ID.

Syntax

typedef enum tagTYSPEC { 
  TYSPEC_CLSID,
  TYSPEC_FILEEXT,
  TYSPEC_MIMETYPE,
  TYSPEC_FILENAME,
  TYSPEC_PROGID,
  TYSPEC_PACKAGENAME,
  TYSPEC_OBJECTID
} TYSPEC;

Constants

TYSPEC_CLSID

A CLSID.

TYSPEC_FILEEXT

A file name extension. This value is not currently supported.

TYSPEC_MIMETYPE

A MIME type. This value is not currently supported.

TYSPEC_FILENAME

A file name. This value is not currently supported.

TYSPEC_PROGID

A PROGID. This value is not currently supported.

TYSPEC_PACKAGENAME

A package name. This value is not currently supported.

TYSPEC_OBJECTID

An object ID. This value is not currently supported.

Remarks

The uCLSSPEC union is defined as follows:

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;

Requirements

Requirement Value
IDL
Wtypes.idl

See also

CoInstall