WMDM_FORMATCODE enumeration

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 tagWMDM_FORMATCODE { 
  WMDM_FORMATCODE_NOTUSED,
  WMDM_FORMATCODE_ALLIMAGES,
  WMDM_FORMATCODE_UNDEFINED,
  WMDM_FORMATCODE_ASSOCIATION,
  WMDM_FORMATCODE_SCRIPT,
  WMDM_FORMATCODE_EXECUTABLE,
  WMDM_FORMATCODE_TEXT,
  WMDM_FORMATCODE_HTML,
  WMDM_FORMATCODE_DPOF,
  WMDM_FORMATCODE_AIFF,
  WMDM_FORMATCODE_WAVE,
  WMDM_FORMATCODE_MP3,
  WMDM_FORMATCODE_AVI,
  WMDM_FORMATCODE_MPEG,
  WMDM_FORMATCODE_ASF,
  WMDM_FORMATCODE_RESERVED_FIRST,
  WMDM_FORMATCODE_RESERVED_LAST,
  WMDM_FORMATCODE_IMAGE_UNDEFINED,
  WMDM_FORMATCODE_IMAGE_EXIF,
  WMDM_FORMATCODE_IMAGE_TIFFEP,
  WMDM_FORMATCODE_IMAGE_FLASHPIX,
  WMDM_FORMATCODE_IMAGE_BMP,
  WMDM_FORMATCODE_IMAGE_CIFF,
  WMDM_FORMATCODE_IMAGE_GIF,
  WMDM_FORMATCODE_IMAGE_JFIF,
  WMDM_FORMATCODE_IMAGE_PCD,
  WMDM_FORMATCODE_IMAGE_PICT,
  WMDM_FORMATCODE_IMAGE_PNG,
  WMDM_FORMATCODE_IMAGE_TIFF,
  WMDM_FORMATCODE_IMAGE_TIFFIT,
  WMDM_FORMATCODE_IMAGE_JP2,
  WMDM_FORMATCODE_IMAGE_JPX,
  WMDM_FORMATCODE_IMAGE_RESERVED_FIRST,
  WMDM_FORMATCODE_IMAGE_RESERVED_LAST,
  WMDM_FORMATCODE_UNDEFINEDFIRMWARE,
          WMDM_FORMATCODE_WBMP
,
                  WMDM_FORMATCODE_JPEGXR
,
  WMDM_FORMATCODE_WINDOWSIMAGEFORMAT,
  WMDM_FORMATCODE_UNDEFINEDAUDIO,
  WMDM_FORMATCODE_WMA,
  WMDM_FORMATCODE_OGG,
  WMDM_FORMATCODE_AAC,
  WMDM_FORMATCODE_AUDIBLE,
  WMDM_FORMATCODE_FLAC,
          WMDM_FORMATCODE_QCELP
,
          WMDM_FORMATCODE_AMR
,
  WMDM_FORMATCODE_UNDEFINEDVIDEO,
  WMDM_FORMATCODE_WMV,
  WMDM_FORMATCODE_MP4,
  WMDM_FORMATCODE_MP2,
          WMDM_FORMATCODE_3G2
,
                  WMDM_FORMATCODE_AVCHD
,
                  WMDM_FORMATCODE_ATSCTS
,
                          WMDM_FORMATCODE_DVBTS
,
  WMDM_FORMATCODE_UNDEFINEDCOLLECTION,
  WMDM_FORMATCODE_ABSTRACTMULTIMEDIAALBUM,
  WMDM_FORMATCODE_ABSTRACTIMAGEALBUM,
  WMDM_FORMATCODE_ABSTRACTAUDIOALBUM,
  WMDM_FORMATCODE_ABSTRACTVIDEOALBUM,
  WMDM_FORMATCODE_ABSTRACTAUDIOVIDEOPLAYLIST,
  WMDM_FORMATCODE_ABSTRACTCONTACTGROUP,
  WMDM_FORMATCODE_ABSTRACTMESSAGEFOLDER,
  WMDM_FORMATCODE_ABSTRACTCHAPTEREDPRODUCTION,
  WMDM_FORMATCODE_WPLPLAYLIST,
  WMDM_FORMATCODE_M3UPLAYLIST,
  WMDM_FORMATCODE_MPLPLAYLIST,
  WMDM_FORMATCODE_ASXPLAYLIST,
  WMDM_FORMATCODE_PLSPLAYLIST,
  WMDM_FORMATCODE_UNDEFINEDDOCUMENT,
  WMDM_FORMATCODE_ABSTRACTDOCUMENT,
  WMDM_FORMATCODE_XMLDOCUMENT,
  WMDM_FORMATCODE_MICROSOFTWORDDOCUMENT,
  WMDM_FORMATCODE_MHTCOMPILEDHTMLDOCUMENT,
  WMDM_FORMATCODE_MICROSOFTEXCELSPREADSHEET,
  WMDM_FORMATCODE_MICROSOFTPOWERPOINTDOCUMENT,
  WMDM_FORMATCODE_UNDEFINEDMESSAGE,
  WMDM_FORMATCODE_ABSTRACTMESSAGE,
  WMDM_FORMATCODE_UNDEFINEDCONTACT,
  WMDM_FORMATCODE_ABSTRACTCONTACT,
  WMDM_FORMATCODE_VCARD2,
  WMDM_FORMATCODE_VCARD3,
  WMDM_FORMATCODE_UNDEFINEDCALENDARITEM,
  WMDM_FORMATCODE_ABSTRACTCALENDARITEM,
  WMDM_FORMATCODE_VCALENDAR1,
  WMDM_FORMATCODE_VCALENDAR2,
  WMDM_FORMATCODE_UNDEFINEDWINDOWSEXECUTABLE,
  WMDM_FORMATCODE_MEDIA_CAST,
  WMDM_FORMATCODE_SECTION,
                                  WMDM_FORMATCODE_3G2A

} WMDM_FORMATCODE;

Constants

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 for an EXIF file. Also used for JPEG images not covered by WMDM_FORMATCODE_IMAGE_JP2 or WMDM_FORMATCODE_IMAGE_JPX.

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 GIF file.

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, using extended still image registration. The file name extension is usually .jpf or .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_WBMP

Format code for a Wireless Application Protocol Bitmap (.wbmp) image.

WMDM_FORMATCODE_JPEGXR

Format code for an HD Photo image

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_OGG

Format code for a Vorbis-encoded audio file in an Ogg container.

WMDM_FORMATCODE_AAC

Format code for an Advanced Audio Coding (AAC) file.

WMDM_FORMATCODE_AUDIBLE

Format code for an Audible file.

WMDM_FORMATCODE_FLAC

Format code for a Free Lossless Audio Codec (FLAC) file.

WMDM_FORMATCODE_QCELP

Format code for a Qualcomm Code Excited Linear Prediction (QCELP) codec file.

WMDM_FORMATCODE_AMR

Format code for an Adaptive Multi-Rate audio (AMR) codec 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_MP4

Format code for an MP4 file.

WMDM_FORMATCODE_MP2

Format code for an MP2 file.

WMDM_FORMATCODE_3G2

Format code for a 3G2 (3GPP2) multimedia container format. A file of this type may contain audio, video, or text.

WMDM_FORMATCODE_AVCHD

Format code for an AVCHD (Advanced Video Coding High Definition) video file.

WMDM_FORMATCODE_ATSCTS

Format code for the Advanced Television Systems Committee (ATSCTS) format standard.

WMDM_FORMATCODE_DVBTS

Format code for an MPEG-2 video and MPEG-1 Layer II, or AC-3, audio within a DVB-compliant MPEG-2 Transport Stream.

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_XMLDOCUMENT

Format code for an XML document.

WMDM_FORMATCODE_MICROSOFTWORDDOCUMENT

Format code for a Microsoft Word document.

WMDM_FORMATCODE_MHTCOMPILEDHTMLDOCUMENT

Format code for a compiled HTML document.

WMDM_FORMATCODE_MICROSOFTEXCELSPREADSHEET

Format code for a Microsoft Excel spreadsheet.

WMDM_FORMATCODE_MICROSOFTPOWERPOINTDOCUMENT

Format code for a Microsoft PowerPoint document.

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_VCALENDAR2

Format code for an electronic calendar item with vcalendar version 2 formatting.

WMDM_FORMATCODE_UNDEFINEDWINDOWSEXECUTABLE

Format code for a Windows-based executable of undefined type.

WMDM_FORMATCODE_MEDIA_CAST

Format code for a media cast object.

WMDM_FORMATCODE_SECTION

Format code for a section of data that is contained in another object.

WMDM_FORMATCODE_3G2A

Format code for a 3G2A (3GPP2A) multimedia container format.

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::SetMetadata 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
Wmdm.idl

See also

Enumeration Types

IWMDMDevice3::GetFormatCapability

IWMDMDevice3::GetProperty

IWMDMStorage3::GetMetadata

IWMDMStorage3::SetMetadata

IWMDMStorage4::GetSpecifiedMetadata

IWMDMStorageControl3::Insert3

Metadata Constants