#include "test.h" #include "windows.h" extern void test_handle_leaks_callback(); DWORD WINAPI c_thread( LPVOID lpThreadParameter ) { while (1){ test_handle_leaks_callback(); } return 0; } void test_handle_leaks() { CreateThread(NULL, 0, &c_thread, 0, 0, NULL); }