Ignore:
Timestamp:
Oct 1, 2000, 4:59:18 AM (25 years ago)
Author:
bird
Message:

Added API for accessing memory of another process. (ProcessReadWrite)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/win32k.h

    r4165 r4348  
    1 /* $Id: win32k.h,v 1.1 2000-09-02 21:11:22 bird Exp $
     1/* $Id: win32k.h,v 1.2 2000-10-01 02:59:18 bird Exp $
    22 *
    33 * Top level make file for the Win32k library.
     
    2828#define K32_QUERYOPTIONSSTATUS  0x03
    2929#define K32_SETOPTIONS          0x04
     30#define K32_PROCESSREADWRITE    0x05
    3031
    3132/*
     
    183184    ULONG           rc;                 /* Return code. */
    184185} K32SETOPTIONS, *PK32SETOPTIONS;
     186
     187typedef struct _k32ProcessReadWrite
     188{
     189    PID         pid;                    /* Process ID of the process to access memory in. */
     190    ULONG       cb;                     /* Number of bytes to read or write. */
     191    PVOID       pvSource;               /* Pointer to source data. */
     192    PVOID       pvTarget;               /* Pointer to target area. */
     193    BOOL        fRead;                  /* TRUE:   pvSource is within pid while pvTarget is ours. */
     194                                        /* FALSE:  pvTarget is within pid while pvSource is ours. */
     195    ULONG       rc;                     /* Return code. */
     196} K32PROCESSREADWRITE, *PK32PROCESSREADWRITE;
     197
    185198
    186199
     
    197210APIRET APIENTRY  libWin32kQueryOptionsStatus(PK32OPTIONS pOptions, PK32STATUS pStatus);
    198211APIRET APIENTRY  libWin32kSetOptions(PK32OPTIONS pOptions);
     212APIRET APIENTRY  libWin32kSetOption(PK32OPTIONS pOptions);
    199213
    200214/* "Extra OS2 APIs" */
    201215APIRET APIENTRY  DosAllocMemEx(PPVOID ppv, ULONG cb, ULONG flag);
    202216APIRET APIENTRY  W32kQueryOTEs(HMODULE hMTE, PQOTEBUFFER pQOte, ULONG cbQOte);
     217APIRET APIENTRY  W32kProcessReadWrite(PID pid, ULONG cb, PVOID pvSource, PVOID pvTarget, BOOL fRead);
    203218
    204219/* Helper function */
Note: See TracChangeset for help on using the changeset viewer.