KdDebuggerEnabled/NotPresent

Hi all,

how do I have to use KdDebuggerEnabled and or
KdDebuggerNotPresent (and or something else)
to find out if the kernel debugger is attached
in W2K and XP ?

Thanks
Else