Structure that contains the metadata item parameters, used by the CX_GetMetadataItem callback.
struct CX_MetadataItem
{
CX_MetadataItem() { ZeroMemory(this, sizeof(*this)); };
DWORD dwFlags;
char* pszID;
void* pData;
UINT cbData;
UINT uDataType;
};
dwFlags
Type: DWORD
Flags (set to 0)
pszID
Type: char*
Item identifier (CX_MDI)
pData
Type: void*
Pointer to item value data
cbData
Type: UINT
Length of item value data
uDataType
Type: UINT
Type of item value data (CX_MDT). This affects what kind of data is pointed at by pData.
pszID is set to a Metadata item identifier (CX_MDI) by the plug-in. pData is allocated by the host application using HeapAlloc() on the process heap. The plug-in is responsible for freeing pData using HeapFree(GetProcessHeap(), 0, pData) (used in the CX_GetMetadataItem and CX_GetFileMetadataItem callback functions).
Header: CX_PlugIn.h