home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1997 May
/
Pcwk0597.iso
/
borland
/
cb
/
setup
/
cbuilder
/
data.z
/
LZEXPAND.HPP
< prev
next >
Wrap
C/C++ Source or Header
|
1997-02-28
|
3KB
|
73 lines
//----------------------------------------------------------------------------
// LZExpand.hpp - bcbdcc32 generated hdr (DO NOT EDIT) rev: 0
// From: LZExpand.pas
//----------------------------------------------------------------------------
#ifndef LZExpandHPP
#define LZExpandHPP
//----------------------------------------------------------------------------
#include <Windows.hpp>
#include <System.hpp>
#pragma warn -par
#pragma warn -hid
#pragma warn -inl
namespace Lzexpand
{
//-- type declarations -------------------------------------------------------
//-- var, const, procedure ---------------------------------------------------
#define LZERROR_BADINHANDLE (Shortint)(-1)
#define LZERROR_BADOUTHANDLE (Shortint)(-2)
#define LZERROR_READ (Shortint)(-3)
#define LZERROR_WRITE (Shortint)(-4)
#define LZERROR_GLOBALLOC (Shortint)(-5)
#define LZERROR_GLOBLOCK (Shortint)(-6)
#define LZERROR_BADVALUE (Shortint)(-7)
#define LZERROR_UNKNOWNALG (Shortint)(-8)
extern "C" int __stdcall GetExpandedNameA(char * Source, char * Buffer);
extern "C" int __stdcall GetExpandedNameW(wchar_t * Source, wchar_t * Buffer);
extern "C" int __stdcall GetExpandedName(char * Source, char * Buffer);
extern "C" void __stdcall LZClose(int hFile);
extern "C" long __stdcall LZCopy(int Source, int Dest);
extern "C" int __stdcall LZInit(int Source);
extern "C" int __stdcall LZOpenFileA(char * Filename, OFSTRUCT &ReOpenBuff, Word Style);
extern "C" int __stdcall LZOpenFileW(wchar_t * Filename, OFSTRUCT &ReOpenBuff, Word Style);
extern "C" int __stdcall LZOpenFile(char * Filename, OFSTRUCT &ReOpenBuff, Word Style);
extern "C" int __stdcall LZRead(int hFile, char * Buffer, int Count);
extern "C" long __stdcall LZSeek(int hFile, long Offset, int Origin);
#if defined(UNICODE)
inline int __stdcall GetExpandedName(wchar_t * Source, wchar_t * Buffer)
{
return GetExpandedNameW(Source, Buffer);
}
#else
inline int __stdcall GetExpandedName(char * Source, char * Buffer)
{
return GetExpandedNameA(Source, Buffer);
}
#endif
#if defined(UNICODE)
inline int __stdcall LZOpenFile(wchar_t * Filename, OFSTRUCT &ReOpenBuff, Word Style)
{
return LZOpenFileW(Filename, ReOpenBuff, Style);
}
#else
inline int __stdcall LZOpenFile(char * Filename, OFSTRUCT &ReOpenBuff, Word Style)
{
return LZOpenFileA(Filename, ReOpenBuff, Style);
}
#endif
} /* namespace Lzexpand */
#pragma warn .par
#pragma warn .hid
#pragma warn .inl
#if !defined(NO_IMPLICIT_NAMESPACE_USE)
using namespace Lzexpand;
#endif
//-- end unit ----------------------------------------------------------------
#endif // LZExpand