source: trunk/dll/wrappers.h@ 1438

Last change on this file since 1438 was 1438, checked in by Gregg Young, 16 years ago

Improved drivebar changes; Added AddBackslashToPath() to remove repeatative code. replaced "
" with PCSZ variable; ANY_OBJ added the DosAlloc... (experimental)

  • Property svn:eolstyle set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1
2/***********************************************************************
3
4 $Id: wrappers.h 1438 2009-06-28 20:47:00Z 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
13***********************************************************************/
14
15#if !defined(WRAPPERS_H)
16#define WRAPPERS_H
17
18#if !defined(OS2_INCLUDED)
19#include <os2.h>
20#endif
21
22APIRET xDosAllocSharedMem(PPVOID ppb,
23 PSZ pszName,
24 ULONG cb,
25 ULONG flag);
26
27APIRET xDosAllocMem(PPVOID ppb,
28 ULONG cb,
29 ULONG flag);
30
31APIRET xDosFindFirst(PSZ pszFileSpec,
32 PHDIR phdir,
33 ULONG flAttribute,
34 PVOID pfindbuf,
35 ULONG cbBuf,
36 PULONG pcFileNames,
37 ULONG ulInfoLevel);
38APIRET xDosFindNext(HDIR hDir,
39 PVOID pfindbuf,
40 ULONG cbfindbuf,
41 PULONG pcFilenames,
42 ULONG ulInfoLevel); // 06 Oct 07 SHL Added
43APIRET xDosSetPathInfo(PSZ pszPathName,
44 ULONG ulInfoLevel,
45 PVOID pInfoBuf,
46 ULONG cbInfoBuf,
47 ULONG flOptions);
48PSZ xfgets(PSZ pszBuf, size_t cMaxBytes, FILE * fp, PCSZ pszSrcFile,
49 UINT uiLineNumber);
50PSZ xfgets_bstripcr(PSZ pszBuf, size_t cMaxBytes, FILE * fp, PCSZ pszSrcFile,
51 UINT uiLineNumber);
52FILE *xfopen(PCSZ pszFileName, PCSZ pszMode, PCSZ pszSrcFile,
53 UINT uiLineNumber);
54VOID xfree(PVOID pv, PCSZ pszSrcFile, UINT uiLineNumber);
55FILE *xfsopen(PCSZ pszFileName, PCSZ pszMode, INT fSharemode, PCSZ pszSrcFile,
56 UINT uiLineNumber);
57PVOID xmalloc(size_t cBytes, PCSZ pszSrcFile, UINT uiLineNumber);
58PVOID xmallocz(size_t cBytes, PCSZ pszSrcFile, UINT uiLineNumber);
59PVOID xrealloc(PVOID pvIn, size_t cBytes, PCSZ pszSrcFile, UINT uiLineNumber);
60PVOID xstrdup(PCSZ pszIn, PCSZ pszSrcFile, UINT uiLineNumber);
61
62// Data declarations
63extern BOOL fNoLargeFileSupport;
64
65#endif // WRAPPERS_H
Note: See TracBrowser for help on using the repository browser.