ptimeformat
ptimeformat can be used for setting the time value in ContentGetValue.
Declaration:
typedef struct {
WORD wHour;
WORD wMinute;
WORD wSecond;
} *ptimeformat;
Example usage:
int __stdcall ContentGetValue(char* FileName,int FieldIndex,int UnitIndex,void* FieldValue,int maxlen,int flags)
{
WORD Hour,Min,Sec;
if (FieldIndex==index_of_time_field) {
GetFileTime(FileName,&Year,&Month,&Day);
((ptimeformat)FieldValue)->wHour=Hour;
((ptimeformat)FieldValue)->wMinute=Min;
((ptimeformat)FieldValue)->wSecond=Sec;
return ft_time;
}
}