In my app, I can get a list of process names using some API functions.
But some process appears only as "Rundll32.exe".
How can I get more details about this kind of process (i.e. target dll, command line, etc.)
Thanks.
Printable View
In my app, I can get a list of process names using some API functions.
But some process appears only as "Rundll32.exe".
How can I get more details about this kind of process (i.e. target dll, command line, etc.)
Thanks.
You got code to post so we can see what you really want?
Ok.
With the code below you can show the name of the processes running on Windows in a RichTextBox (rtb1).
If you run timedate.cpl and mmsys.cpl for example and run the code again you will see two Rundll32 entries, but no information about cpl files.
That's the information I need. Any help?
Code:Public Sub ShowProcesses()
Dim hSnapshot As Long
Dim uProcess As PROCESSENTRY32
hSnapshot = apiCreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0&)
If hSnapshot = -1 Then Exit Sub
rtb1.Text = ""
uProcess.dwSize = Len(uProcess)
If apiProcess32First(hSnapshot, uProcess) = 1 Then
Do
rtb1.Text = rtb1.Text + LCase(Left(uProcess.szExeFile, InStr(1, uProcess.szExeFile, vbNullChar) - 1)) + vbCrLf
Loop While apiProcess32Next(hSnapshot, uProcess)
End If
Call apiCloseHandle(hSnapshot)
End Sub