Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21090

VB6 Determining Base Addresses for Active Processes

$
0
0
Hi everyone, simple question (although I'm sure the answer won't be so simple) but I have code that extracts the process ID for certain processes based on EXE name. The question is from this is there a way of determining the base address for those processes?

Just in case it helps this is the code I have so far:

Code:

Private Sub cmdRefreshInstances_Click()
    lstInstances.Clear
    Dim Process As Object
    For Each Process In GetObject("winmgmts:").ExecQuery("Select * from Win32_Process")
        If Process.Caption = "fclient.exe" Then
            lstInstances.AddItem ("Instance Found with PID " & Process.ProcessID)
        End If
    Next
End Sub

Which returns the process IDs for all instances of fclient.exe in list format.

Any help or suggestions would be greatly appreciated, thanks in advance!

Viewing all articles
Browse latest Browse all 21090

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>