GetDeviceClock
Declaration
Delphi
function GetDeviceClock(var Time: TSystemTime): Boolean;
C/C++
SOPAD_API BOOL SOPAD_GetDeviceClock(LPSYSTEMTIME pTime);
ActiveX
HRESULT GetDeviceClock([out] DATE* DateTime, [out, retval] VARIANT_BOOL* Result);
Description
Some signature devices has built-in real-time clock. This function queries clock value from device.
Arguments
Time, DateTime
Output parameter. Clock value received from device.
Return value
Function returns true if clock value has been successfully received, false if clock value hasn't been received or signature device has no clock.
Sample
C#
// Read DeviceTime (not all SignaturePads have an internal clock)Â DateTime deviceTime; SigDev.GetDeviceClock(out deviceTime);