include debug.inc Assert_Cur_Thread_Handle ThreadHandle, level
Asserts that the specified register is equal to the handle of the current thread.
ThreadHandle
Specifies the register containing the thread handle to check. The macro is more efficient if the thread handle is in the EDI register, but any 32-bit register is allowed.
level
Optional parameter which specifies the debugging level for which the macro should generate code. The default is DeblevelNormal.
This macro does not generate code unless the DEBUG symbol is defined. If the macro generates code, the code calls the Debug_Test_Cur_Thread_Handle service.
See also Debug_Test_Valid_Handle