The UDM_GETBUDDY message retrieves the handle of the current buddy window.
UDM_GETBUDDY wParam = 0; lParam = 0;
The return value is the handle of the current buddy window.