GetWindowTask 

The GetWindowTask function is obsolete. This function is provided only for compatibility with 16-bit versions of Windows. Win32-based applications should use the GetWindowThreadProcessIdLGYDL3 function.