Changeset 1845 for trunk/dll/wrappers.h
- Timestamp:
- Aug 12, 2015, 9:54:49 PM (10 years ago)
- File:
-
- 1 edited
-
trunk/dll/wrappers.h (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/wrappers.h
r1839 r1845 7 7 8 8 Copyright (c) 1993-98 M. Kimes 9 Copyright (c) 2008 , 2015Steven H. Levine9 Copyright (c) 2008 Steven H. Levine 10 10 11 11 08 Dec 08 SHL Add missing OS2_INCLUDED check … … 13 13 26 Aug 11 GKY Add a low mem version of xDosAlloc* wrappers; move error checking into all the 14 14 xDosAlloc* wrappers. 15 09 Aug 15 SHL Add xDosGetInfoBlocks 15 12 Aug 15 JBS Ticket #524: Ensure no "highmem-unsafe" functions are called directly 16 1) New functions have been added 17 2) Code for unsafe-but-not-yet-used-by-FM/2 has been added in an 18 "#if 0" block in wrappers.c for quick implementation should FM/2 start to use them. 19 Among these. xDosOpenL and xWinUpper still need work. The rest are ready for use. 16 20 17 21 ***********************************************************************/ … … 24 28 #endif 25 29 26 APIRET xDosQueryAppType(PCSZ pszName, PULONG pFlags); 30 // Functions wrapped because they are not safe with high memory addresses 27 31 28 APIRET xDosAllocSharedMem(PPVOID ppb, 29 PSZ pszName, 30 ULONG cb, 31 PCSZ pszSrcFile, 32 UINT uiLineNumber); 32 APIRET xDosDupHandle(HFILE hFile, 33 PHFILE phFile); 34 35 APIRET xDosForceDelete(PSZ pszFileName); 36 37 APIRET xDosQueryHType(HFILE hFile, 38 PULONG pulType, 39 PULONG pulAttr); 40 41 APIRET xDosQueryAppType(PCSZ pszName, 42 PULONG pFlags); 43 44 #ifdef INCL_DOSSESMGR 45 APIRET xDosStartSession(PSTARTDATA psd, 46 PULONG pulSessionID, 47 PPID ppid); 48 #endif 49 50 // Functions wrapped for other reasons 33 51 34 52 APIRET xDosAllocMem(PPVOID ppb, … … 42 60 UINT uiLineNumber); 43 61 62 APIRET xDosAllocSharedMem(PPVOID ppb, 63 PSZ pszName, 64 ULONG cb, 65 PCSZ pszSrcFile, 66 UINT uiLineNumber); 67 44 68 APIRET xDosFindFirst(PSZ pszFileSpec, 45 69 PHDIR phdir, 46 ULONG flAttribute,47 PVOID pfindbuf,48 ULONG cbBuf,70 ULONG flAttribute, 71 PVOID pfindbuf, 72 ULONG cbBuf, 49 73 PULONG pcFileNames, 50 ULONG ulInfoLevel); 51 APIRET xDosFindNext(HDIR hDir, 52 PVOID pfindbuf, 53 ULONG cbfindbuf, 74 ULONG ulInfoLevel); 75 76 APIRET xDosFindNext(HDIR hDir, 77 PVOID pfindbuf, 78 ULONG cbfindbuf, 54 79 PULONG pcFilenames, 55 ULONG ulInfoLevel); // 06 Oct 07 SHL Added80 ULONG ulInfoLevel); // 06 Oct 07 SHL Added 56 81 57 #ifdef INCL_DOSPROCESS // // PPIB PTIB82 #ifdef INCL_DOSPROCESS // // PPIB PTIB 58 83 APIRET xDosGetInfoBlocks(PTIB *pptib, 59 PPIB *pppib); // 2015-08-09 SHL added84 PPIB *pppib); // 2015-08-09 SHL added 60 85 #endif 61 86 62 APIRET xDosSetPathInfo(PSZ pszPathName,87 APIRET xDosSetPathInfo(PSZ pszPathName, 63 88 ULONG ulInfoLevel, 64 89 PVOID pInfoBuf, 65 90 ULONG cbInfoBuf, 66 91 ULONG flOptions); 92 67 93 PSZ xfgets(PSZ pszBuf, size_t cMaxBytes, FILE * fp, PCSZ pszSrcFile, 68 94 UINT uiLineNumber); … … 79 105 PVOID xstrdup(PCSZ pszIn, PCSZ pszSrcFile, UINT uiLineNumber); 80 106 107 #define HIGH_MEMORY_ADDRESS(p) (((ULONG)p) >= (512*1024*1024)) 108 81 109 // Data declarations 82 110 extern BOOL fNoLargeFileSupport; 83 111 112 84 113 #endif // WRAPPERS_H
Note:
See TracChangeset
for help on using the changeset viewer.
