GetSerialNumber

Availability All terminals
Description This function returns the unique serial number that is printed on the back of the terminal. The main advantage of using this function instead of GetTerminalId() is that the serial number is unique and never has to be manually (re)configured.
Syntax long GetSerialNumber( void );
Arguments None
Returns The unique serial number of the terminal that is printed on the back of the terminal.
Remarks The serial number is programmed in non-volatile memory during production and can not be manually changed.
Example
#include <stdio.h>
#include "lib.h"

void main(void)
{
    for(;;)
    {
        ResetKey();

        while(!kbhit())
            Idle();

        printf("\nSerial: %06ld", GetSerialNumber());
        Sound(TSTANDARD, VHIGH, SHIGH, 0);
    }
}