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

Implemented tool for generating calltab for kernel imports. (mkcalltab)
Implemented API for accessing memory in another process. (*ProcessReadWrite)
Added kernel imports needed to implemented ProcessReadWrite.
Removed unused kernel imports.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/win32k/misc/OS2KPTDA.c

    r4164 r4347  
    1 /* $Id: OS2KPTDA.c,v 1.2 2000-09-02 21:08:12 bird Exp $
     1/* $Id: OS2KPTDA.c,v 1.3 2000-10-01 02:58:20 bird Exp $
    22 *
    33 * PTDA access functions.
     
    3434extern ULONG    pptda_environ;
    3535extern ULONG    pptda_ptdasem;
     36extern ULONG    pptda_handle;
    3637extern ULONG    pptda_module;
    3738
     
    4647{
    4748    return *(PUSHORT)(void*)(((char*)(void*)pPTDA) + (pptda_environ - pptda_start));
     49}
     50
     51
     52/**
     53 * Gets the ptda_handle PTDA member. This member holds the PTDA handle for the
     54 * given PTDA.
     55 * @returns     Content of the pPTDA->ptda_handle member.
     56 * @param       pPTDA   PTDA Pointer. (NULL is not allowed!)
     57 */
     58HPTDA  ptdaGet_ptda_handle(PPTDA pPTDA)
     59{
     60    return *(PHPTDA)(void*)(((char*)(void*)pPTDA) + (pptda_handle - pptda_start));
    4861}
    4962
Note: See TracChangeset for help on using the changeset viewer.