Share via


Requirements for Objects

banner art

Previous Next

Requirements for Objects

WPD classifies all objects by content type. An object of a specific type is expected to support a minimum list of properties and resources (and, for the device object, a set of commands). An object's type is described by its WPD_OBJECT_CONTENT_TYPE property; every object must support this property.

WPD defines the following content types (as GUID values). A vendor is free to create their own custom-content type by providing their own GUID.

Note   General purpose applications will typically only handle one of the predefined types. Vendor applications can, of course, take full advantage of the available custom types.

To learn which properties and resources each must support, see the description page for each of the following object types.

Content Type GUID Description
WPD_CONTENT_TYPE_ALL This content type is only valid to use in certain query methods to indicate that you are interested in all device types; you cannot create an object of this type.

If you are designing a custom object, it must support these properties, at minimum.

WPD_CONTENT_TYPE_APPOINTMENT Object is an appointment in a calendar.
WPD_CONTENT_TYPE_AUDIO_ALBUM Object is an audio album.
WPD_CONTENT_TYPE_AUDIO Object is an audio file, such as a WMA or MP3 file.
WPD_CONTENT_TYPE_CALENDAR Object is a calendar.
WPD_CONTENT_TYPE_CERTIFICATE Object is a certificate.
WPD_CONTENT_TYPE_CONTACT Object is personal contact data, such as a vCard file.
WPD_CONTENT_TYPE_CONTACT_GROUP Object is a contact group.
WPD_CONTENT_TYPE_DOCUMENT Object is a container for text, with or without formatting. Examples include Microsoft Word files and plain text files.
WPD_CONTENT_TYPE_EMAIL Object is an e-mail.
WPD_CONTENT_TYPE_FOLDER Object is a folder.
WPD_CONTENT_TYPE_FUNCTIONAL_OBJECT Object is a functional object, representing device functionality.
WPD_CONTENT_TYPE_GENERIC_FILE Object is a generic physical file.
WPD_CONTENT_TYPE_GENERIC_MESSAGE Object is a generic message.
WPD_CONTENT_TYPE_IMAGE_ALBUM Object is an image album.
WPD_CONTENT_TYPE_IMAGE Object is a still image, such as a JPEG file.
WPD_CONTENT_TYPE_MEDIA_CAST Object is a container that groups related content, just as a playlist groups music
WPD_CONTENT_TYPE_MEMO Object is a text note.
WPD_CONTENT_TYPE_MIXED_CONTENT_ALBUM Object is an album of mixed media objects—for example, audio, image, and video files.
WPD_CONTENT_TYPE_NETWORK_ASSOCIATION Object that represents an association between a host and a device.
WPD_CONTENT_TYPE_PLAYLIST Object is a playlist.
WPD_CONTENT_TYPE_PROGRAM Object is an executable.
WPD_CONTENT_TYPE_SECTION Object that represents a section of data that is contained in another object.
WPD_CONTENT_TYPE_TASK Object is a task, such as an item in a to-do list.
WPD_CONTENT_TYPE_UNSPECIFIED Object is a generic object.
WPD_CONTENT_TYPE_VIDEO_ALBUM Object is a video album.
WPD_CONTENT_TYPE_VIDEO Object is a video, such as a WMV or AVI file.
WPD_CONTENT_TYPE_WIRELESS_PROFILE Object that represents information used to access a wireless network.

See Also

Previous Next