Click here to Skip to main content
15,897,371 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: need urgent help! Pin
YaronNir17-Dec-03 5:25
YaronNir17-Dec-03 5:25 
GeneralRe: need urgent help! Pin
Don Kackman17-Dec-03 5:36
Don Kackman17-Dec-03 5:36 
GeneralRe: need urgent help! Pin
YaronNir17-Dec-03 5:38
YaronNir17-Dec-03 5:38 
GeneralRe: need urgent help! Pin
Michael Dunn17-Dec-03 17:42
sitebuilderMichael Dunn17-Dec-03 17:42 
GeneralRe: need urgent help! Pin
YaronNir17-Dec-03 20:44
YaronNir17-Dec-03 20:44 
GeneralBrowser Helper Object : How to stop form being submitted Pin
Avya17-Dec-03 3:37
Avya17-Dec-03 3:37 
GeneralRe: Browser Helper Object : How to stop form being submitted Pin
Terry O'Nolley17-Dec-03 12:46
Terry O'Nolley17-Dec-03 12:46 
GeneralRe: Browser Helper Object : How to stop form being submitted Pin
Peter Molnar17-Dec-03 14:14
Peter Molnar17-Dec-03 14:14 
As Terry has already pointed out, an event signalizes in this case that something has already taken place, and you cannot influence the trigger of the event in the past.
However there is a workaround, and it is called API hooking/hijacking/monitoring.

Internet Explorer uses the Wininet functions to communicate with the internet. If your user clickes the "go" button with some url in the address bar, the appropriate Wininet functions, like HttpOpenRequest and HttpSendRequest are called inside IE's code. The same applies to when the user submit a form.

If you hook into the WinInet functions from your BHO, then you will be able to monitor and "authorize" IE's actions.
Example: if your user clicked a Submit button on a form with POST action then HttpOpenRequest is called with the second parameter lpszVerb being "POST". You can take any action including stopping the process.
If a form with "GET" action is concerned, your job is a bit more difficult because the verb in this case does not differ from "ordinary" page requests. You could then take into account the url from your form, and compare it with lpszObjName (3. param of HttpOpenRequest)

If you are unfamiliar with API hooking, check out this article:

http://www.codeproject.com/useritems/api_monitoring_unleashed.asp

Peter Molnar
Generalinstant messanger like icq over proxy Pin
mightyCoCo17-Dec-03 2:37
mightyCoCo17-Dec-03 2:37 
GeneralRe: instant messanger like icq over proxy Pin
valikac17-Dec-03 4:59
valikac17-Dec-03 4:59 
GeneralRe: instant messanger like icq over proxy Pin
mightyCoCo17-Dec-03 5:12
mightyCoCo17-Dec-03 5:12 
GeneralRe: instant messanger like icq over proxy Pin
jmkhael17-Dec-03 7:42
jmkhael17-Dec-03 7:42 
GeneralRe: instant messanger like icq over proxy Pin
mightyCoCo17-Dec-03 8:02
mightyCoCo17-Dec-03 8:02 
Generalcursor did not change Pin
y_seval17-Dec-03 2:32
y_seval17-Dec-03 2:32 
GeneralRe: cursor did not change Pin
jhwurmbach17-Dec-03 3:30
jhwurmbach17-Dec-03 3:30 
QuestionDetecting acurate scrollbar position? Pin
Brian van der Beek17-Dec-03 2:21
Brian van der Beek17-Dec-03 2:21 
GeneralPlease Help!!!! MS Chart Pin
silverware17-Dec-03 1:58
silverware17-Dec-03 1:58 
GeneralReading Binary files Pin
BoudewijnEctor17-Dec-03 1:32
BoudewijnEctor17-Dec-03 1:32 
GeneralRe: Reading Binary files Pin
RChin17-Dec-03 1:56
RChin17-Dec-03 1:56 
GeneralVC Debug trouble Pin
El'Cachubrey17-Dec-03 1:17
El'Cachubrey17-Dec-03 1:17 
GeneralRe: VC Debug trouble Pin
sam India17-Dec-03 1:54
sam India17-Dec-03 1:54 
GeneralHelp with Speech application, please! Pin
satcat17-Dec-03 1:02
satcat17-Dec-03 1:02 
GeneralCould not see the contents of ComboBox when created Dynamically Pin
Azghar Hussain17-Dec-03 0:52
professionalAzghar Hussain17-Dec-03 0:52 
GeneralRe: Could not see the contents of ComboBox when created Dynamically Pin
Dudi Avramov17-Dec-03 2:22
Dudi Avramov17-Dec-03 2:22 
GeneralMemory Allocations/Deallocations problems Pin
rpadrela17-Dec-03 0:47
rpadrela17-Dec-03 0:47 

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.