Click here to Skip to main content
15,499,155 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Removing the MS-DOS stub from a PE File Pin
Baltoro11-Apr-09 11:21
MemberBaltoro11-Apr-09 11:21 
GeneralRe: Removing the MS-DOS stub from a PE File Pin
iNoble11-Apr-09 14:16
MemberiNoble11-Apr-09 14:16 
AnswerRe: Removing the MS-DOS stub from a PE File Pin
Stephen Hewitt12-Apr-09 7:08
MemberStephen Hewitt12-Apr-09 7:08 
GeneralRe: Removing the MS-DOS stub from a PE File Pin
iNoble12-Apr-09 12:36
MemberiNoble12-Apr-09 12:36 
GeneralRe: Removing the MS-DOS stub from a PE File Pin
Baltoro13-Apr-09 6:55
MemberBaltoro13-Apr-09 6:55 
Questionneed help.. [modified] Pin
badboyz8911-Apr-09 8:31
Memberbadboyz8911-Apr-09 8:31 
AnswerRe: need help.. Pin
CARPETBURNER12-Apr-09 1:06
MemberCARPETBURNER12-Apr-09 1:06 
Questionwho can share the code to intercept iexplore connect send recv closesocket Pin
ernst2002053011-Apr-09 6:19
Memberernst2002053011-Apr-09 6: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 21:00
MemberGreen Fuze11-Apr-09 21:00 
News[ANN] Announcement: NUI C++ multi-platform appllication framework, 3D hardware GUI [modified] Pin
meelooo11-Apr-09 1:17
Membermeelooo11-Apr-09 1:17 
GeneralRe: [ANN] Announcement: NUI C++ multi-platform appllication framework, 3D hardware GUI Pin
Rajesh R Subramanian11-Apr-09 1:20
professionalRajesh R Subramanian11-Apr-09 1:20 
GeneralRe: [ANN] Announcement: NUI C++ multi-platform appllication framework, 3D hardware GUI Pin
meelooo11-Apr-09 1:26
Membermeelooo11-Apr-09 1:26 
GeneralRe: [ANN] Announcement: NUI C++ multi-platform appllication framework, 3D hardware GUI Pin
Rajesh R Subramanian11-Apr-09 1:31
professionalRajesh R Subramanian11-Apr-09 1:31 
QuestionGEt path of msi Pin
p_196011-Apr-09 0:46
Memberp_196011-Apr-09 0:46 
AnswerRe: GEt path of msi Pin
Rajesh R Subramanian11-Apr-09 0:51
professionalRajesh R Subramanian11-Apr-09 0:51 
GeneralRe: GEt path of msi Pin
p_196011-Apr-09 0:53
Memberp_196011-Apr-09 0:53 
GeneralRe: GEt path of msi Pin
Rajesh R Subramanian11-Apr-09 1:23
professionalRajesh R Subramanian11-Apr-09 1:23 
GeneralRe: GEt path of msi Pin
p_196011-Apr-09 2:04
Memberp_196011-Apr-09 2:04 
GeneralRe: GEt path of msi Pin
Rajesh R Subramanian11-Apr-09 4:31
professionalRajesh R Subramanian11-Apr-09 4:31 
AnswerRe: GEt path of msi Pin
Narendra Reddy Vajrala18-Jun-09 6:17
MemberNarendra Reddy Vajrala18-Jun-09 6:17 
Questiondialog window Pin
durban210-Apr-09 22:11
Memberdurban210-Apr-09 22:11 
AnswerRe: dialog window Pin
Rajesh R Subramanian10-Apr-09 22:26
professionalRajesh R Subramanian10-Apr-09 22:26 
QuestionUnderstanding GetUserObjectSecurity function Pin
rbwest8610-Apr-09 22:09
Memberrbwest8610-Apr-09 22:09 
AnswerRe: Understanding GetUserObjectSecurity function (warning: long reply) Pin
Rajesh R Subramanian10-Apr-09 23:28
professionalRajesh R Subramanian10-Apr-09 23:28 
QuestionResource DLL Pin
Varun Bhatt10-Apr-09 22:01
MemberVarun Bhatt10-Apr-09 22: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.