This function obtains the anchor block handle of the caller.
#define INCL_WINWINDOWMGR #include <OS2.H> HAB hab; HWND hwnd; hab = WinQueryAnchorBlock(hwnd);