Results 1 to 3 of 3

Thread: how do i check if a pid exists?

  1. #1

    Thread Starter
    Addicted Member aturner's Avatar
    Join Date
    Nov 2000
    Posts
    179

    how do i check if a pid exists?

    can i do what is says on the tin ??? lol
    Due to the energy crisis, the light at the end of the tunnel has been turned off.
    Sorry for any inconvenience this may cause

  2. #2
    jim mcnamara
    Guest
    If you have a pid and want to see if the pid is a valid process
    Code:
    Private Declare Function GetPriorityClass Lib "kernel32" (ByVal hProcess As Long) As Long
    
    if GetPriorityClass(hProcess) > 0 then
         ' process exists
    else
         ' process does not exist
    end if

  3. #3

    Thread Starter
    Addicted Member aturner's Avatar
    Join Date
    Nov 2000
    Posts
    179
    hmmmm


    seems to only return a 0 ....

    any ideas?
    Due to the energy crisis, the light at the end of the tunnel has been turned off.
    Sorry for any inconvenience this may cause

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width