/
lzexpand.d
50 lines (45 loc) · 1.19 KB
/
lzexpand.d
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
/**
* Windows API header module
*
* Translated from MinGW Windows headers
*
* License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0)
* Source: $(DRUNTIMESRC core/sys/windows/_lzexpand.d)
*/
module core.sys.windows.lzexpand;
version (Windows):
version (ANSI) {} else version = Unicode;
pragma(lib, "lz32");
import core.sys.windows.winbase, core.sys.windows.windef;
enum : LONG {
LZERROR_BADINHANDLE = -1,
LZERROR_BADOUTHANDLE = -2,
LZERROR_READ = -3,
LZERROR_WRITE = -4,
LZERROR_GLOBALLOC = -5,
LZERROR_GLOBLOCK = -6,
LZERROR_BADVALUE = -7,
LZERROR_UNKNOWNALG = -8
}
extern (Windows):
deprecated {
LONG CopyLZFile(INT, INT);
void LZDone();
INT LZStart();
}
INT GetExpandedNameA(LPSTR, LPSTR);
INT GetExpandedNameW(LPWSTR, LPWSTR);
void LZClose(INT);
LONG LZCopy(INT, INT);
INT LZInit(INT);
INT LZOpenFileA(LPSTR, LPOFSTRUCT, WORD);
INT LZOpenFileW(LPWSTR, LPOFSTRUCT, WORD);
INT LZRead(INT, LPSTR, INT);
LONG LZSeek(INT, LONG, INT);
version (Unicode) {
alias GetExpandedNameW GetExpandedName;
alias LZOpenFileW LZOpenFile;
} else {
alias GetExpandedNameA GetExpandedName;
alias LZOpenFileA LZOpenFile;
}