UINT_PTR CALLBACK HookFunc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
static UINT_PTR CALLBACK HookFunc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
UINT_PTR CALLBACK HookFunc(HWND hwnd,                           UINT msg,                           WPARAM wParam,                           LPARAM lParam){  if(instance) {    if(msg == WM_NOTIFY) {      OFNOTIFY *notify = (OFNOTIFY *)lParam;      if(notify) {        if(notify->hdr.code == CDN_TYPECHANGE) {          instance->OnTypeChange(hwnd);          return 1;        }      }    }  }  return 0;}