DVP_SetMetaData(
     LPCWSTR:lpszName,
     LPDVPSETMETADATA:pData
)
→ LONG

Arguments

lpszName

[in] The name of the file

pData

[in,out] Points to the first of a linked list of DVPSETMETADATA structures

FieldTypeDescription
osm_pNextDVPSetMetaData*Next structure in the list
osm_pszAttrLPCWSTRName of the attribute (see below)
osm_typeDVPMetaTypeType of the data (see below)
osm_cbSizeDWORDSize of the data
osm_pDataDWORD_PTRThe data
osm_statusDVPMetaStatusStatus for this attribute (see below)

Description

The DVP_SetMetaData function is called to set metadata for a file.

The following attribute names are defined for osm_pszAttr:

DVMETA_RATINGL"Opus/Rating"
DVMETA_TAGSL"Opus/Tags"
DVMETA_COMMENTL"Opus/Comment"

The osm_type field is one of the following DVPMetaType values:

MetaType_RemoveRemove this attribute
MetaType_DWORD
MetaType_String
MetaType_StringMultiple
MetaType_Binary
MetaType_Bool
MetaType_FILETIMELocal time, not UTC. Previously called MetaType_QWORD

The osm_status field is one of the following DVPMetaStatus values:

MetaStatus_Ok
MetaStatus_NotSupported
MetaStatus_BadType
MetaStatus_Failed

This function was added in Directory Opus 10 (VIEWERPLUGINVERSION 5).