In this example, any thunking procedure is dissociated from the window.
#define INCL_WINTHUNKAPI #include <OS2.H> HWND hwnd; WinSetWindowThunkProc(hwnd, NULL);