Click here to Skip to main content
16,011,611 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Dialog ID comparision Pin
Michael Schubert2-Nov-07 6:56
Michael Schubert2-Nov-07 6:56 
QuestionAbout Date Pin
manish.patel1-Nov-07 23:57
manish.patel1-Nov-07 23:57 
GeneralRe: About Date Pin
Matthew Faithfull2-Nov-07 1:47
Matthew Faithfull2-Nov-07 1:47 
AnswerRe: About Date Pin
David Crow2-Nov-07 3:01
David Crow2-Nov-07 3:01 
QuestionCatching the launch of an applicatin Pin
jpgossieaux01-Nov-07 23:57
jpgossieaux01-Nov-07 23:57 
GeneralRe: Catching the launch of an applicatin Pin
Matthew Faithfull2-Nov-07 0:25
Matthew Faithfull2-Nov-07 0:25 
GeneralRe: Catching the launch of an applicatin Pin
jpgossieaux02-Nov-07 0:39
jpgossieaux02-Nov-07 0:39 
GeneralRe: Catching the launch of an applicatin Pin
Matthew Faithfull2-Nov-07 0:57
Matthew Faithfull2-Nov-07 0:57 
The principle of Dll injection is that you get the 3rd party app to load your dll into itself which gives you an opportunity to run some code, override window classes, install some hooks or whatever into an exisiting application. I'm no expert on this but there are articles on CP about it.
In this case your injected Dll would need to establish the command line of the executable that had loaded it, this info is accessible as part of the PROCESS_INFO structure which it should be able to retrieve. If this is an app you want to block then it would Set a named shared Kernel Event that your other process is already waiting on. It might also need some way of communicating the Process ID of the 'bad' process to the monitor, or you could kep the ToolHelp sapshot based scan and just trigger it on the event, or just get the Dll to kill the process itself, Dead | X|

This may indeed be able to shut down the disallowed process before the user sees anything but it really is no substitute to preventing them launching it in the first place using the Windows user account permissions system.

Nothing is exactly what it seems but everything with seems can be unpicked.

QuestionRe: Catching the launch of an applicatin Pin
David Crow2-Nov-07 3:06
David Crow2-Nov-07 3:06 
AnswerRe: Catching the launch of an applicatin Pin
TClarke2-Nov-07 4:00
TClarke2-Nov-07 4:00 
AnswerRe: Catching the launch of an applicatin Pin
jpgossieaux05-Nov-07 6:46
jpgossieaux05-Nov-07 6:46 
AnswerRe: Catching the launch of an applicatin Pin
Garth J Lancaster2-Nov-07 13:08
professionalGarth J Lancaster2-Nov-07 13:08 
Questionpointer on reference ? Pin
Rage1-Nov-07 23:55
professionalRage1-Nov-07 23:55 
AnswerRe: pointer on reference ? Pin
manish.patel2-Nov-07 0:02
manish.patel2-Nov-07 0:02 
AnswerRe: pointer on reference ? Pin
Matthew Faithfull2-Nov-07 0:19
Matthew Faithfull2-Nov-07 0:19 
GeneralRe: pointer on reference ? Pin
Rage2-Nov-07 3:12
professionalRage2-Nov-07 3:12 
AnswerRe: pointer on reference ? Pin
led mike2-Nov-07 4:45
led mike2-Nov-07 4:45 
QuestionHow to learn Debugging Tools Pin
sheshidar1-Nov-07 23:40
sheshidar1-Nov-07 23:40 
AnswerRe: How to learn Debugging Tools Pin
Nelek1-Nov-07 23:52
protectorNelek1-Nov-07 23:52 
AnswerRe: How to learn Debugging Tools Pin
ThatsAlok2-Nov-07 3:14
ThatsAlok2-Nov-07 3:14 
JokeRe: How to learn Debugging Tools Pin
Hamid_RT2-Nov-07 6:45
Hamid_RT2-Nov-07 6:45 
GeneralRe: How to learn Debugging Tools Pin
ThatsAlok2-Nov-07 6:53
ThatsAlok2-Nov-07 6:53 
GeneralRe: How to learn Debugging Tools Pin
Hamid_RT2-Nov-07 19:13
Hamid_RT2-Nov-07 19:13 
Questionname conflicts in enum Pin
George_George1-Nov-07 23:26
George_George1-Nov-07 23:26 
AnswerRe: name conflicts in enum Pin
Bram van Kampen1-Nov-07 23:39
Bram van Kampen1-Nov-07 23:39 

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.