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