source: trunk/dll/wrappers.h@ 1627

Last change on this file since 1627 was 1627, checked in by Gregg Young, 14 years ago

Add a low mem version of xDosAlloc* wrappers; move error checking into all the xDosAlloc* wrappers. Ticket 471

  • Property svn:eolstyle set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1
2/***********************************************************************
3
4 $Id: wrappers.h 1627 2011-08-26 21:48:06Z gyoung $
5
6 Wrappers with error checking
7
8 Copyright (c) 1993-98 M. Kimes
9 Copyright (c) 2008 Steven H. Levine
10
11 08 Dec 08 SHL Add missing OS2_INCLUDED check
12 12 Jul 09 GKY Add xDosQueryAppType and xDoxAlloc... to allow FM/2 to load in high memory
13 26 Aug 11 GKY Add a low mem version of xDosAlloc* wrappers; move error checking into all the
14 xDosAlloc* wrappers.
15
16***********************************************************************/
17
18#if !defined(WRAPPERS_H)
19#define WRAPPERS_H
20
21#if !defined(OS2_INCLUDED)
22#include <os2.h>
23#endif
24
25APIRET xDosQueryAppType(PCSZ pszName, PULONG pFlags);
26
27APIRET xDosAllocSharedMem(PPVOID ppb,
28 PSZ pszName,
29 ULONG cb,
30 ULONG flag,
31 PCSZ pszSrcFile,
32 UINT uiLineNumber);
33
34APIRET xDosAllocMem(PPVOID ppb,
35 ULONG cb,
36 ULONG flag,
37 PCSZ pszSrcFile,
38 UINT uiLineNumber);
39
40APIRET xDosAllocMemLow(PPVOID ppb,
41 ULONG cb,
42 ULONG flag,
43 PCSZ pszSrcFile,
44 UINT uiLineNumber);
45
46APIRET xDosFindFirst(PSZ pszFileSpec,
47 PHDIR phdir,
48 ULONG flAttribute,
49 PVOID pfindbuf,
50 ULONG cbBuf,
51 PULONG pcFileNames,
52 ULONG ulInfoLevel);
53APIRET xDosFindNext(HDIR hDir,
54 PVOID pfindbuf,
55 ULONG cbfindbuf,
56 PULONG pcFilenames,
57 ULONG ulInfoLevel); // 06 Oct 07 SHL Added
58APIRET xDosSetPathInfo(PSZ pszPathName,
59 ULONG ulInfoLevel,
60 PVOID pInfoBuf,
61 ULONG cbInfoBuf,
62 ULONG flOptions);
63PSZ xfgets(PSZ pszBuf, size_t cMaxBytes, FILE * fp, PCSZ pszSrcFile,
64 UINT uiLineNumber);
65PSZ xfgets_bstripcr(PSZ pszBuf, size_t cMaxBytes, FILE * fp, PCSZ pszSrcFile,
66 UINT uiLineNumber);
67FILE *xfopen(PCSZ pszFileName, PCSZ pszMode, PCSZ pszSrcFile,
68 UINT uiLineNumber, BOOL fSilent);
69VOID xfree(PVOID pv, PCSZ pszSrcFile, UINT uiLineNumber);
70FILE *xfsopen(PCSZ pszFileName, PCSZ pszMode, INT fSharemode, PCSZ pszSrcFile,
71 UINT uiLineNumber, BOOL fSilent);
72PVOID xmalloc(size_t cBytes, PCSZ pszSrcFile, UINT uiLineNumber);
73PVOID xmallocz(size_t cBytes, PCSZ pszSrcFile, UINT uiLineNumber);
74PVOID xrealloc(PVOID pvIn, size_t cBytes, PCSZ pszSrcFile, UINT uiLineNumber);
75PVOID xstrdup(PCSZ pszIn, PCSZ pszSrcFile, UINT uiLineNumber);
76
77// Data declarations
78extern BOOL fNoLargeFileSupport;
79
80#endif // WRAPPERS_H
Note: See TracBrowser for help on using the repository browser.