I call ContentGetSupportedField function to get avaialble fields until function returns 0, but this only returns fields for first level of hierarchy.
For instance, plugin, filediz has fields
Short description=0
Long description=1
Version info=2
and Version info contain another set of fields. How can I get their names/indexes. I don't see this described in SDK. ( looking at version 1.4)
Code: Select all
TC_GetField(FileName, tcplug, idx=0, unit=0){
;ft_fieldempty=-3, ft_nosuchfield=-1, ft_fileerror=-2
VarSetCapacity(info,512,0)
res := DllCall(tcplug "\ContentGetValue", "str", FileName, "int", idx, "int", unit, "uint", &info, "int", 512, "int", 0)
VarSetCapacity(info,-1)
return info
}