Export (0) Print
Expand All

TYSPEC enumeration

Specifies a mapping for a class ID.

Syntax


typedef enum tagTYSPEC { 
  TYSPEC_CLSID        = 0,
  TYSPEC_FILEEXT      = 1,
  TYSPEC_MIMETYPE     = 2,
  TYSPEC_FILENAME     = 3,
  TYSPEC_PROGID       = 4,
  TYSPEC_PACKAGENAME  = 5,
  TYSPEC_OBJECTID     = 6
} TYSPEC;

Constants

TYSPEC_CLSID

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.

Remarks

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;

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

WTypes.h

See also

CoInstall

 

 

Community Additions

ADD
Show:
© 2015 Microsoft