Changeset 6231 for trunk/src


Ignore:
Timestamp:
Jul 8, 2001, 5:09:51 AM (24 years ago)
Author:
bird
Message:

Implemented LIBPATH get functions.

File:
1 edited

Legend:

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

    r4787 r6231  
    1 /* $Id: OS2KPTDA.c,v 1.4 2000-12-11 06:53:54 bird Exp $
     1/* $Id: OS2KPTDA.c,v 1.5 2001-07-08 03:09:51 bird Exp $
    22 *
    33 * PTDA access functions.
     
    3636extern ULONG    pptda_handle;
    3737extern ULONG    pptda_module;
     38extern ULONG    pptda_pBeginLIBPATH;
    3839
    3940
     
    8687
    8788
     89/**
     90 * Gets the ptda_pBeginLIBPATH PTDA member. This member may hold the begin libpath
     91 * extention for this process.
     92 * @returns     beginlibpath string pointer.
     93 *              NULL if member is NULL or not supported by kernel.
     94 * @param       pPTDA   PTDA Pointer. (NULL is not allowed!)
     95 */
     96PSZ ptdaGet_ptda_pBeginLIBPATH(PPTDA pPTDA)
     97{
     98    if (!pptda_pBeginLIBPATH)
     99        return NULL;
     100    return *(PSZ*)(void*)(((char*)(void*)pPTDA) + (pptda_pBeginLIBPATH - pptda_start));
     101}
    88102
     103
     104/**
     105 * Gets the ptda_pEndLIBPATH PTDA member. This member might hold the end libpath
     106 * extention for this process.
     107 * @returns     endlibpath string pointer.
     108 *              NULL if member is NULL or not supported by kernel.
     109 * @param       pPTDA   PTDA Pointer. (NULL is not allowed!)
     110 */
     111PSZ ptdaGet_ptda_pEndLIBPATH(PPTDA pPTDA)
     112{
     113    if (!pptda_pBeginLIBPATH)
     114        return NULL;
     115    return *(PSZ*)(void*)(((char*)(void*)pPTDA) + (pptda_pBeginLIBPATH + 4 - pptda_start));
     116}
     117
     118
     119
     120
Note: See TracChangeset for help on using the changeset viewer.