The EnumTaskWindows function is now obsolete. It has been replaced by the EnumThreadWindows function.
EnumTaskWindows is replaced with a macro that calls the EnumThreadWindows function to maintain compatibility for older applications. They may continue to call EnumTaskWindows as previously documented. New applications should use EnumThreadWindows .
EnumThreadWindows