Click here to Skip to main content
15,896,526 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionEmail Attachments Pin
Programm3r4-Jul-06 20:07
Programm3r4-Jul-06 20:07 
AnswerRe: Email Attachments Pin
NiceNaidu4-Jul-06 20:18
NiceNaidu4-Jul-06 20:18 
AnswerRe: Email Attachments Pin
Hamid_RT4-Jul-06 20:18
Hamid_RT4-Jul-06 20:18 
Questionhelp for messenger Pin
Aqueel4-Jul-06 20:07
Aqueel4-Jul-06 20:07 
AnswerRe: help for messenger Pin
NiceNaidu4-Jul-06 20:22
NiceNaidu4-Jul-06 20:22 
GeneralRe: help for messenger Pin
Aqueel4-Jul-06 20:32
Aqueel4-Jul-06 20:32 
AnswerRe: help for messenger Pin
Weiye Chen4-Jul-06 20:34
Weiye Chen4-Jul-06 20:34 
QuestionHow to hook windows'socket functions using SetWindowsHookEx function Pin
vietth20044-Jul-06 19:44
vietth20044-Jul-06 19:44 
Please help me!
I am writing a small program that I want to uses the Hook function for windows'socket functions like recv, send,...
I have tried to uses the function SetWindowsHookEx:
HHOOK SetWindowsHookEx(
int idHook,
HOOKPROC lpfn,
HINSTANCE hMod,
DWORD dwThreadId
);
But it seems to have too fews argument.It has only 4 arguments: one for the type of hook, one for the address of the function to be hooked, one for the instance that contain the function, one for the thread that the function is running in. I cannot find out where to put the address of the new function that I want to put into the hook chain.
Please show me where to put the new function's address, how to uses the SetWindowsHookEx function and how its argument work.
Thank you very much!
AnswerRe: How to hook windows'socket functions using SetWindowsHookEx function Pin
Sarath C4-Jul-06 20:08
Sarath C4-Jul-06 20:08 
AnswerRe: How to hook windows'socket functions using SetWindowsHookEx function Pin
Hamid_RT4-Jul-06 20:08
Hamid_RT4-Jul-06 20:08 
AnswerRe: How to hook windows'socket functions using SetWindowsHookEx function Pin
pgibson0077006-Jul-06 12:26
pgibson0077006-Jul-06 12:26 
GeneralRe: How to hook windows'socket functions using SetWindowsHookEx function Pin
vietth20047-Jul-06 22:44
vietth20047-Jul-06 22:44 
QuestionMS WORD Recent Files Pin
Vikas_Yadav4-Jul-06 19:35
Vikas_Yadav4-Jul-06 19:35 
Questionresize problem????????????? Pin
mimimimilaw4-Jul-06 18:25
mimimimilaw4-Jul-06 18:25 
AnswerRe: resize problem????????????? Pin
see me4-Jul-06 18:32
see me4-Jul-06 18:32 
AnswerRe: resize problem????????????? Pin
_AnsHUMAN_ 4-Jul-06 18:55
_AnsHUMAN_ 4-Jul-06 18:55 
GeneralRe: resize problem????????????? [modified] Pin
mimimimilaw4-Jul-06 19:46
mimimimilaw4-Jul-06 19:46 
GeneralRe: resize problem????????????? Pin
_AnsHUMAN_ 4-Jul-06 19:52
_AnsHUMAN_ 4-Jul-06 19:52 
GeneralRe: resize problem????????????? Pin
mimimimilaw4-Jul-06 20:03
mimimimilaw4-Jul-06 20:03 
GeneralRe: resize problem????????????? Pin
_AnsHUMAN_ 4-Jul-06 20:08
_AnsHUMAN_ 4-Jul-06 20:08 
GeneralRe: resize problem????????????? Pin
mimimimilaw4-Jul-06 20:11
mimimimilaw4-Jul-06 20:11 
GeneralRe: resize problem????????????? Pin
_AnsHUMAN_ 4-Jul-06 20:15
_AnsHUMAN_ 4-Jul-06 20:15 
GeneralRe: resize problem????????????? Pin
mimimimilaw4-Jul-06 21:11
mimimimilaw4-Jul-06 21:11 
GeneralRe: resize problem????????????? Pin
Hamid_RT4-Jul-06 20:20
Hamid_RT4-Jul-06 20:20 
QuestionFormat specifier for WORD Pin
RockyJames4-Jul-06 18:05
RockyJames4-Jul-06 18:05 

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.