Take a look in ZwQuerySystemInformation with
SystemKernelDebuggerInformation class.
Have fun,
Fernando Roberto da Silva.
-----Mensagem original-----
De: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] Em nome de Brian Stark
Enviada em: quarta-feira, 19 de julho de 2006 13:24
Para: Kernel Debugging Interest List
Assunto: [windbg] detecting debug mode in target
Is there an easy way of detecting whether or not a platform has the
debugging capability turned on during boot? I could read the
SystemStartOptions.
Brian D. Stark
Lead Software Engineer
Connectivity Products Group
Mobility Electronics, Inc. (NASDAQ: MOBE)
9918 Via Pasar
San Diego, CA 92126
www.mobilityelectronics.com http:</http:>
w: 858.530.2511 x245
m: 760.889.2774
fax: 480.281.7833
xxxxx@mobl.com
CONFIDENTIALITY NOTICE: The information in this electronic mail
transmission is legally privileged and confidential information intended
only for the use of the individual or entity named above. If the reader
of this message is not the intended recipient, you are hereby notified
that any dissemination, distribution or copying of the transmission is
strictly prohibited. If you have received this transmission in error,
delete the message and immediately notify us by telephone at
480.596.0061 or by responding to this email.
You are currently subscribed to windbg as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com
Look at the documentation for KD_DEBUGGER_ENABLED, KD_DEBUGGER_NOT_PRESENT, and KdRefreshDebuggerNotPresent in the DDK.
KD_DEBUGGER_ENABLED will basically tell you if you were booted with /DEBUG or not. KD_DEBUGGER_NOT_PRESENT/KdRefreshDebuggerNotPresent will tell you if there is actually a kernel debugger active right now.
–
Ken Johnson (Skywing)
Windows SDK MVP
“Brian Stark” wrote in message news:xxxxx@windbg…
Is there an easy way of detecting whether or not a platform has the debugging capability turned on during boot? I could read the SystemStartOptions.
Brian D. Stark
Lead Software Engineer
Connectivity Products Group
Mobility Electronics, Inc. (NASDAQ: MOBE)
9918 Via Pasar
San Diego, CA 92126
www.mobilityelectronics.com
w: 858.530.2511 x245
m: 760.889.2774
fax: 480.281.7833
xxxxx@mobl.com
______________________________________________________________________
CONFIDENTIALITY NOTICE: The information in this electronic mail transmission is legally privileged and confidential information intended only for the use of the individual or entity named above. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of the transmission is strictly prohibited. If you have received this transmission in error, delete the message and immediately notify us by telephone at 480.596.0061 or by responding to this email.
Note that KdRefreshDebuggerNotPresent() is an expensive operation and you should not be calling it frequently
d
– I can spell, I just can’t type.
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Skywing
Sent: Wednesday, July 19, 2006 9:30 AM
To: Kernel Debugging Interest List
Subject: Re:[windbg] detecting debug mode in target
Look at the documentation for KD_DEBUGGER_ENABLED, KD_DEBUGGER_NOT_PRESENT, and KdRefreshDebuggerNotPresent in the DDK.
?
KD_DEBUGGER_ENABLED will basically tell you if you were booted with /DEBUG or not.? KD_DEBUGGER_NOT_PRESENT/KdRefreshDebuggerNotPresent will tell you if there is actually a kernel debugger active right now.
–
Ken Johnson (Skywing)
Windows SDK MVP
“Brian Stark” wrote in message news:xxxxx@windbg…
Is there an easy way of detecting whether or not a platform has the debugging capability turned on during boot?? I could read the SystemStartOptions.
Brian D. Stark
Lead Software Engineer
Connectivity Products Group
Mobility Electronics, Inc. (NASDAQ: MOBE)
9918 Via Pasar
San Diego, CA 92126
www.mobilityelectronics.com
?
w: 858.530.2511 x245
m: 760.889.2774
fax: 480.281.7833
xxxxx@mobl.com
______________________________________________________________________
CONFIDENTIALITY NOTICE: The information in this electronic mail transmission is legally privileged and confidential information intended only for the use of the individual or entity named above. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of the transmission is strictly prohibited. If you have received this transmission in error, delete the message and immediately notify us by telephone at 480.596.0061 or by responding to this email.
—
You are currently subscribed to windbg as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com