|
-
Nov 14th, 2000, 10:06 AM
#1
Thread Starter
Member
I am looking for a way to list task similar to “ps –eaf” in Unix (Solaris). The solution must work in VB5, possibly using an API call. If the list looks like the ctrl-alt-Del list, that would be fine. I have played with "user32" with some code I found see below:
Private Declare Function GetWindow Lib "user32" _
(ByVal hwnd As Long, ByVal wCmd As Long) As Long
Private Declare Function GetParent Lib "user32" _
(ByVal hwnd As Long) As Long
Private Declare Function GetWindowTextLength Lib _
"user32" Alias "GetWindowTextLengthA" (ByVal hwnd As Long) As Long
Private Declare Function GetWindowText Lib "user32" _
Alias "GetWindowTextA" (ByVal hwnd As Long, ByVal _
lpString As String, ByVal cch As Long) As Long
But It seems like there should be an easier way than that, if not easier than cleaner.
Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|