Changeset 113 for trunk/include/helpers/dosh.h
- Timestamp:
- Oct 23, 2001, 11:25:46 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/helpers/dosh.h
r108 r113 10 10 *@@include #define INCL_DOSDEVIOCTL // for doshQueryDiskParams only 11 11 *@@include #include <os2.h> 12 *@@include #include " dosh.h"12 *@@include #include "helpers\dosh.h" 13 13 */ 14 14 … … 54 54 * 55 55 ********************************************************************/ 56 57 PVOID doshMalloc(ULONG cb, 58 APIRET *parc); 56 59 57 60 PVOID doshAllocSharedMem(ULONG ulSize, … … 314 317 BOOL doshMakeRealName(PSZ pszTarget, PSZ pszSource, CHAR cReplace, BOOL fIsFAT); 315 318 316 ULONG doshQueryFileSize(HFILE hFile); 317 318 ULONG doshQueryPathSize(PSZ pszFile); 319 APIRET doshQueryFileSize(HFILE hFile, 320 PULONG pulSize); 321 322 APIRET doshQueryPathSize(PCSZ pcszFile, 323 PULONG pulSize); 319 324 320 325 APIRET doshQueryPathAttr(const char* pcszFile, … … 340 345 PBYTE pbData); 341 346 347 /* 348 *@@ XFILE: 349 * 350 *@@added V0.9.16 (2001-10-19) [umoeller] 351 */ 352 353 typedef struct _XFILE 354 { 355 HFILE hf; 356 ULONG hmtx; // a HMTX really 357 ULONG cbInitial, // intial file size on open (can be 0 if new) 358 cbCurrent; // current file size (raised with each write) 359 } XFILE, *PXFILE; 360 361 #define XOPEN_READ_EXISTING 1 362 #define XOPEN_READWRITE_APPEND 2 363 #define XOPEN_READWRITE_NEW 3 364 365 APIRET doshOpen(const char *pcszFilename, 366 ULONG ulOpenMode, 367 PULONG pcbFile, 368 PXFILE *ppFile); 369 370 APIRET doshWrite(PXFILE pFile, 371 PCSZ pcsz, 372 ULONG cb); 373 374 APIRET doshWriteLogEntry(PXFILE pFile, 375 const char* pcszFormat, 376 ...); 377 378 APIRET doshClose(PXFILE *ppFile); 379 342 380 APIRET doshLoadTextFile(const char *pcszFile, 343 381 PSZ* ppszContent); … … 355 393 PSZ pszBackup); 356 394 357 HFILE doshOpenLogFile(const char* pcszFilename);358 359 APIRET doshWriteToLogFile(HFILE hfLog, const char* pcsz);360 395 361 396 /* ****************************************************************** … … 395 430 typedef ULONG XWPENTRY DOSHMYTID(VOID); 396 431 typedef DOSHMYTID *PDOSHMYTID; 397 398 APIRET doshFindExecutable(const char *pcszCommand,399 PSZ pszExecutable,400 ULONG cbExecutable,401 const char **papcszExtensions,402 ULONG cExtensions);403 432 404 433 APIRET doshExecVIO(const char *pcszExecWithArgs, … … 816 845 APIRET doshExecFreeResources(PFSYSRESOURCE paResources); 817 846 847 APIRET doshSearchPath(const char *pcszPath, 848 const char *pcszFile, 849 PSZ pszExecutable, 850 ULONG cbExecutable); 851 852 APIRET doshFindExecutable(const char *pcszCommand, 853 PSZ pszExecutable, 854 ULONG cbExecutable, 855 const char **papcszExtensions, 856 ULONG cExtensions); 857 818 858 /******************************************************************** 819 859 *
Note:
See TracChangeset
for help on using the changeset viewer.