home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 9 Archive / 09-Archive.zip / unzip531.zip / windll / windll.h < prev    next >
C/C++ Source or Header  |  1997-05-25  |  1KB  |  60 lines

  1. #ifndef __windll_h   /* prevent multiple inclusions */
  2. #define __windll_h
  3.  
  4. #include <windows.h>
  5. #include <assert.h>    /* required for all Windows applications */
  6. #include <setjmp.h>
  7. #include <commdlg.h>
  8. #ifndef __RSXNT__
  9. #  include <dlgs.h>
  10. #endif
  11. #define UNZIP_INTERNAL
  12. #include "unzip.h"
  13. #include "structs.h"
  14.  
  15. #ifndef MSWIN
  16. #  define MSWIN
  17. #endif
  18.  
  19. /* Allow compilation under Borland C++ also */
  20. #ifndef __based
  21. #  define __based(A)
  22. #endif
  23.  
  24. #ifndef PATH_MAX
  25. #  define PATH_MAX 128            /* max total file or directory name path */
  26. #endif
  27.  
  28. /* These two are dependent on the zip directory listing format string.
  29.  * They help find the filename in the listbox entry.
  30.  */
  31. #define SHORT_FORM_FNAME_INX     27
  32. #define LONG_FORM_FNAME_INX      58
  33.  
  34. #define IDM_REPLACE_NO     100
  35. #define IDM_REPLACE_TEXT   101
  36. #define IDM_REPLACE_YES    102
  37. #define IDM_REPLACE_ALL    103
  38. #define IDM_REPLACE_NONE   104
  39. #define IDM_REPLACE_RENAME 105
  40. #define IDM_REPLACE_HELP   106
  41.  
  42. extern jmp_buf dll_error_return;
  43.  
  44. extern HANDLE hInst;        /* current instance */
  45.  
  46. extern LPDCL lpDCL;
  47. extern LPUSERFUNCTIONS lpUserFunctions;
  48.  
  49. #ifdef UNZIP_INTERNAL
  50. void FreeDllMem(__GPRO);
  51. int win_fprintf(FILE *file, unsigned int, char far *);
  52. #endif
  53.  
  54. BOOL    WINAPI Unz_Init(zvoid *, USERFUNCTIONS far *);
  55. BOOL    WINAPI Unz_SetOpts(zvoid *, LPDCL);
  56. int     WINAPI Unz_Unzip(zvoid *, int, char **);
  57. extern  WINAPI windll_unzip(int, char **, DCL far *, USERFUNCTIONS far *);
  58.  
  59. #endif /* __windll_h */
  60.