windll.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /*
  2. windll/windll.h - Zip 3
  3. Copyright (c) 1990-2004 Info-ZIP. All rights reserved.
  4. See the accompanying file LICENSE, version 2003-May-08 or later
  5. (the contents of which are also included in zip.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. WiZ 1.0 header file for zip dll
  11. */
  12. #ifndef _WINDLL_H
  13. #define _WINDLL_H
  14. #include "structs.h"
  15. #ifndef MSWIN
  16. #define MSWIN
  17. #endif
  18. #ifndef USE_ZIPMAIN
  19. # define USE_ZIPMAIN
  20. #endif
  21. #ifndef NDEBUG
  22. # define WinAssert(exp) \
  23. {\
  24. if (!(exp))\
  25. {\
  26. char szBuffer[40];\
  27. sprintf(szBuffer, "File %s, Line %d",\
  28. __FILE__, __LINE__) ;\
  29. if (IDABORT == MessageBox((HWND)NULL, szBuffer,\
  30. "Assertion Error",\
  31. MB_ABORTRETRYIGNORE|MB_ICONSTOP))\
  32. FatalExit(-1);\
  33. }\
  34. }
  35. #else
  36. # define WinAssert(exp)
  37. #endif
  38. #define cchFilesMax 4096
  39. extern int WINAPI ZpArchive(ZCL C, LPZPOPT Opts);
  40. extern HWND hGetFilesDlg;
  41. extern char szFilesToAdd[80];
  42. extern char rgszFiles[cchFilesMax];
  43. BOOL WINAPI CommentBoxProc(HWND hwndDlg, WORD wMessage, WPARAM wParam, LPARAM lParam);
  44. BOOL PasswordProc(HWND, WORD, WPARAM, LPARAM);
  45. void CenterDialog(HWND hwndParent, HWND hwndDlg);
  46. void comment(unsigned int);
  47. extern LPSTR szCommentBuf;
  48. extern HANDLE hStr;
  49. extern HWND hWndMain;
  50. void __far __cdecl perror(const char *);
  51. #endif /* _WINDLL_H */