You can always use the @ $ thread pseudo-registry to refer to the current thread object:
0: kd> r @$thread $thread=fffff80002c02cc0
If you need a thread id, you need to dig it out of ETHREAD. Fortunately, the @ $ stream is typed as a pointer to ETHREAD if you use a C ++ evaluator:
0: kd> ?? @$thread->Cid struct _CLIENT_ID +0x000 UniqueProcess : 0x00000000`00001408 Void +0x008 UniqueThread : 0x00000000`0000144c Void
-Scott
source share