Adding loads of neato registration stuff!
[MenuTunes.git] / validate.h
diff --git a/validate.h b/validate.h
new file mode 100755 (executable)
index 0000000..4e5f639
--- /dev/null
@@ -0,0 +1,36 @@
+/*\r
+ *validate.h\r
+ *   Copyright 2000-2002, eSellerate Inc.\r
+ *   All rights reserved worldwide.\r
+ */\r
+\r
+#ifndef _VALIDATE_API_H_\r
+#define _VALIDATE_API_H_\r
+\r
+#ifdef __cplusplus\r
+extern "C" {\r
+#endif\r
+\r
+typedef unsigned char* eSellerate_String;\r
+\r
+typedef short eSellerate_DaysSince2000;\r
+\r
+eSellerate_DaysSince2000 eSellerate_ValidateSerialNumber (\r
+  eSellerate_String serialNumber, /* ASCII Pascal string                   */\r
+  eSellerate_String nameBasedKey, /* ASCII Pascal string (nil if unneeded) */\r
+  eSellerate_String extraDataKey, /* ASCII Pascal string (nil if unneeded) */\r
+  eSellerate_String publisherKey  /* ASCII Pascal string (nil if unneeded) */\r
+);\r
+/*\r
+ * return codes:\r
+ *   if valid: date (days since January 1 2000) of expiration or (non-expiring) purchase\r
+ *   if invalid: 0\r
+ */\r
+\r
+eSellerate_DaysSince2000 eSellerate_Today ( ); /* days from 1/1/2000 to today */\r
+\r
+#ifdef __cplusplus\r
+}\r
+#endif\r
+\r
+#endif
\ No newline at end of file