detaching a debugger from an active process

Hi,

We can attach a process to the debugger using the call
DebugActiveProcess(ProcessId).
How to detach a debugger from the attached process with out killing
the process?
Ones the debugger is killed the process also gets killed.

-Murali.


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com

You are out of luck. There is no general way to detach.

Regards,
Anders

Saturday, May 26, 2001, 2:11:40 AM, you wrote:

MS> Hi,

MS> We can attach a process to the debugger using the call
MS> DebugActiveProcess(ProcessId).
MS> How to detach a debugger from the attached process with out killing
MS> the process?
MS> Ones the debugger is killed the process also gets killed.

MS> -Murali.

MS> —
MS> You are currently subscribed to ntfsd as: xxxxx@flaffer.com
MS> To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com


Best regards,
Anders mailto:xxxxx@flaffer.com


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com

This is true.

WinXP adds a couple of new APIs that do this.

They are: (see WinXP SDK for more info)

WINBASEAPI
BOOL
WINAPI
DebugActiveProcessStop(
IN DWORD dwProcessId
);

WINBASEAPI
BOOL
WINAPI
DebugSetProcessKillOnExit(
IN BOOL KillOnExit

-----Original Message-----
From: Anders Fogh [mailto:xxxxx@flaffer.com]
Sent: Saturday, May 26, 2001 5:48 PM
To: File Systems Developers
Subject: [ntfsd] Re: detaching a debugger from an active process

You are out of luck. There is no general way to detach.

Regards,
Anders

Saturday, May 26, 2001, 2:11:40 AM, you wrote:

MS> Hi,

MS> We can attach a process to the debugger using the call
MS> DebugActiveProcess(ProcessId).
MS> How to detach a debugger from the attached process with out
killing
MS> the process?
MS> Ones the debugger is killed the process also gets killed.

MS> -Murali.

MS> —
MS> You are currently subscribed to ntfsd as: xxxxx@flaffer.com
MS> To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com


Best regards,
Anders mailto:xxxxx@flaffer.com


You are currently subscribed to ntfsd as: xxxxx@microsoft.com
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com

>How to detach a debugger from the attached process with out killing

the process?

IIRC this is possible only on WinXP, if possible at all.

Max


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com

The latest debugger (downloadable from
http://www.microsoft.com/ddk/debugging) has a new command called “qd”
which will quit and detach. It only works on WindowsXP.

Neal Christiansen

-----Original Message-----
From: Maxim S. Shatskih [mailto:xxxxx@storagecraft.com]
Sent: Saturday, May 26, 2001 8:20 PM
To: File Systems Developers
Subject: [ntfsd] Re: detaching a debugger from an active process

How to detach a debugger from the attached process with out killing
the process?

IIRC this is possible only on WinXP, if possible at all.

Max


You are currently subscribed to ntfsd as: xxxxx@Exchange.Microsoft.com
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com