Ignore:
Timestamp:
Jul 17, 1999, 11:20:10 AM (26 years ago)
Author:
sandervl
Message:

Exports for getting THDB & TEB added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/wprocess.cpp

    r286 r320  
    1 /* $Id: wprocess.cpp,v 1.14 1999-07-09 15:58:54 sandervl Exp $ */
     1/* $Id: wprocess.cpp,v 1.15 1999-07-17 09:18:38 sandervl Exp $ */
    22
    33/*
     
    4040extern "C" ULONG QueryExceptionChain();
    4141
     42//******************************************************************************
     43//******************************************************************************
     44TEB *WIN32API GetThreadTEB()
     45{
     46  return (TEB *)*TIBFlatPtr;
     47}
     48//******************************************************************************
     49//******************************************************************************
     50THDB *WIN32API GetThreadTHDB()
     51{
     52 TEB  *winteb;
     53 THDB *thdb;
     54
     55  winteb = (TEB *)*TIBFlatPtr;
     56  if(winteb == NULL) {
     57        return NULL;
     58  }
     59  thdb = (THDB *)(winteb+1);
     60
     61  return thdb;
     62}
    4263//******************************************************************************
    4364// Set up the TIB selector and memory for the current thread
Note: See TracChangeset for help on using the changeset viewer.