Debian Codegraph @

windll/windll.h

raw
1 /*
2 windll/windll.h - Zip 3
3
4 Copyright (c) 1990-2004 Info-ZIP. All rights reserved.
5
6 See the accompanying file LICENSE, version 2003-May-08 or later
7 (the contents of which are also included in zip.h) for terms of use.
8 If, for some reason, all these files are missing, the Info-ZIP license
9 also may be found at: ftp://ftp.info-zip.org/pub/infozip/license.html
10 */
11 /*
12 WiZ 1.0 header file for zip dll
13 */
14 #ifndef _WINDLL_H
15 #define _WINDLL_H
16
17 #include "structs.h"
18
19 #ifndef MSWIN
20 #define MSWIN
21 #endif
22
23 #ifndef USE_ZIPMAIN
24 # define USE_ZIPMAIN
25 #endif
26
27 #ifndef NDEBUG
28 # define WinAssert(exp) \
29 {\
30 if (!(exp))\
31 {\
32 char szBuffer[40];\
33 sprintf(szBuffer, "File %s, Line %d",\
34 __FILE__, __LINE__) ;\
35 if (IDABORT == MessageBox((HWND)NULL, szBuffer,\
36 "Assertion Error",\
37 MB_ABORTRETRYIGNORE|MB_ICONSTOP))\
38 FatalExit(-1);\
39 }\
40 }
41
42 #else
43 # define WinAssert(exp)
44 #endif
45
46 #define cchFilesMax 4096
47
48 extern int WINAPI ZpArchive(ZCL C, LPZPOPT Opts);
49 extern HWND hGetFilesDlg;
50 extern char szFilesToAdd[80];
51 extern char rgszFiles[cchFilesMax];
52 BOOL WINAPI CommentBoxProc(HWND hwndDlg, WORD wMessage, WPARAM wParam, LPARAM lParam);
53 BOOL PasswordProc(HWND, WORD, WPARAM, LPARAM);
54 void CenterDialog(HWND hwndParent, HWND hwndDlg);
55 void comment(unsigned int);
56
57 extern LPSTR szCommentBuf;
58 extern HANDLE hStr;
59 extern HWND hWndMain;
60 void __far __cdecl perror(const char *);
61
62 #endif /* _WINDLL_H */
63