home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Toolbox / Visual Basic Toolbox (P.I.E.)(1996).ISO / pgm_util / sealit / wizard / cexample / cexample.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-01-07  |  1.5 KB  |  53 lines

  1. // Kustom Magic Software, Copyright (c) 1995, Ralph Krausse
  2. // File Created on 1/7/96 10:58:23 AM
  3.  
  4. #include <stdlib.h>
  5. #include <direct.h>
  6. #include <string.h>
  7. #include <stdio.h>
  8.  
  9. //This struct is what gets passed to the functions 
  10. //declared below. All fields must be filled out
  11.  
  12. typedef struct tagAppInfo  
  13. {
  14.      int bOverWriteSeal;      // flag to over-write current seal
  15.      char szMagicString[20];  // magic string, this string detects the seal if there is one
  16.      char szAppName[260];     // Your magic string
  17. } APPINFO, *pAPPINFO, far *lpAPPINFO;
  18.  
  19. //CExample struct.......... 
  20. typedef struct CExample
  21. {
  22.     int bWinNT;
  23.     int bWin95;
  24.     int bWin31;
  25.     long  dtExpirationDate;
  26.     char szCompany[60];
  27.     char szName[40];
  28.     char szMagicString[20];
  29. }CEXAMPLE;
  30.  
  31.  
  32. typedef struct tagVersion
  33. {
  34.      int iMajor;  // Major version
  35.      int iMinor;  // Minor version
  36.      int iPatch;  // patch version
  37.      int bBeta;   // is version a beta?
  38. } VERSION,*pVERSION,far *lpVERSION;
  39.  
  40. /******************
  41. * Declarations... *
  42. ******************/
  43.  
  44. void GetSealError (int wErr,char *szErrorString);
  45. int ValidateApplication (lpAPPINFO lpAppInfo, int wSealBufferLen, void *vpSealBuffer);
  46. int SealApplication(lpAPPINFO lpAppInfo, int wBufferLen);
  47. int InitializeBuffer(int wLen);
  48. void SaveInt(int wValue);
  49. void SaveLong(long lValue);
  50. void SaveString(char *szValue,int wLen);
  51. void DeInitializeBuffer(void);
  52. void GetAPIVersion(lpVERSION lpVersion);
  53.