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