X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/dde16144878c81f06c7da19d7d4432ccd397f3e0..9d8dbcc95c9e3ea959f034d5ddb2edcc71fe1f59:/validate.h?ds=sidebyside diff --git a/validate.h b/validate.h new file mode 100755 index 0000000..4e5f639 --- /dev/null +++ b/validate.h @@ -0,0 +1,36 @@ +/* + *validate.h + * Copyright 2000-2002, eSellerate Inc. + * All rights reserved worldwide. + */ + +#ifndef _VALIDATE_API_H_ +#define _VALIDATE_API_H_ + +#ifdef __cplusplus +extern "C" { +#endif + +typedef unsigned char* eSellerate_String; + +typedef short eSellerate_DaysSince2000; + +eSellerate_DaysSince2000 eSellerate_ValidateSerialNumber ( + eSellerate_String serialNumber, /* ASCII Pascal string */ + eSellerate_String nameBasedKey, /* ASCII Pascal string (nil if unneeded) */ + eSellerate_String extraDataKey, /* ASCII Pascal string (nil if unneeded) */ + eSellerate_String publisherKey /* ASCII Pascal string (nil if unneeded) */ +); +/* + * return codes: + * if valid: date (days since January 1 2000) of expiration or (non-expiring) purchase + * if invalid: 0 + */ + +eSellerate_DaysSince2000 eSellerate_Today ( ); /* days from 1/1/2000 to today */ + +#ifdef __cplusplus +} +#endif + +#endif \ No newline at end of file