Assert_Thread_Handle
include debug.inc
Assert_Thread_Handle ThreadHandle, level, USES_FLAGS
Asserts that the specified thread handle is valid.
- No return value. The macro does not return if the handle is not valid.
- 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.
- USES_FLAGS
- Optional parameter which, if equal to the literal USES_FLAGS, indicates that the macro is allowed to modify the flags register. The default is to preserve flags.
This macro does not generate code unless the DEBUG symbol is defined. If the macro generates code, the code calls the Debug_Test_Valid_Thread_Handle service.
See Also
Debug_Test_Valid_Handle