CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2009
    Posts
    1,689

    Detecting another process

    How would I go about determining if another process (specifically Fiddler.exe) is running? I know very little about the Windows API as a Mac programmer, but I need the Windows version of my app to detect whether or not Fiddler is running and alter my curl options to send it through

  2. #2
    Join Date
    Jun 2006
    Location
    M31
    Posts
    885

    Re: Detecting another process

    Quote Originally Posted by ninja9578 View Post
    ...I know very little about the Windows API...
    This isn't the right forum for this sort of question.

    Quote Originally Posted by ninja9578 View Post
    How would I go about determining if another process (specifically Fiddler.exe) is running?
    Assuming that you're targeting a reasonably modern OS (i.e., Win2k+), take a system snapshot with CreateToolhelp32Snapshot and walk through it with Process32[First/Next] looking for your target name.

  3. #3
    Join Date
    Jun 2008
    Posts
    592

    Re: Detecting another process

    look up
    CreateToolhelp32Snapshot
    Process32First
    Process32Next
    CloseHandle
    preferably on msdn
    0100 0111 0110 1111 0110 0100 0010 0000 0110 1001 0111 0011 0010 0000 0110 0110 0110 1111 0111 0010
    0110 0101 0111 0110 0110 0101 0111 0010 0010 0001 0010 0001 0000 0000 0000 0000
    0000 0000 0000 0000

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

Featured