Jump to content


Photo

Process Finding Dll V2


  • Please log in to reply
12 replies to this topic

#1 Stryke

Stryke

    fcuκ

  • GMC Member
  • 606 posts

Posted 10 August 2009 - 12:23 PM

Well, I didn't see this DLL anywhere, so I've decided to make it and post it in the DLL forum.

Basically what it does is looks for a specified process either by its filename or window name and tells you if it's running or not.
A simple but somewhat useful DLL in certain cases. Here are some examples of what you could use it for..

Uses:
  • Checks to see if a process with the same name is running as the current process (for online games you might not want players to run two applications at a time)
  • Scans to see if any cheating programs are active such as memory scanners or packet editors
  • Possibly more uses but I can't think of any at the moment
All you have to do is run 'findProcess_init' once, then you can use 'findProcess(..)'.
The first parameter is either the filename or window name of the process, and the second parameter is if
you want to find the process by its filename (set to 0) or window name (set to 1).
It will then return true if the process was found, and false if it wasn't found.

Hope you find this useful.

Download Link V2
*NOTE: The zip also includes an example .gmk file if you still don't understand how it works.

Edited by Stryke, 10 August 2009 - 02:29 PM.

  • 0

#2 zappy77

zappy77

    GMC Member

  • GMC Member
  • 1905 posts

Posted 10 August 2009 - 12:28 PM

I havn't downloaded it yet, but I think it would be better if the DLL could return the handle of the window, then it would have some more uses.
Although then a user could mess up a program so...
  • 0

#3 Stryke

Stryke

    fcuκ

  • GMC Member
  • 606 posts

Posted 10 August 2009 - 02:31 PM

I havn't downloaded it yet, but I think it would be better if the DLL could return the handle of the window, then it would have some more uses.
Although then a user could mess up a program so...

Alright, it now returns the window handle of a window, if you set the second parameter to 1.
Please feel free to post if you find any bugs or have some suggestions.
  • 0

#4 ehsan_wwe

ehsan_wwe

    GMC Member

  • GMC Member
  • 45 posts
  • Version:Unknown

Posted 17 August 2009 - 06:14 AM

i inpute an example ( Explorer.exe ) but your simple say not found :)
can help me

Edited by ehsan_wwe, 17 August 2009 - 02:17 PM.

  • -1

#5 ehsan_wwe

ehsan_wwe

    GMC Member

  • GMC Member
  • 45 posts
  • Version:Unknown

Posted 18 August 2009 - 12:18 PM

pleas help pleas help me :P
  • -1

#6 Stryke

Stryke

    fcuκ

  • GMC Member
  • 606 posts

Posted 24 August 2009 - 03:54 AM

pleas help pleas help me :whistle:

Did you put the DLL in the same folder as the game?
And also show the code you used.
  • 0

#7 Kenny Koala

Kenny Koala

    GMC Member

  • New Member
  • 2 posts

Posted 28 September 2009 - 04:17 PM

Hey, i was looking for a script like this, but unfortunately it doesnt do quite what i was looking for, so i wondered if i could make a suggestion? i was kinda looking for something that could return the window handle from file name, rather than window name, as atm it can only return window handle from window name. But otherwise, great dll. really usefull :whistle:
  • 0

#8 Razon

Razon

    GMC Member

  • GMC Member
  • 268 posts
  • Version:GM:Studio

Posted 21 April 2011 - 10:23 AM

http://www.mediafire...pqjaldq5ttedw6d

Edited by Razon, 06 October 2012 - 02:44 AM.

  • 1

#9 mathiasbb12

mathiasbb12

    GMC Member

  • GMC Member
  • 186 posts

Posted 02 October 2012 - 04:41 PM

Link is broken again...update it please? :)
  • 1

#10 Razon

Razon

    GMC Member

  • GMC Member
  • 268 posts
  • Version:GM:Studio

Posted 06 October 2012 - 02:48 AM

Here's a new mirror link for it.
http://www.mediafire...pqjaldq5ttedw6d

Edited by Razon, 06 October 2012 - 02:51 AM.

  • 0

#11 KevinBlazeCoolerz

KevinBlazeCoolerz

    GMC Member

  • GMC Member
  • 137 posts
  • Version:GM8

Posted 17 October 2012 - 01:03 PM

do you know what is the process name of windows shutdown program?
  • 0

#12 famous

famous

    GMC Member

  • GMC Member
  • 170 posts
  • Version:Unknown

Posted 23 November 2012 - 10:59 AM

If you realy want to connect to a Process, inject a DLL as legal Part of the Process. Cita can do this.

Edited by famous, 23 November 2012 - 11:00 AM.

  • 0
An oversized signature with elements unreadable in light theme:

#13 Crhonos

Crhonos

    GMC Member

  • GMC Member
  • 236 posts
  • Version:GM:Studio

Posted 04 February 2013 - 04:36 PM

Does not work for this:

Checks to see if a process with the same name is running as the current process (for online games you might not want players to run two applications at a time)


As it only return true if the process exist or not, if you use it on one app the app kills itself without having a duplicate.
It could return how many processes exists with the given name.
  • 0