🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.nativeapi
Article #12106

GetThreadContext returns invalid values

#12106
From: Max Burmistrov
Date: Sat, 23 Nov 2002 16:55
17 lines
1206 bytes
HI.

I use the following code:

<..>
var
 context: _context;
begin
GetThreadContext(GetCurrentThread, context)
<..>
So it should return current thread context, but all values are invalid.
Context.EIP is much greater than one shown in CPU window (greater than
$E1000000). What's wrong?

Delphi6@WinXP/admin

Thanks
Technical Details
Message-ID: <3ddfb320@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-04!supernews.com!news.maxwell.syr.edu!newsfeed1.cidera.com!Cidera!news.uni-x.net!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f94dd,334d5eef68190214,start
X-Google-Attributes: gidf94dd,public
X-Google-ArrivalTime: 2002-11-23 09:15:32 PST
From: "Max Burmistrov" <nospam>
Newsgroups: borland.public.delphi.nativeapi
Subject: GetThreadContext returns invalid values
Date: Sat, 23 Nov 2002 19:55:04 +0300
Lines: 19
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2720.3000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 80.246.69.186
Message-ID: <3ddfb320@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1038070560 80.246.69.186 (23 Nov 2002 08:56:00 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-04!supernews.com!news.maxwell.syr.edu!newsfeed1.cidera.com!Cidera!news.uni-x.net!newsgroups.borland.com!not-for-mail