/*********************************************************************** $Id: wrappers.h 1544 2010-09-30 13:00:59Z gyoung $ Wrappers with error checking Copyright (c) 1993-98 M. Kimes Copyright (c) 2008 Steven H. Levine 08 Dec 08 SHL Add missing OS2_INCLUDED check 12 Jul 09 GKY Add xDosQueryAppType and xDoxAlloc... to allow FM/2 to load in high memory ***********************************************************************/ #if !defined(WRAPPERS_H) #define WRAPPERS_H #if !defined(OS2_INCLUDED) #include #endif APIRET xDosQueryAppType(PCSZ pszName, PULONG pFlags); APIRET xDosAllocSharedMem(PPVOID ppb, PSZ pszName, ULONG cb, ULONG flag); APIRET xDosAllocMem(PPVOID ppb, ULONG cb, ULONG flag, PCSZ pszSrcFile, UINT uiLineNumber); APIRET xDosFindFirst(PSZ pszFileSpec, PHDIR phdir, ULONG flAttribute, PVOID pfindbuf, ULONG cbBuf, PULONG pcFileNames, ULONG ulInfoLevel); APIRET xDosFindNext(HDIR hDir, PVOID pfindbuf, ULONG cbfindbuf, PULONG pcFilenames, ULONG ulInfoLevel); // 06 Oct 07 SHL Added APIRET xDosSetPathInfo(PSZ pszPathName, ULONG ulInfoLevel, PVOID pInfoBuf, ULONG cbInfoBuf, ULONG flOptions); PSZ xfgets(PSZ pszBuf, size_t cMaxBytes, FILE * fp, PCSZ pszSrcFile, UINT uiLineNumber); PSZ xfgets_bstripcr(PSZ pszBuf, size_t cMaxBytes, FILE * fp, PCSZ pszSrcFile, UINT uiLineNumber); FILE *xfopen(PCSZ pszFileName, PCSZ pszMode, PCSZ pszSrcFile, UINT uiLineNumber, BOOL fSilent); VOID xfree(PVOID pv, PCSZ pszSrcFile, UINT uiLineNumber); FILE *xfsopen(PCSZ pszFileName, PCSZ pszMode, INT fSharemode, PCSZ pszSrcFile, UINT uiLineNumber, BOOL fSilent); PVOID xmalloc(size_t cBytes, PCSZ pszSrcFile, UINT uiLineNumber); PVOID xmallocz(size_t cBytes, PCSZ pszSrcFile, UINT uiLineNumber); PVOID xrealloc(PVOID pvIn, size_t cBytes, PCSZ pszSrcFile, UINT uiLineNumber); PVOID xstrdup(PCSZ pszIn, PCSZ pszSrcFile, UINT uiLineNumber); // Data declarations extern BOOL fNoLargeFileSupport; #endif // WRAPPERS_H