by cprinahmed (2 Submissions)
Category: Windows API Call/Explanation
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (2 Votes)
use this project to get the process identifier of any window
rather than makeing a call to EnumProcesses,it also learn how to
get the classname,titlename,Foregroundwindow and thread
identifier of the window.
API DeclarationsPrivate Declare Function GetWindowThreadProcessId Lib "user32" (ByVal hwnd As Long, lpdwProcessId As Long) As Long