Click here to Skip to main content
15,907,001 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to change cursor? Pin
AHawk27-Sep-05 0:08
AHawk27-Sep-05 0:08 
AnswerRe: How to change cursor? Pin
AHawk27-Sep-05 0:10
AHawk27-Sep-05 0:10 
AnswerRe: How to change cursor? Pin
Ashok Dhamija27-Sep-05 4:36
Ashok Dhamija27-Sep-05 4:36 
QuestionHow to initialize _TCHAR array Pin
Boaz V26-Sep-05 23:32
Boaz V26-Sep-05 23:32 
AnswerRe: How to initialize _TCHAR array Pin
Laffis26-Sep-05 23:36
Laffis26-Sep-05 23:36 
GeneralRe: How to initialize _TCHAR array Pin
Boaz V27-Sep-05 0:42
Boaz V27-Sep-05 0:42 
QuestionUse of Narrator and other screen readers Pin
greekgoddj26-Sep-05 23:27
greekgoddj26-Sep-05 23:27 
QuestionHelp hooking Windows API functions Pin
JaVinci26-Sep-05 23:27
JaVinci26-Sep-05 23:27 
Hi, everybody!

I need help... I'm still trying to develop a kind of a firewall for WinNT/2K/XP, in C++. I'm using a program that hooks Windows API functions and it works reasonably good. The way it hooks Windows API functions is injecting the dll to every process using CreateRemoteThread().

My problem is with two functions: accept() and listen() aren't hooked (I've tried to hook them from WS2_32.DLL and WSOCK32.DLL), altough the code I've written should be hooking them (I've hooked lots of API functions the same way without a problem -CreateProcess, ExitProcess, send, recv, etc..-), but I don't seem to be able to hook those two functions.

Do you have any idea of what can be the reason for this?

Thanks a lot to all in advance.

Regards:

Javi.


AnswerRe: Help hooking Windows API functions Pin
Laffis26-Sep-05 23:41
Laffis26-Sep-05 23:41 
GeneralRe: Help hooking Windows API functions Pin
ThatsAlok27-Sep-05 1:42
ThatsAlok27-Sep-05 1:42 
QuestionTo save & restore Files and Folders Pin
rajeevktripathi26-Sep-05 23:16
rajeevktripathi26-Sep-05 23:16 
AnswerRe: To save & restore Files and Folders Pin
AHawk26-Sep-05 23:56
AHawk26-Sep-05 23:56 
QuestionUndeclared Identifier Pin
rajeevktripathi26-Sep-05 23:04
rajeevktripathi26-Sep-05 23:04 
AnswerRe: Undeclared Identifier Pin
Roger Stoltz26-Sep-05 23:25
Roger Stoltz26-Sep-05 23:25 
AnswerRe: Undeclared Identifier Pin
toxcct26-Sep-05 23:34
toxcct26-Sep-05 23:34 
AnswerRe: Undeclared Identifier Pin
prasad_som26-Sep-05 23:36
prasad_som26-Sep-05 23:36 
QuestionRegister File Type in Registry Pin
kk.tvm26-Sep-05 22:27
kk.tvm26-Sep-05 22:27 
AnswerRe: Register File Type in Registry Pin
Blake Miller27-Sep-05 4:30
Blake Miller27-Sep-05 4:30 
QuestionAggregate compiler problem... Pin
toxcct26-Sep-05 22:13
toxcct26-Sep-05 22:13 
GeneralRe: Aggregate compiler problem... Pin
prasad_som26-Sep-05 23:14
prasad_som26-Sep-05 23:14 
GeneralRe: Aggregate compiler problem... Pin
toxcct26-Sep-05 23:40
toxcct26-Sep-05 23:40 
AnswerRe: Aggregate compiler problem... Pin
Roger Stoltz26-Sep-05 23:19
Roger Stoltz26-Sep-05 23:19 
GeneralRe: Aggregate compiler problem... Pin
toxcct26-Sep-05 23:29
toxcct26-Sep-05 23:29 
Questionhow to upgrade a lib from vc6 version to vc7's? Pin
tankwan26-Sep-05 22:08
tankwan26-Sep-05 22:08 
QuestionUnable open the files (*.h and *.cpp) for class *dlg Pin
wenhou26-Sep-05 21:48
wenhou26-Sep-05 21:48 

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.