Ignore:
Timestamp:
Oct 23, 2001, 11:25:46 PM (24 years ago)
Author:
umoeller
Message:

Misc updates.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/helpers/dosh.h

    r108 r113  
    1010 *@@include #define INCL_DOSDEVIOCTL    // for doshQueryDiskParams only
    1111 *@@include #include <os2.h>
    12  *@@include #include "dosh.h"
     12 *@@include #include "helpers\dosh.h"
    1313 */
    1414
     
    5454     *
    5555     ********************************************************************/
     56
     57    PVOID doshMalloc(ULONG cb,
     58                     APIRET *parc);
    5659
    5760    PVOID doshAllocSharedMem(ULONG ulSize,
     
    314317    BOOL doshMakeRealName(PSZ pszTarget, PSZ pszSource, CHAR cReplace, BOOL fIsFAT);
    315318
    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);
    319324
    320325    APIRET doshQueryPathAttr(const char* pcszFile,
     
    340345                      PBYTE pbData);
    341346
     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
    342380    APIRET doshLoadTextFile(const char *pcszFile,
    343381                            PSZ* ppszContent);
     
    355393                             PSZ pszBackup);
    356394
    357     HFILE doshOpenLogFile(const char* pcszFilename);
    358 
    359     APIRET doshWriteToLogFile(HFILE hfLog, const char* pcsz);
    360395
    361396    /* ******************************************************************
     
    395430    typedef ULONG XWPENTRY DOSHMYTID(VOID);
    396431    typedef DOSHMYTID *PDOSHMYTID;
    397 
    398     APIRET doshFindExecutable(const char *pcszCommand,
    399                               PSZ pszExecutable,
    400                               ULONG cbExecutable,
    401                               const char **papcszExtensions,
    402                               ULONG cExtensions);
    403432
    404433    APIRET doshExecVIO(const char *pcszExecWithArgs,
     
    816845    APIRET doshExecFreeResources(PFSYSRESOURCE paResources);
    817846
     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
    818858    /********************************************************************
    819859     *
Note: See TracChangeset for help on using the changeset viewer.