Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | Download | RSS feed

  1. /*
  2.   Copyright (c) 1990-2009 Info-ZIP.  All rights reserved.
  3.  
  4.   See the accompanying file LICENSE, version 2009-Jan-02 or later
  5.   (the contents of which are also included in unzip.h) for terms of use.
  6.   If, for some reason, all these files are missing, the Info-ZIP license
  7.   also may be found at:  ftp://ftp.info-zip.org/pub/infozip/license.html
  8. */
  9. /*
  10.  Example header file
  11.  
  12.  Do not use this header file in the WiZ application, use WIZ.H
  13.  instead.
  14.  
  15. */
  16. #ifndef _UZEXAMPL_H
  17. #define _UZEXAMPL_H
  18.  
  19. #include <windows.h>
  20. #ifdef __RSXNT__
  21. #  include "../win32/rsxntwin.h"
  22. #endif
  23. #include <assert.h>    /* required for all Windows applications */
  24. #include <stdlib.h>
  25. #include <stdio.h>
  26. #include <commdlg.h>
  27. #ifndef __RSXNT__
  28. #  include <dlgs.h>
  29. #endif
  30. #include <windowsx.h>
  31.  
  32. #include "../unzip.h"
  33. #include "../windll/structs.h"
  34. #include "../windll/decs.h"
  35.  
  36. /* Defines */
  37.  
  38. typedef const UzpVer * (WINAPI * _DLL_UZVER)(void);
  39. typedef int (WINAPI * _DLL_UNZIP)(int, char **, int, char **,
  40.                                   LPDCL, LPUSERFUNCTIONS);
  41.  
  42. /* Global variables */
  43.  
  44. extern LPUSERFUNCTIONS lpUserFunctions;
  45. extern LPDCL lpDCL;
  46.  
  47. extern HINSTANCE hUnzipDll;
  48.  
  49. extern int hFile;                 /* file handle             */
  50.  
  51. /* Global functions */
  52.  
  53. int WINAPI DisplayBuf(LPSTR, unsigned long);
  54.  
  55. /* Procedure Calls */
  56. #ifdef Z_UINT8_DEFINED
  57. void WINAPI ReceiveDllMessage(z_uint8 ucsize, z_uint8 csize,
  58.     unsigned cfactor,
  59.     unsigned mo, unsigned dy, unsigned yr, unsigned hh, unsigned mm,
  60.     char c, LPCSTR filename, LPCSTR methbuf, unsigned long crc, char fCrypt);
  61. #else
  62. void WINAPI ReceiveDllMessage(unsigned long ucsize, unsigned long csize,
  63.     unsigned cfactor,
  64.     unsigned mo, unsigned dy, unsigned yr, unsigned hh, unsigned mm,
  65.     char c, LPCSTR filename, LPCSTR methbuf, unsigned long crc, char fCrypt);
  66. #endif
  67. void WINAPI ReceiveDllMessage_NO_INT64(unsigned long ucsiz_l,
  68.     unsigned long ucsiz_h, unsigned long csiz_l, unsigned long csiz_h,
  69.     unsigned cfactor,
  70.     unsigned mo, unsigned dy, unsigned yr, unsigned hh, unsigned mm,
  71.     char c, LPCSTR filename, LPCSTR methbuf, unsigned long crc, char fCrypt);
  72. #endif /* _UZEXAMPL_H */
  73.