DataFormats

Specifies the default and main data formats supported by an application.

Registry Entry

HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID
    \DataFormats
            \DefaultFile = <
defaultfile/objectformat>
            \GetSet
                 \
n = <default formats for EnumFormatEt>

Value Entries

<default file/object format>

Specifies the default, main file or object format for objects of this class.

<default formats for EnumFormatEtc>

Specifies a list of formats for default implementations of EnumFormatEtc3D9Y8W4, where <n> is a zero-based integer index. For example, <n> = <format ,aspect, medium, flag>, where format is a clipboard format, aspect is one or more members of DVASPECT1BLGLB9, medium is one or more members of TYMED1QNCE4N, and flag is one or more members of DATADIR9A.Z_I.

 

Remarks

Information associated with this entry is used by: IDataObject::GetData81EL5_, IDataObject::SetData1ZR_RYO and IDataObject::EnumFormatEtc3D9Y8W4 methods.

The values defined in the following example entry are CF_TEXT, DVASPECT_CONTENT, TYMED_HGLOBAL, and DATADIR_GET | DATADIR_SET.

HKEY_CLASSES_ROOT\CLSID\{ 00000402-0000-0000-C000-000000000046}

    \DataFormats\GetSet\0 = 1,1,1,3

 

The values defined in the following entry are: CF_METAFILEPICT DVASPECT_CONTENT, TYMED_MFPICT, DATADIR_GET.

HKEY_CLASSES_ROOT\CLSID\{ 00000402-0000-0000-C000-000000000046}

    \DataFormats\GetSet\1 = 3,1,32,1

 

The values defined in the following entry are: 2 = cfEmbedSource, DVASPECT_CONTENT, TYMED_ISTORAGE, and DATADIR_GET.

HKEY_CLASSES_ROOT\CLSID\{ 00000402-0000-0000-C000-000000000046}

    \DataFormats\GetSet\2 = Embed Source,1,8,1

 

The values defined in the following entry are: 3 = cfOutline, DVASPECT_CONTENT, TYMED_HGLOBAL, and DATADIR_GET | DATADIR_SET.

HKEY_CLASSES_ROOT\CLSID\{ 00000402-0000-0000-C000-000000000046}

    \DataFormats\GetSet\3 = Outline,1,1,3

 

The following entry declares that the default File Format supported by this application is CF_OUTLINE.

HKEY_CLASSES_ROOT\CLSID\{ 00000402-0000-0000-C000-000000000046}

    \DataFormats\DefaultFile = Outline

 

See Also

IDataObject::GetData, IDataObject::SetData, IDataObject::EnumFormatEtc