Ignore:
Timestamp:
Dec 18, 1999, 6:17:55 PM (26 years ago)
Author:
sandervl
Message:

EB's changes for GetThreadContext + Read/WriteProcessMemory

File:
1 edited

Legend:

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

    r1898 r2115  
    1 /* $Id: thread.cpp,v 1.18 1999-11-30 20:19:34 sandervl Exp $ */
     1/* $Id: thread.cpp,v 1.19 1999-12-18 17:17:55 sandervl Exp $ */
    22
    33/*
     
    2828#include <windllbase.h>
    2929#include <winexebase.h>
     30#include "exceptutil.h"
    3031
    3132ODINDEBUGCHANNEL(KERNEL32-THREAD)
     
    142143BOOL WIN32API GetThreadContext(HANDLE hThread, PCONTEXT lpContext)
    143144{
     145 USHORT cs, ds;
     146
    144147  dprintf(("GetThreadContext NOT IMPLEMENTED!! (TRUE)\n"));
    145148  memset(lpContext, 0, sizeof(CONTEXT));
     149
     150  /* make up some plausible values for segment registers */
     151  cs = getCS();
     152  ds = getDS();
     153  lpContext->SegCs   = cs;
     154  lpContext->SegDs   = ds;
     155  lpContext->SegEs   = ds;
     156  lpContext->SegGs   = ds;
     157  lpContext->SegSs   = ds;
     158  lpContext->SegFs   = ds;
     159
    146160  return TRUE;
    147161}
Note: See TracChangeset for help on using the changeset viewer.