msvisual.com Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

EnumProcesses in library PSAPI.dll not returning all process

 
Post new topic   Reply to topic    msvisual.com Forum Index -> OLE
Author Message
aaa



Joined: 04 Oct 2007
Posts: 10

PostPosted: Thu Jul 21, 2005 10:57 am    Post subject: EnumProcesses in library PSAPI.dll not returning all process Reply with quote

I have tried to use the EnumProcesses function from the PSAPI.dll to retreive
the running processes. However, out of the 69 running processes I had going
it only seemed to find 58. Especially, it didn't return my applications
process information. What is wrong?

Archived from group: microsoft>public>vb>ole
Back to top
View user's profile Send private message
Richard T. Edwards



Joined: 04 Oct 2007
Posts: 21

PostPosted: Fri Oct 14, 2005 10:57 pm    Post subject: Re: EnumProcesses in library PSAPI.dll not returning all pro Reply with quote

This should give you the exact amount of processIds:


Dim processIds() As Long
ReDim Preserve processIds(1000) As Long
Dim pl As Long
Dim pl1 As Long
Dim iret As Long
iret = EnumProcesses(processIds(0), 1000, pl1)
ReDim Preserve processIds(pl1 / 4)

For x = 0 To UBound(processIds) - 1
Debug.Print processIds(x)
Next




"aaa" wrote in message @microsoft.com...
>I have tried to use the EnumProcesses function from the PSAPI.dll to
>retreive
> the running processes. However, out of the 69 running processes I had
> going
> it only seemed to find 58. Especially, it didn't return my applications
> process information. What is wrong?

Back to top
View user's profile Send private message
Display posts from previous:   
Related Topics:
VB6STKIT.DLL - Visual Basic Setup Toolkit Library DLL Hello, Has anybody ever used subj? I need the syntax of one function in it (return type, params, etc): Anyone help!!! Regards, Someone.

Returning to app.Path My application runs on a server From workstation i have shortcut to Start in So far no problem. Now i have built in a e-mail functionality to activate Outlook Express. Everytime ik activate the active folde

Returning value from a vb6 application Hey guys I need to return the value from a vb application - something like cpp/c# int main() I tried to use the function main() as int and it obviously didnt work. Anyone has an idea? Thanks in advance Vic

returning value from stored procedure I have a stored proc that is meant to be returning a value to my ASP app, but even though the stored proc when run returns a value, by VB6 code doesn't seem to catch it. Can anybody help me out? Here is the VB : dim objConn2 set objConn2 = server.Create

Returning the result of one program to another. Hi there, I have a small little console application that has a function that returns a string. is there anyway for me to have this string variable returned to another process? I was doing some research and you can return Exit codes to the OS but that's
Post new topic   Reply to topic    msvisual.com Forum Index -> OLE All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group