For demonstration the open source JPG comment, EXIF and IPTC metadata content plugin Vs 2.1.4.0 is used.
The declaration of ContentSetValue() looks like
Code: Select all
int ContentSetValue(char* FileName, int FieldIndex, int UnitIndex, int FieldType, void* FieldValue, int flags);
Code: Select all
ContentSetValue("C:\\file.jpg", 21, 0, 8, 0x00c2dca4, 1)
ContentSetValue("C:\\file.jpg", 23, 0, 8, 0x00c2e71c, 2)
ContentSetValue(NULL, -1, -1, 0, 0x00000000, 0)
Code: Select all
ContentSetValue("C:\\file.jpg", 21, 0, 8, 0x00c28918, 1)
ContentSetValue("C:\\file.jpg", 0 /* bug: value 23 is expected */, 0, 8, 0x00bef978, 0)
ContentSetValue("C:\\file.jpg", 3, 0, 8, 0x00bf07b8, 2)
ContentSetValue(NULL, -1, -1, 0, 0x00000000, 0)