Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jan 12th, 2008, 10:17 PM   #1
dynaemu
Newbie
 
Join Date: Jan 2008
Posts: 2
Rep Power: 0 dynaemu is on a distinguished road
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.
dynaemu is offline   Reply With Quote
Old Jan 12th, 2008, 10:31 PM   #2
Dameon
Troll
 
Dameon's Avatar
 
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4 Dameon is on a distinguished road
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.
__________________
MD5(sig) = bcef75433db02e9ad9bf81d6f7c5c270
Dameon is offline   Reply With Quote
Old Jan 12th, 2008, 11:21 PM   #3
Jabo
Not a user?
 
Join Date: Sep 2007
Posts: 245
Rep Power: 1 Jabo is on a distinguished road
Re: Multiple program execution

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
Attached Images
File Type: gif Single_instance.gif (2.1 KB, 28 views)
Jabo is offline   Reply With Quote
Old Jan 13th, 2008, 12:17 AM   #4
dynaemu
Newbie
 
Join Date: Jan 2008
Posts: 2
Rep Power: 0 dynaemu is on a distinguished road
Re: Multiple program execution

That's kind of what I'm talking about, but I'm looking for a way to -bypass- this
dynaemu is offline   Reply With Quote
Old Jan 13th, 2008, 11:12 AM   #5
Dameon
Troll
 
Dameon's Avatar
 
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4 Dameon is on a distinguished road
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.
__________________
MD5(sig) = bcef75433db02e9ad9bf81d6f7c5c270
Dameon is offline   Reply With Quote
Old Mar 9th, 2008, 7:27 AM   #6
Irwin
Newbie
 
Join Date: Mar 2008
Posts: 9
Rep Power: 0 Irwin is on a distinguished road
Re: Multiple program execution

Set a breakpoint on CreateMutexA/W and see if that yields any results.
Irwin is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Language display in program Prm753 C++ 3 May 30th, 2006 5:45 PM
Converter, my first multiple action listener program ReggaetonKing Java 4 Feb 23rd, 2006 7:01 AM
Creating a program to test a program sixstringartist C 8 Jan 21st, 2006 1:15 PM
Probelm with program execution in TOMCAT hemanth.balaji Java 2 Dec 3rd, 2005 8:36 AM
Win32 execution of a Command Line program hemanth.balaji C++ 7 May 20th, 2005 9:14 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 4:05 AM.

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