Visual Assert – The Unit Testing Add-In for Visual C++
cfix – C/C++ Unit Testing for Win32 and NT
 
 

CfixRegisterThread

CfixRegisterThread

Synopsis

When using Anonymous Thread Auto-Registration, calling CfixRegisterThread on a child thread not created using CfixCreateThread causes the thread to be auto-registered.

Calling CfixRegisterThread is optional and usually not required. The only situation where calling CfixRegisterThread can be beneficial is if you would like to make use of Auto Joining.

Please refer to the section Anonymous Thread Auto-Registration for more information.

Declaration
HRESULT CfixRegisterThread( 
	__reserved PVOID Reserved 
	);
				
Parameters

Reserved: Reserved, must be NULL.

Remarks

If CfixRegisterThread is called on a thread created using CfixCreateThread, E_UNEXPECTED will be returned as it is unecessary to call CfixRegisterThread on such a thread.

If CfixRegisterThread is called and Anonymous Thread Auto-Registration has not been enabled, E_UNEXPECTED will be returned.

Requirements

Table 7.17. 

 User ModeKernel Mode
Available since1.6Not supported
HeaderDeclared in cfix.hNot supported
LibraryLink to cfix.libNot supported
IRQLN/AN/A