Shell Constants, Enumeratio ...


PERCEIVED Enumerated Type

Specifies a file's perceived type. This set of constants is used in the AssocGetPerceivedType function.

Syntax

typedef enum {
    PERCEIVED_TYPE_CUSTOM = -3,
    PERCEIVED_TYPE_UNSPECIFIED = -2,
    PERCEIVED_TYPE_FOLDER = -1,
    PERCEIVED_TYPE_UNKNOWN = 0,
    PERCEIVED_TYPE_TEXT = 1,
    PERCEIVED_TYPE_IMAGE = 2,
    PERCEIVED_TYPE_AUDIO = 3,
    PERCEIVED_TYPE_VIDEO = 4,
    PERCEIVED_TYPE_COMPRESSED = 5,
    PERCEIVED_TYPE_DOCUMENT = 6,
    PERCEIVED_TYPE_SYSTEM = 7,
    PERCEIVED_TYPE_APPLICATION = 8,
    PERCEIVED_TYPE_GAMEMEDIA = 9,
    PERCEIVED_TYPE_CONTACTS = 10
} PERCEIVED;

Constants

PERCEIVED_TYPE_CUSTOM

The file's perceived type as defined in the registry is not a known type.

PERCEIVED_TYPE_UNSPECIFIED

The file does not have a perceived type.

PERCEIVED_TYPE_FOLDER

Not used.

PERCEIVED_TYPE_UNKNOWN

The file's perceived type hasn't yet been requested. This is the cached type of the object when it is created. This value is never returned by AssocGetPerceivedType.

PERCEIVED_TYPE_TEXT

The file's perceived type is "text".

PERCEIVED_TYPE_IMAGE

The file's perceived type is "image".

PERCEIVED_TYPE_AUDIO

The file's perceived type is "audio".

PERCEIVED_TYPE_VIDEO

The file's perceived type is "video".

PERCEIVED_TYPE_COMPRESSED

The file's perceived type is "compressed".

PERCEIVED_TYPE_DOCUMENT

The file's perceived type is "document".

PERCEIVED_TYPE_SYSTEM

The file's perceived type is "system".

PERCEIVED_TYPE_APPLICATION

The file's perceived type is "application".

PERCEIVED_TYPE_GAMEMEDIA

Windows Vista and later. The file's perceived type is "gamemedia".

PERCEIVED_TYPE_CONTACTS

Windows Vista and later.The file's perceived type is "contacts"

Remarks

Prior to Windows Vista, this enumeration was declared in Shlwapi.h.

Enumerated Type Information

Header and IDL filesshtypes.h, shtypes.idl
Minimum operating systems Windows XP Service Pack 2 (SP2)
Tags :


Community Content

Chris_Guzak
the set of values in this type is not extensible
since the windows SDK controls the list of values in this type it cannot be extended
Tags :

Chris_Guzak
file type owners need to provide the value of this via the registry
the schema for the registration is as follows...
HKCR\<.ext>
PerceivedType=text|video|audio|image|system|document|compressed|application|gamemedia|Contacts

for example here is .txt files
HKEY_CLASSES_ROOT\.txt
PerceivedType REG_SZ text
Tags :

Chris_Guzak
System.Kind (PKEY_Kind) is another form of type simialr to PerceivedType
http://msdn.microsoft.com/en-us/library/bb787521(VS.85).aspx

this is also provided via file type owners
Tags :

Page view tracker