1 /***********************************************************************\
2 *                               lzexpand.d                              *
3 *                                                                       *
4 *                       Windows API header module                       *
5 *                                                                       *
6 *                 Translated from MinGW Windows headers                 *
7 *                                                                       *
8 *                       Placed into public domain                       *
9 \***********************************************************************/
10 module win32.lzexpand;
11 pragma(lib, "lz32.lib");
12 
13 private import win32.winbase, win32.windef;
14 
15 enum : LONG {
16 	LZERROR_BADINHANDLE  = -1,
17 	LZERROR_BADOUTHANDLE = -2,
18 	LZERROR_READ         = -3,
19 	LZERROR_WRITE        = -4,
20 	LZERROR_GLOBALLOC    = -5,
21 	LZERROR_GLOBLOCK     = -6,
22 	LZERROR_BADVALUE     = -7,
23 	LZERROR_UNKNOWNALG   = -8
24 }
25 
26 extern (Windows):
27 deprecated {
28 	LONG CopyLZFile(INT, INT);
29 	void LZDone();
30 	INT LZStart();
31 }
32 INT GetExpandedNameA(LPSTR, LPSTR);
33 INT GetExpandedNameW(LPWSTR, LPWSTR);
34 void LZClose(INT);
35 LONG LZCopy(INT, INT);
36 INT LZInit(INT);
37 INT LZOpenFileA(LPSTR, LPOFSTRUCT, WORD);
38 INT LZOpenFileW(LPWSTR, LPOFSTRUCT, WORD);
39 INT LZRead(INT, LPSTR, INT);
40 LONG LZSeek(INT, LONG, INT);
41 
42 version (Unicode) {
43 	alias GetExpandedNameW GetExpandedName;
44 	alias LZOpenFileW LZOpenFile;
45 } else {
46 	alias GetExpandedNameA GetExpandedName;
47 	alias LZOpenFileA LZOpenFile;
48 }