Click here to Skip to main content
15,860,844 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Removing the MS-DOS stub from a PE File Pin
Baltoro11-Apr-09 10:21
Baltoro11-Apr-09 10:21 
GeneralRe: Removing the MS-DOS stub from a PE File Pin
iNoble11-Apr-09 13:16
iNoble11-Apr-09 13:16 
AnswerRe: Removing the MS-DOS stub from a PE File Pin
Stephen Hewitt12-Apr-09 6:08
Stephen Hewitt12-Apr-09 6:08 
GeneralRe: Removing the MS-DOS stub from a PE File Pin
iNoble12-Apr-09 11:36
iNoble12-Apr-09 11:36 
GeneralRe: Removing the MS-DOS stub from a PE File Pin
Baltoro13-Apr-09 5:55
Baltoro13-Apr-09 5:55 
Questionneed help.. [modified] Pin
badboyz8911-Apr-09 7:31
badboyz8911-Apr-09 7:31 
AnswerRe: need help.. Pin
CARPETBURNER12-Apr-09 0:06
CARPETBURNER12-Apr-09 0:06 
Questionwho can share the code to intercept iexplore connect send recv closesocket Pin
ernst2002053011-Apr-09 5:19
ernst2002053011-Apr-09 5:19 
extern "C" __declspec(dllexport) bool setHook(DWORD dwThreadId)
{
printf("set Hook!\n");
if (dwThreadId != 0)
{
hkprcSysMsg = GetMsgProc;

hHook = SetWindowsHookEx(WH_GETMESSAGE,hkprcSysMsg,hInst,dwThreadId);
if (hHook != NULL)
{
printf("OK\n");
return true;
}
else
{
int err=GetLastError();
return false;
}
}
return false;
}

LRESULT WINAPI GetMsgProc(int nCode, WPARAM wParam, LPARAM lParam){
printf("Hook!\n");
PROC fpOri = GetProcAddress(GetModuleHandle(TEXT("Wsock32.DLL")),"connect");
HMODULE hmodCaller = GetModuleHandle(TEXT("OpenApplication.exe"));
fp5 connect5=connect1;
ReplaceIATEntryInOneMod("Wsock32.DLL", fpOri,(PROC)connect5, hmodCaller);


return (CallNextHookEx(hHook, nCode, wParam, lParam));
}

this is two functions in my dll file to inject my dll into iexplore, why the hook function GetMsgProc never be called, and when will the function be called?

who can share the complete code from DLL injection and replace my dll file instead of system dll file
AnswerRe: who can share the code to intercept iexplore connect send recv closesocket Pin
Green Fuze11-Apr-09 20:00
Green Fuze11-Apr-09 20:00 
News[ANN] Announcement: NUI C++ multi-platform appllication framework, 3D hardware GUI [modified] Pin
meelooo11-Apr-09 0:17
meelooo11-Apr-09 0:17 
GeneralRe: [ANN] Announcement: NUI C++ multi-platform appllication framework, 3D hardware GUI Pin
Rajesh R Subramanian11-Apr-09 0:20
professionalRajesh R Subramanian11-Apr-09 0:20 
GeneralRe: [ANN] Announcement: NUI C++ multi-platform appllication framework, 3D hardware GUI Pin
meelooo11-Apr-09 0:26
meelooo11-Apr-09 0:26 
GeneralRe: [ANN] Announcement: NUI C++ multi-platform appllication framework, 3D hardware GUI Pin
Rajesh R Subramanian11-Apr-09 0:31
professionalRajesh R Subramanian11-Apr-09 0:31 
QuestionGEt path of msi Pin
p_196010-Apr-09 23:46
p_196010-Apr-09 23:46 
AnswerRe: GEt path of msi Pin
Rajesh R Subramanian10-Apr-09 23:51
professionalRajesh R Subramanian10-Apr-09 23:51 
GeneralRe: GEt path of msi Pin
p_196010-Apr-09 23:53
p_196010-Apr-09 23:53 
GeneralRe: GEt path of msi Pin
Rajesh R Subramanian11-Apr-09 0:23
professionalRajesh R Subramanian11-Apr-09 0:23 
GeneralRe: GEt path of msi Pin
p_196011-Apr-09 1:04
p_196011-Apr-09 1:04 
GeneralRe: GEt path of msi Pin
Rajesh R Subramanian11-Apr-09 3:31
professionalRajesh R Subramanian11-Apr-09 3:31 
AnswerRe: GEt path of msi Pin
Narendra Reddy Vajrala18-Jun-09 5:17
Narendra Reddy Vajrala18-Jun-09 5:17 
Questiondialog window Pin
durban210-Apr-09 21:11
durban210-Apr-09 21:11 
AnswerRe: dialog window Pin
Rajesh R Subramanian10-Apr-09 21:26
professionalRajesh R Subramanian10-Apr-09 21:26 
QuestionUnderstanding GetUserObjectSecurity function Pin
rbwest8610-Apr-09 21:09
rbwest8610-Apr-09 21:09 
AnswerRe: Understanding GetUserObjectSecurity function (warning: long reply) Pin
Rajesh R Subramanian10-Apr-09 22:28
professionalRajesh R Subramanian10-Apr-09 22:28 
QuestionResource DLL Pin
Varun Bhatt10-Apr-09 21:01
Varun Bhatt10-Apr-09 21:01 

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.