Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   Assembly (http://www.programmingforums.org/forum20.html)
-   -   Multiple program execution (http://www.programmingforums.org/showthread.php?t=14931)

dynaemu Jan 12th, 2008 11:17 PM

Multiple program execution
 
Hi, I was just wondering how with some programs there's a limited amount you can run (like only one at a time, or something) - can this be bypassed through ollydbg? If so, what kind of calls should I be looking for, or how do I find them? Thanks in advance.

Dameon Jan 12th, 2008 11:31 PM

Re: Multiple program execution
 
On windows at least a single-instance restriction is usually done by trying to obtain a system-wide mutex. The first app gets the lock, the others exit.

Jabo Jan 13th, 2008 12:21 AM

Re: Multiple program execution
 
1 Attachment(s)
I don't know if this is what you are looking for, but it could be. This is on the project properties page in VB 2005

dynaemu Jan 13th, 2008 1:17 AM

Re: Multiple program execution
 
That's kind of what I'm talking about, but I'm looking for a way to -bypass- this :(

Dameon Jan 13th, 2008 12:12 PM

Re: Multiple program execution
 
Investigate what I said. Poke around for API calls relating to mutexes. The mutex will likely be created with a name that contains the name of the application (makes sense) and execution will branch based on the return code -- one branch causes the program to exit. I made this modification to the Ventrilo client once. I can't remember the specifics but it was easy and obvious when knowing what to look for.

Irwin Mar 9th, 2008 8:27 AM

Re: Multiple program execution
 
Set a breakpoint on CreateMutexA/W and see if that yields any results.


All times are GMT -5. The time now is 3:54 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC