Changeset 241


Ignore:
Timestamp:
Jan 12, 2003, 10:17:31 PM (23 years ago)
Author:
umoeller
Message:

Misc fixes.

Location:
trunk
Files:
2 edited

Legend:

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

    r240 r241  
    459459
    460460    /*
    461      *@@ RING0STATUS:
     461     *@@ XWPSECSTATUS:
    462462     *
    463463     *@@added V1.0.1 (2003-01-10) [umoeller]
    464464     */
    465465
    466     typedef struct _RING0STATUS
     466    typedef struct _XWPSECSTATUS
    467467    {
    468468        BOOL        fLocalSecurity;     // TRUE if XWPSEC32.SYS is active
    469         ULONG       cGranted,           // if so, no. of syscalls where access was granted
     469
     470        // the following fields are only set if fLocalSecurity is TRUE
     471
     472        ULONG       cbAllocated;        // fixed memory currently allocated in ring 0
     473        ULONG       cAllocations,       // no. of allocations made since startup
     474                    cFrees;             // no. of frees made since startup
     475        USHORT      cLogBufs,           // current 64K log buffers in use
     476                    cMaxLogBufs;        // max 64K log buffers that were ever in use
     477        ULONG       cLogged;            // no. of syscalls that were logged
     478        ULONG       cGranted,           // no. of syscalls where access was granted
    470479                    cDenied;            // ... and denied
    471     } RING0STATUS, *PRING0STATUS;
     480    } XWPSECSTATUS, *PXWPSECSTATUS;
     481
    472482
    473483    /* ******************************************************************
     
    688698        #define QUECMD_QUERYSTATUS                  1
    689699
    690         RING0STATUS     Status;
     700        XWPSECSTATUS    Status;
    691701
    692702        #define QUECMD_QUERYLOCALUSER               2
     
    757767        #define QUECMD_SETUSERDATA                  7
    758768
    759         struct
    760         {
    761             XWPSECID    uid;
    762             CHAR        szUserName[XWPSEC_NAMELEN];         // user name
    763             CHAR        szFullName[XWPSEC_FULLNAMELEN];     // user's clear name
    764         } SetUserData;
     769        XWPUSERINFO     SetUserData;
    765770
    766771        #define QUECMD_DELETEUSER                   8
  • trunk/src/helpers/dosh.c

    r240 r241  
    25872587 *@@added V0.9.16 (2001-10-19) [umoeller]
    25882588 *@@changed V0.9.16 (2001-12-18) [umoeller]: fixed error codes
     2589 *@@changed V1.0.1 (2003-01-10) [umoeller]: now allowing read for all modes
    25892590 */
    25902591
     
    26312632            fsOpenFlags =   OPEN_ACTION_CREATE_IF_NEW
    26322633                          | OPEN_ACTION_OPEN_IF_EXISTS;
    2633             fsOpenMode |=   OPEN_SHARE_DENYREADWRITE
     2634            fsOpenMode |=   OPEN_SHARE_DENYWRITE // OPEN_SHARE_DENYREADWRITE V1.0.1 (2003-01-10) [umoeller]
    26342635                          | OPEN_ACCESS_READWRITE;
    26352636            // _Pmpf((__FUNCTION__ ": opening XOPEN_READWRITE_APPEND"));
     
    26392640            fsOpenFlags =   OPEN_ACTION_CREATE_IF_NEW
    26402641                          | OPEN_ACTION_REPLACE_IF_EXISTS;
    2641             fsOpenMode |=   OPEN_SHARE_DENYREADWRITE
     2642            fsOpenMode |=   OPEN_SHARE_DENYWRITE // OPEN_SHARE_DENYREADWRITE V1.0.1 (2003-01-10) [umoeller]
    26422643                          | OPEN_ACCESS_READWRITE;
    26432644            // _Pmpf((__FUNCTION__ ": opening XOPEN_READWRITE_NEW"));
     
    29402941 *@@changed V0.9.16 (2001-12-02) [umoeller]: added XOPEN_BINARY \r\n support
    29412942 *@@changed V0.9.16 (2001-12-06) [umoeller]: added check for pFile != NULL
     2943 *@@changed V1.0.1 (2003-01-10) [umoeller]: now forcing DosSetFileSize
    29422944 */
    29432945
     
    30163018                    // invalidate the cache
    30173019                    FREE(pFile->pbCache);
     3020
     3021                    // force a writeout V1.0.1 (2003-01-10) [umoeller]
     3022                    DosSetFileSize(pFile->hf, pFile->cbCurrent);
    30183023                }
    30193024            }
Note: See TracChangeset for help on using the changeset viewer.