Log in

View Full Version : Thread and DEBUG context


SV
January 13th, 2001, 13:39
Hi

I would like to start a thread in a debug context.
With process, it's like :
invoke CreateProcess, addr buffer, NULL, NULL, NULL, FALSE,
DEBUG_PROCESS+ DEBUG_ONLY_THIS_PROCESS, NULL, NULL, addr startinfo, addr pi
but CreateThread doesn't have this flag possibility.
How can i do ? (SetThreadContext ?)

tsehp
January 13th, 2001, 14:49
Quote:
SV (01-13-2001 02:39):
Hi

I would like to start a thread in a debug context.
With process, it's like :
invoke CreateProcess, addr buffer, NULL, NULL, NULL, FALSE,
DEBUG_PROCESS+ DEBUG_ONLY_THIS_PROCESS, NULL, NULL, addr startinfo, addr pi
but CreateThread doesn't have this flag possibility.
How can i do ? (SetThreadContext ?)

on what system ? nt or 9x ?
to have what ? debug events ? what kind of events to you want to be notified of ?
to tell you, revirgin contains a tracer and forces any thread to work
on single step mode, so you can examine anything you want.
Will give more details on your email if you want.
regards,

+Tsehp

SV
January 14th, 2001, 06:02
I have send mail to you