AdsNotificationHeader
This structure is also passed to the callback function.
typedef struct {
ULONG hNotification;
__int64 nTimeStamp;
ULONG cbSampleSize;
UCHAR data[ANYSIZE_ARRAY];
} AdsNotificationHeader, *PAdsNotificationHeader;
Elements
hNotification
Handle for the notification. Is specified when the notification is defined;
nTimeStamp
Time stamp in FILETIME format.
cbSampleSize
Number of bytes transferred.
data[ANY_SIZE_ARRAY]
Array with the transferred data.
Comment
The time stamp is transferred in the FILETIME format. FILETIME is a 64-bit variable, representing the time and date in 100 ns steps, starting from 01.01.1601. Local time shift is not considered; coordinated universal time (UTC) is used. If you want access to the individual elements (day, month, year, hour, minute, second) you need to convert the time stamp from the FILETIME format to the SYSTEMTIME format, and then calculate the time, taking local time shifts into account.