Ignore:
Timestamp:
Aug 15, 2000, 9:03:27 AM (25 years ago)
Author:
bird
Message:

32-bits GetDosVar don't work. Get module handle from PTDA. (which btw is much
faster). So, I've added a new import, ptda_module.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/GRACE/src/win32k/misc/OS2KPTDA.c

    r3829 r4018  
    1 /* $Id: OS2KPTDA.c,v 1.1 2000-07-16 22:21:17 bird Exp $
     1/* $Id: OS2KPTDA.c,v 1.1.2.1 2000-08-15 07:03:27 bird Exp $
    22 *
    33 * PTDA access functions.
     
    2828extern ULONG    pptda_start;
    2929extern ULONG    pptda_environ;
     30extern ULONG    pptda_module;
    3031
    3132
     
    3536 * @returns     Content of the pPTDA->ptda_environ member.
    3637 * @param       pPTDA   PTDA Pointer. (NULL is not allowed!)
    37  * @sketch
    3838 */
    3939USHORT  ptdaGet_ptda_environ(PPTDA pPTDA)
     
    4242}
    4343
     44
     45/**
     46 * Gets the ptda_module PTDA member. This member holds the MTE handle of the process's
     47 * executable image.
     48 * @returns     Content of the pPTDA->ptda_module member.
     49 * @param       pPTDA   PTDA Pointer. (NULL is not allowed!)
     50 */
     51USHORT  ptdaGet_ptda_module(PPTDA pPTDA)
     52{
     53    return *(PUSHORT)(void*)(((char*)(void*)pPTDA) + (pptda_module - pptda_start));
     54}
     55
Note: See TracChangeset for help on using the changeset viewer.