Technical Manual
© 2006-2010 by HIKVISION. All rights reserved. 47
5.1.49. int HW_SetFileRef(int hChannel, UINT bEnable,FILE_REF_DONE_CALLBACK
FileRefDoneCallback);
Parameter:
int nChannel channel handler;
UINT bEnable enable or disable
FileRefDoneCallback The callback after the
index created
typedef void (*FILE_REF_DONE_CALLBACK)(UINT nChannel,UINT nSize);
UINT nChannel the channel number
UINT nSize the size of the
Index( invalid now)
Explanation:
Set the index for the decoding file. Please call before HW_OpenFile()
5.1.50. int HW_GetFileAbsoluteTime( int hChannel, SYSTEMTIME *pStartTime, SYSTEMTIME
*pEndTime);
Parameter:
int hChannel channel handler;
SYSTEMTIME* pStartTime begin time for the recoding
SYSTEMTIME* pEndTime end time for the recoding
Explanation:
Get the absolute time for the recoding file.
Note:The millisecond in the struct SYSTEMTIME is invalid now and always is 0.
5.1.51. int HW_GetCurrentAbsoluteTime(int hChannel,SYSTEMTIME *pTime);
Parameter:
int hChannel channel handler;
SYSTEMTIEM* pTime the current absolute
time of the recording
Explanation:
Get the current absolute time of the recording file
Note:The millisecond in the struct SYSTEMTIME is invalid now and always is 0.
5.1.52. int HW_LocateByAbsoluteTime(int hChannel,SYSTEMTIME time);
Parameter:
int hChannel channel handler;
SYSTEMTIME time the absolute time that want to locate
Explanation:
Locate the playing by absolute time. It will be valid after set the index and on file mode
Note:the millisecond in the struct SYSTEMTIME is invalid now and always is 0.
And the begin time could get by calling HW_GetFileAbsoluteTime()