WMDM_FORMATCODE
The WMDM_FORMATCODE enumeration type defines a list of format codes that describe types of content transferred to and from a device.
Syntax
typedef enum {
WMDM_FORMATCODE_NOTUSED = 0x0000,
WMDM_FORMATCODE_ALLIMAGES = 0xFFFFFFFF,
WMDM_FORMATCODE_UNDEFINED = 0x3000,
WMDM_FORMATCODE_ASSOCIATION = 0x3001,
WMDM_FORMATCODE_SCRIPT = 0x3002,
WMDM_FORMATCODE_EXECUTABLE = 0x3003,
WMDM_FORMATCODE_TEXT = 0x3004,
WMDM_FORMATCODE_HTML = 0x3005,
WMDM_FORMATCODE_DPOF = 0x3006,
WMDM_FORMATCODE_AIFF = 0x3007,
WMDM_FORMATCODE_WAVE = 0x3008,
WMDM_FORMATCODE_MP3 = 0x3009,
WMDM_FORMATCODE_AVI = 0x300A,
WMDM_FORMATCODE_MPEG = 0x300B,
WMDM_FORMATCODE_ASF = 0x300C,
WMDM_FORMATCODE_RESERVED_FIRST = 0x300D,
WMDM_FORMATCODE_RESERVED_LAST = 0x37FF,
WMDM_FORMATCODE_IMAGE_UNDEFINED = 0x3800,
WMDM_FORMATCODE_IMAGE_EXIF = 0x3801,
WMDM_FORMATCODE_IMAGE_TIFFEP = 0x3802,
WMDM_FORMATCODE_IMAGE_FLASHPIX = 0x3803,
WMDM_FORMATCODE_IMAGE_BMP = 0x3804,
WMDM_FORMATCODE_IMAGE_CIFF = 0x3805,
WMDM_FORMATCODE_IMAGE_GIF = 0x3807,
WMDM_FORMATCODE_IMAGE_JFIF = 0x3808,
WMDM_FORMATCODE_IMAGE_PCD = 0x3809,
WMDM_FORMATCODE_IMAGE_PICT = 0x380A,
WMDM_FORMATCODE_IMAGE_PNG = 0x380B,
WMDM_FORMATCODE_IMAGE_TIFF = 0x380D,
WMDM_FORMATCODE_IMAGE_TIFFIT = 0x380E,
WMDM_FORMATCODE_IMAGE_JP2 = 0x380F,
WMDM_FORMATCODE_IMAGE_JPX = 0x3810,
WMDM_FORMATCODE_IMAGE_RESERVED_FIRST = 0x3811,
WMDM_FORMATCODE_IMAGE_RESERVED_LAST = 0x3FFF,
WMDM_FORMATCODE_UNDEFINEDFIRMWARE = 0xB802,
WMDM_FORMATCODE_WINDOWSIMAGEFORMAT = 0xB881,
WMDM_FORMATCODE_UNDEFINEDAUDIO = 0xB900,
WMDM_FORMATCODE_WMA = 0xB901,
WMDM_FORMATCODE_UNDEFINEDVIDEO = 0xB980,
WMDM_FORMATCODE_WMV = 0xB981
WMDM_FORMATCODE_UNDEFINEDCOLLECTION = 0xBA00,
WMDM_FORMATCODE_ABSTRACTMULTIMEDIAALBUM = 0xBA01,
WMDM_FORMATCODE_ABSTRACTIMAGEALBUM = 0xBA02,
WMDM_FORMATCODE_ABSTRACTAUDIOALBUM = 0xBA03,
WMDM_FORMATCODE_ABSTRACTVIDEOALBUM = 0xBA04,
WMDM_FORMATCODE_ABSTRACTAUDIOVIDEOPLAYLIST = 0xBA05,
WMDM_FORMATCODE_ABSTRACTCONTACTGROUP = 0xBA06,
WMDM_FORMATCODE_ABSTRACTMESSAGEFOLDER = 0xBA07,
WMDM_FORMATCODE_ABSTRACTCHAPTEREDPRODUCTION = 0xBA08,
WMDM_FORMATCODE_WPLPLAYLIST = 0xBA10,
WMDM_FORMATCODE_M3UPLAYLIST = 0xBA11,
WMDM_FORMATCODE_MPLPLAYLIST = 0xBA12,
WMDM_FORMATCODE_ASXPLAYLIST = 0xBA13,
WMDM_FORMATCODE_PLSPLAYLIST = 0xBA14,
WMDM_FORMATCODE_UNDEFINEDDOCUMENT = 0xBA80,
WMDM_FORMATCODE_ABSTRACTDOCUMENT = 0xBA81,
WMDM_FORMATCODE_UNDEFINEDMESSAGE = 0xBB00,
WMDM_FORMATCODE_ABSTRACTMESSAGE = 0xBB01,
WMDM_FORMATCODE_UNDEFINEDCONTACT = 0xBB80,
WMDM_FORMATCODE_ABSTRACTCONTACT = 0xBB81,
WMDM_FORMATCODE_VCARD2 = 0xBB82,
WMDM_FORMATCODE_VCARD3 = 0xBB83,
WMDM_FORMATCODE_UNDEFINEDCALENDARITEM = 0xBE00,
WMDM_FORMATCODE_ABSTRACTCALENDARITEM = 0xBE01,
WMDM_FORMATCODE_VCALENDAR1 = 0xBE02,
WMDM_FORMATCODE_UNDEFINEDWINDOWSEXECUTABLE = 0xBE80
} WMDM_FORMATCODE;
Members
WMDM_FORMATCODE_NOTUSED
No format code is used.
WMDM_FORMATCODE_ALLIMAGES
Format code that can be used to query for all images.
WMDM_FORMATCODE_UNDEFINED
Format code used to query for all undefined objects.
WMDM_FORMATCODE_ASSOCIATION
Format code used to define a link between two objects.
WMDM_FORMATCODE_SCRIPT
Format code for a script file.
WMDM_FORMATCODE_EXECUTABLE
Format code for an executable file.
WMDM_FORMATCODE_TEXT
Format code for a text file.
WMDM_FORMATCODE_HTML
Format code for an HTML file.
WMDM_FORMATCODE_DPOF
Format code used to represent the digital print order format.
WMDM_FORMATCODE_AIFF
Format code used to represent the audio interchange file format.
WMDM_FORMATCODE_WAVE
Format code used for a WAV file.
WMDM_FORMATCODE_MP3
Format code used for an MP3 file.
WMDM_FORMATCODE_AVI
Format code used for an AVI file.
WMDM_FORMATCODE_MPEG
Format code used for an MPEG file.
WMDM_FORMATCODE_ASF
Format code used to represent an Advanced Systems Format (ASF) file.
WMDM_FORMATCODE_RESERVED_FIRST
Format code that is the first in a range reserved for Picture Transfer Protocol (PTP).
WMDM_FORMATCODE_RESERVED_LAST
Format code that is last in a range reserved for PTP.
WMDM_FORMATCODE_IMAGE_UNDEFINED
Format code used to represent and image of an undefined type.
WMDM_FORMATCODE_IMAGE_EXIF
Format code used to represent and image of type EXIF.
WMDM_FORMATCODE_IMAGE_TIFFEP
Format code used for images that are of type Tagged Image File Format for Electronic Photography (TIFF/EP)
WMDM_FORMATCODE_IMAGE_FLASHPIX
Format code for a file of type FPX.
WMDM_FORMATCODE_IMAGE_BMP
Format code for a file of type BMP.
WMDM_FORMATCODE_IMAGE_CIFF
Format code for an image in the camera image file format.
WMDM_FORMATCODE_IMAGE_GIF
Format code for a file of type GIF.
WMDM_FORMATCODE_IMAGE_JFIF
Format code for a file of type JFIF.
WMDM_FORMATCODE_IMAGE_PCD
Format code for an image of type photo cd.
WMDM_FORMATCODE_IMAGE_PICT
Format code for an image of type PICT.
WMDM_FORMATCODE_IMAGE_PNG
Format code for an image of type PNG.
WMDM_FORMATCODE_IMAGE_TIFF
Format code for a file of type TIFF.
WMDM_FORMATCODE_IMAGE_TIFFIT
Format code for an image of type Tagged Image File Format with image technology.
WMDM_FORMATCODE_IMAGE_JP2
Format code for a jpeg200 image.
WMDM_FORMATCODE_IMAGE_JPX
Format code for an image built on jpeg200 and that uses extended still image registration. The file name extension is usually .jpf of .jpx.
WMDM_FORMATCODE_IMAGE_RESERVED_FIRST
Format code that is the first in a range reserved for an image reference in PTP.
WMDM_FORMATCODE_IMAGE_RESERVED_LAST
Format code that is the last in a range reserved for an image reference in PTP.
WMDM_FORMATCODE_UNDEFINEDFIRMWARE
Format code when firmware is undefined.
WMDM_FORMATCODE_WINDOWSIMAGEFORMAT
Format code for Windows image format.
WMDM_FORMATCODE_UNDEFINEDAUDIO
Format code for an audio file of undefined type.
WMDM_FORMATCODE_WMA
Format code for a Windows Media Audio (WMA) file.
WMDM_FORMATCODE_UNDEFINEDVIDEO
Format code for a video file with an undefined type.
WMDM_FORMATCODE_WMV
Format code for a Windows Media Video (WMV) file.
WMDM_FORMATCODE_UNDEFINEDCOLLECTION
Format code for a collection of an undefined type.
WMDM_FORMATCODE_ABSTRACTMULTIMEDIAALBUM
Format code for a multimedia album where the object contains the properties of a multimedia album and, optionally, data. Any contained data is of an undefined format with respect to the MTP specification.
WMDM_FORMATCODE_ABSTRACTIMAGEALBUM
Format code for an image album where the object contains the properties of an image album and, optionally, data. Any contained data is of an undefined format with respect to the MTP specification.
WMDM_FORMATCODE_ABSTRACTAUDIOALBUM
Format code for an audio album where the object contains the properties of an audio album and, optionally, data. Any contained data is of an undefined format with respect to the MTP specification.
WMDM_FORMATCODE_ABSTRACTVIDEOALBUM
Format code for a video album where the object contains the properties of a video album and, optionally, data. Any contained data is of an undefined format with respect to the MTP specification.
WMDM_FORMATCODE_ABSTRACTAUDIOVIDEOPLAYLIST
Format code for an audio/video playlist where the object contains the properties of an audio/video playlist and, optionally, data. Any contained data is of an undefined format with respect to the MTP specification.
WMDM_FORMATCODE_ABSTRACTCONTACTGROUP
Format code for a contact group where the object contains the properties of a contact group and, optionally, data. Any contained data is of an undefined format with respect to the MTP specification.
WMDM_FORMATCODE_ABSTRACTMESSAGEFOLDER
Format code for a message folder where the object contains the properties of a message folder and, optionally, data. Any contained data is of an undefined format with respect to the MTP specification.
WMDM_FORMATCODE_ABSTRACTCHAPTEREDPRODUCTION
Format code for a chaptered production where the object contains the properties of a chaptered production and, optionally, data. Any contained data is of an undefined format with respect to the MTP specification.
WMDM_FORMATCODE_WPLPLAYLIST
Format code for a playlist formatted with Windows Media playlist formatting.
WMDM_FORMATCODE_M3UPLAYLIST
Format code for a playlist with M3U formatting.
WMDM_FORMATCODE_MPLPLAYLIST
Format code for a playlist with MPL formatting.
WMDM_FORMATCODE_ASXPLAYLIST
Format code for a playlist with ASX formatting.
WMDM_FORMATCODE_PLSPLAYLIST
Format code for a playlist with PLS formatting.
WMDM_FORMATCODE_UNDEFINEDDOCUMENT
Format code for a document of undefined type.
WMDM_FORMATCODE_ABSTRACTDOCUMENT
Format code for a document where the object contains the properties of a document and, optionally, data. Any contained data is of an undefined format with respect to the MTP specification.
WMDM_FORMATCODE_UNDEFINEDMESSAGE
Format code for a message of undefined type.
WMDM_FORMATCODE_ABSTRACTMESSAGE
Format code for a message where the object contains the properties of a message and, optionally, data. Any contained data is of an undefined format with respect to the MTP specification.
WMDM_FORMATCODE_UNDEFINEDCONTACT
Format code for a contact of undefined type.
WMDM_FORMATCODE_ABSTRACTCONTACT
Format code for a contact where the object contains the properties of a contact and, optionally, data. Any contained data is of an undefined format with respect to the MTP specification.
WMDM_FORMATCODE_VCARD2
Format code for an electronic card with vcard version 2 formatting.
WMDM_FORMATCODE_VCARD3
Format code for an electronic card with vcard version 3 formatting.
WMDM_FORMATCODE_UNDEFINEDCALENDARITEM
Format code for an electronic calendar item of undefined type.
WMDM_FORMATCODE_ABSTRACTCALENDARITEM
Format code for a calendar item where the object contains the properties of a calendar item and, optionally, data. Any contained data is of an undefined format with respect to the MTP specification.
WMDM_FORMATCODE_VCALENDAR1
Format code for an electronic calendar item with vcalendar version 1 formatting.
WMDM_FORMATCODE_UNDEFINEDWINDOWSEXECUTABLE
Format code for a Windows-based executable of undefined type.
Remarks
To discover the formats supported by a device, an application can use IWMDMDevice3::GetProperty to query the g_wszWMDMFormatsSupported device property.
To discover device capabilities for a particular format, an application can call IWMDMDevice3::GetFormatCapability.
An application can set the format code while creating a storage on device by including the g_wszWMDMFormatCode property in metadata passed in the pMetaData parameter of a call to IWMDMStorageControl3::Insert3.
An application can query the format code of a storage by calling IWMDMStorage3::GetMetadata or IWMDMStorage4::GetSpecifiedMetadata and retrieving the g_wszWMDMFormatCode property.
If the device supports setting the format code after the creation of storage, an application can use IWMDMStorage3::SetMetdata to set the g_wszWMDMFormatCode property. Some devices may not allow changing the format code after the storage is created on the device. Therefore, setting this property along with the metadata passed in IWMDMStorageControl3::Insert3 is strongly recommended.
Requirements
Header: Defined in wmdm.idl.
Library: mssachlp.lib
See Also