3 * Copyright 2000-2002, eSellerate Inc.
\r
4 * All rights reserved worldwide.
\r
7 #ifndef _VALIDATE_API_H_
\r
8 #define _VALIDATE_API_H_
\r
14 typedef unsigned char* eSellerate_String;
\r
16 typedef short eSellerate_DaysSince2000;
\r
18 eSellerate_DaysSince2000 eSellerate_ValidateSerialNumber (
\r
19 eSellerate_String serialNumber, /* ASCII Pascal string */
\r
20 eSellerate_String nameBasedKey, /* ASCII Pascal string (nil if unneeded) */
\r
21 eSellerate_String extraDataKey, /* ASCII Pascal string (nil if unneeded) */
\r
22 eSellerate_String publisherKey /* ASCII Pascal string (nil if unneeded) */
\r
26 * if valid: date (days since January 1 2000) of expiration or (non-expiring) purchase
\r
30 eSellerate_DaysSince2000 eSellerate_Today ( ); /* days from 1/1/2000 to today */
\r