HC_Begin_Exit_Handler_Search
-
void
HC_Begin_Exit_Handler_Search() - void HC_Begin_Exit_Handler_Search()
Finds all the currently defined exit handlers.
Begin_Exit_Handler_Search() initiates and defines the search.
Show_Exit_Handler_Count() return the number of exit handlers found.
Find_Exit_Handler() returns a function pointer , one at a time, to each of the registered exit handler.
End_Exit_Handler() terminates the search sequence.
Below is a code sample of how you might use these exit handler search functions:
#define HIM_FUNCTION(function) (him_function)(function) .... HC_Begin_Exit_Handler_Search(); { int count = 0; HC_Show_Exit_Handler_Count(&count); void (*func)(HC_ANY_ARGS); while (HC_Find_Exit_Handler(&func)) { if (HIM_FUNCTION(func) == HIM_FUNCTION(MyExitHandler)) { AfxMessageBox(_T("Found my exit handler!")); } } } HC_End_Exit_Handler_Search();
HC_Define_Exit_Handler