Click here to Skip to main content
15,914,820 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Cross-session detection of running programs Pin
Randor 18-Jul-08 13:56
professional Randor 18-Jul-08 13:56 
GeneralRe: Cross-session detection of running programs Pin
Mark Salsbery19-Jul-08 7:19
Mark Salsbery19-Jul-08 7:19 
AnswerRe: Cross-session detection of running programs Pin
kinar18-Jul-08 12:09
kinar18-Jul-08 12:09 
GeneralRe: Cross-session detection of running programs Pin
Stephen Hewitt20-Jul-08 13:38
Stephen Hewitt20-Jul-08 13:38 
GeneralRe: Cross-session detection of running programs Pin
kinar20-Jul-08 18:19
kinar20-Jul-08 18:19 
GeneralRe: Cross-session detection of running programs Pin
luweewu22-Jul-08 11:14
luweewu22-Jul-08 11:14 
AnswerRe: Cross-session detection of running programs Pin
luweewu24-Jul-08 7:31
luweewu24-Jul-08 7:31 
AnswerRe: Cross-session detection of running programs Pin
Big Daddy Farang18-Jul-08 12:23
Big Daddy Farang18-Jul-08 12:23 
If all of the programs you need to detect are yours, you could use the solution provided by Mark S. You'd need to modify all of them to create a mutex and check for all of the mutexes.

Another solution would be to get a list of all processes running using the CreateToolhelp32Snapshot() function. I've used this under Win98, 2000, and XP. I can't say about Vista.

This will give you the names of the .exe files that are running, including services. You'll need to know the executable name (not full path) in order for this to work.

Hope that helps.

BDF

A learned fool is more a fool than an ignorant fool.
-- Moliere

QuestionHelp update window display Pin
Kwanalouie18-Jul-08 10:19
Kwanalouie18-Jul-08 10:19 
AnswerRe: Help update window display Pin
CPallini18-Jul-08 11:54
mveCPallini18-Jul-08 11:54 
QuestionCListCtrl and mods to bkgrnd colour Pin
john john mackey18-Jul-08 9:53
john john mackey18-Jul-08 9:53 
QuestionAdding ODBC RecordSet class to Mainfrm class Pin
Cozmo2318-Jul-08 8:38
Cozmo2318-Jul-08 8:38 
AnswerRe: Adding ODBC RecordSet class to Mainfrm class Pin
Mark Salsbery18-Jul-08 8:55
Mark Salsbery18-Jul-08 8:55 
AnswerRe: Adding ODBC RecordSet class to Mainfrm class Pin
David Crow18-Jul-08 10:04
David Crow18-Jul-08 10:04 
GeneralRe: Adding ODBC RecordSet class to Mainfrm class Pin
Cozmo2319-Jul-08 8:01
Cozmo2319-Jul-08 8:01 
QuestionSerial Com controlling DTR & RTS Pin
aei_totten18-Jul-08 8:05
aei_totten18-Jul-08 8:05 
AnswerRe: Serial Com controlling DTR & RTS Pin
aei_totten18-Jul-08 8:38
aei_totten18-Jul-08 8:38 
AnswerRe: Serial Com controlling DTR & RTS Pin
Gary R. Wheeler18-Jul-08 15:18
Gary R. Wheeler18-Jul-08 15:18 
AnswerRe: Serial Com controlling DTR & RTS Pin
Luc Pattyn18-Jul-08 15:43
sitebuilderLuc Pattyn18-Jul-08 15:43 
QuestionMakefile question Pin
JoeSox18-Jul-08 6:55
JoeSox18-Jul-08 6:55 
AnswerRe: Makefile question [modified] Pin
Rajkumar R20-Jul-08 21:44
Rajkumar R20-Jul-08 21:44 
QuestionUsing msxml in a visual c++ project Pin
rocktx18-Jul-08 6:33
rocktx18-Jul-08 6:33 
AnswerRe: Using msxml in a visual c++ project Pin
led mike18-Jul-08 7:13
led mike18-Jul-08 7:13 
GeneralRe: Using msxml in a visual c++ project Pin
rocktx18-Jul-08 7:30
rocktx18-Jul-08 7:30 
QuestionExtended MAPI access to calendars Pin
twsmyth18-Jul-08 6:21
twsmyth18-Jul-08 6:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.