SetDeviceClock

Declaration

Delphi

procedure SetDeviceClock(var Time: TSystemTime; Password: ShortString);

ActiveX

HRESULT SetDeviceClock([in] DATE DateTime, [in] BSTR Password);

Description

Some signature devices has built-in real-time clock. This function adjusts clock value in device.

Arguments

Time, DateTime

New clock value to be written to device.

Password

Due to security reasons, clock value can be set only with a password. If wrong password is provided, function doesn't set clock value and returns false.

Return value

Function returns true if clock value in device has been successfully adjusted, false if clock value hasn't been adjusted or signature device has no clock.