example.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*
  2. Copyright (c) 1990-1999 Info-ZIP. All rights reserved.
  3. See the accompanying file LICENSE, version 1999-Oct-05 or later
  4. (the contents of which are also included in zip.h) for terms of use.
  5. If, for some reason, both of these files are missing, the Info-ZIP license
  6. also may be found at: ftp://ftp.cdrom.com/pub/infozip/license.html
  7. */
  8. /*
  9. Example header file
  10. */
  11. #ifndef _EXAMPLE_H
  12. #define _EXAMPLE_H
  13. #include <windows.h>
  14. #include <assert.h> /* required for all Windows applications */
  15. #include <stdlib.h>
  16. #include <stdio.h>
  17. #include <commdlg.h>
  18. #include <dlgs.h>
  19. #include <windowsx.h>
  20. #ifndef EXPENTRY
  21. #define EXPENTRY WINAPI
  22. #endif
  23. #include "structs.h"
  24. /* Defines */
  25. #ifndef MSWIN
  26. #define MSWIN
  27. #endif
  28. typedef int (WINAPI * _DLL_ZIP)(ZCL);
  29. typedef int (WINAPI * _ZIP_USER_FUNCTIONS)(LPZIPUSERFUNCTIONS);
  30. typedef BOOL (WINAPI * ZIPSETOPTIONS)(LPZPOPT);
  31. /* Global variables */
  32. extern LPZIPUSERFUNCTIONS lpZipUserFunctions;
  33. extern HINSTANCE hZipDll;
  34. extern int hFile; /* file handle */
  35. /* Global functions */
  36. int WINAPI DisplayBuf(char far *, unsigned long int);
  37. extern _DLL_ZIP ZipArchive;
  38. extern _ZIP_USER_FUNCTIONS ZipInit;
  39. extern ZIPSETOPTIONS ZipSetOptions;
  40. #endif /* _EXAMPLE_H */