Ignore:
Timestamp:
Feb 21, 2001, 8:47:59 AM (25 years ago)
Author:
bird
Message:

CallGate changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/win32k/lib/libW32kProcessReadWrite.c

    r4347 r5224  
    1 /* $Id: libW32kProcessReadWrite.c,v 1.1 2000-10-01 02:58:20 bird Exp $
     1/* $Id: libW32kProcessReadWrite.c,v 1.2 2001-02-21 07:47:58 bird Exp $
    22 *
    33 * libW32kProcessReadWrite  -  Read or write to another process.
    44 *
    5  * Copyright (c) 2000 knut st. osmundsen (knut.stange.osmundsen@mynd.no)
     5 * Copyright (c) 2000-2001 knut st. osmundsen (knut.stange.osmundsen@mynd.no)
    66 *
    77 * Project Odin Software License can be found in LICENSE.TXT
     
    2323#include <os2.h>
    2424#include "win32k.h"
    25 
    26 
    27 /*******************************************************************************
    28 *   Global Variables                                                           *
    29 *******************************************************************************/
    30 extern BOOL     fInited;
    31 extern HFILE    hWin32k;
    32 
     25#include "libPrivate.h"
    3326
    3427
     
    5548        ULONG               cbData = 0UL;
    5649
     50        Param.hdr.cb    = sizeof(Param);
     51        Param.hdr.rc    = ERROR_NOT_SUPPORTED;
    5752        Param.pid       = pid;
    5853        Param.cb        = cb;
     
    6055        Param.pvTarget  = pvTarget;
    6156        Param.fRead     = fRead;
    62         Param.rc = ERROR_INVALID_PARAMETER;
    6357
     58        if (usCGSelector)
     59            return libCallThruCallGate(K32_PROCESSREADWRITE, &Param);
    6460        rc = DosDevIOCtl(hWin32k,
    6561                         IOCTL_W32K_K32,
     
    6965
    7066        if (rc == NO_ERROR)
    71             rc = Param.rc;
     67            rc = Param.hdr.rc;
    7268    }
    7369    else
Note: See TracChangeset for help on using the changeset viewer.