]> git.ipfire.org Git - thirdparty/gcc.git/blob - libphobos/libdruntime/core/sys/windows/lzexpand.d
Add D front-end, libphobos library, and D2 testsuite.
[thirdparty/gcc.git] / libphobos / libdruntime / core / sys / windows / lzexpand.d
1 /**
2 * Windows API header module
3 *
4 * Translated from MinGW Windows headers
5 *
6 * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0)
7 * Source: $(DRUNTIMESRC src/core/sys/windows/_lzexpand.d)
8 */
9 module core.sys.windows.lzexpand;
10 version (Windows):
11
12 version (ANSI) {} else version = Unicode;
13 pragma(lib, "lz32");
14
15 private import core.sys.windows.winbase, core.sys.windows.windef;
16
17 enum : LONG {
18 LZERROR_BADINHANDLE = -1,
19 LZERROR_BADOUTHANDLE = -2,
20 LZERROR_READ = -3,
21 LZERROR_WRITE = -4,
22 LZERROR_GLOBALLOC = -5,
23 LZERROR_GLOBLOCK = -6,
24 LZERROR_BADVALUE = -7,
25 LZERROR_UNKNOWNALG = -8
26 }
27
28 extern (Windows):
29 deprecated {
30 LONG CopyLZFile(INT, INT);
31 void LZDone();
32 INT LZStart();
33 }
34 INT GetExpandedNameA(LPSTR, LPSTR);
35 INT GetExpandedNameW(LPWSTR, LPWSTR);
36 void LZClose(INT);
37 LONG LZCopy(INT, INT);
38 INT LZInit(INT);
39 INT LZOpenFileA(LPSTR, LPOFSTRUCT, WORD);
40 INT LZOpenFileW(LPWSTR, LPOFSTRUCT, WORD);
41 INT LZRead(INT, LPSTR, INT);
42 LONG LZSeek(INT, LONG, INT);
43
44 version (Unicode) {
45 alias GetExpandedNameW GetExpandedName;
46 alias LZOpenFileW LZOpenFile;
47 } else {
48 alias GetExpandedNameA GetExpandedName;
49 alias LZOpenFileA LZOpenFile;
50 }