Click here to Skip to main content
15,910,123 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Member Function Call by Pointer Pin
Bram van Kampen2-Nov-08 12:14
Bram van Kampen2-Nov-08 12:14 
GeneralRe: Member Function Call by Pointer Pin
Michael Dunn2-Nov-08 8:17
sitebuilderMichael Dunn2-Nov-08 8:17 
GeneralRe: Member Function Call by Pointer Pin
Bram van Kampen2-Nov-08 12:15
Bram van Kampen2-Nov-08 12:15 
Questionhow to show/hide windows properly? Pin
includeh101-Nov-08 10:56
includeh101-Nov-08 10:56 
AnswerRe: how to show/hide windows properly? Pin
Mark Salsbery1-Nov-08 13:23
Mark Salsbery1-Nov-08 13:23 
AnswerRe: how to show/hide windows properly? Pin
Bram van Kampen1-Nov-08 13:58
Bram van Kampen1-Nov-08 13:58 
AnswerRe: how to show/hide windows properly? Pin
Alan Balkany3-Nov-08 8:48
Alan Balkany3-Nov-08 8:48 
Questionsockaddr* - Casting from DWORD, get Ip address. Pin
urbanyoung1-Nov-08 2:29
urbanyoung1-Nov-08 2:29 
Hey,

What I'm trying to do is get the ip address that a program is attempting to connect to. I can't use microsoft detours because if there is a similar application running the ip address will get modified before my program receives the data. At the moment I am codecaving on the connect statement below, from there I store the second argument (pSockAddr, EDI + 4) into a DWORD variable. I'm told that it's possible to get the address that the program is trying to connect to from pSockAddr, but I'm not too sure how. I've tried a reinterpret_cast statement, but of course that would be too simple :P

PUSH 10                                  ; /AddrLen = 10 (16.)
PUSH EDI                                 ; |pSockAddr
PUSH ECX                                 ; |Socket
CALL DWORD PTR DS:[<&WS2_32.#4>]         ; \connect


Could anybody guide me in the right direction? I've searched around this site and googled for about half an hour, without any luck. I'd really appreciate some help with this.

Thank you for your time,
urbanyoung.
AnswerRe: sockaddr* - Casting from DWORD, get Ip address. Pin
Mark Salsbery1-Nov-08 9:04
Mark Salsbery1-Nov-08 9:04 
QuestionGetting VPN IP Pin
Green Fuze31-Oct-08 23:14
Green Fuze31-Oct-08 23:14 
QuestionInsert Text at cursor position in a CEdit Control Pin
Dhiraj kumar Saini31-Oct-08 20:44
Dhiraj kumar Saini31-Oct-08 20:44 
AnswerRe: Insert Text at cursor position in a CEdit Control Pin
Cedric Moonen1-Nov-08 0:42
Cedric Moonen1-Nov-08 0:42 
GeneralRe: Insert Text at cursor position in a CEdit Control Pin
Dhiraj kumar Saini1-Nov-08 1:51
Dhiraj kumar Saini1-Nov-08 1:51 
QuestionHow to transfer file via bluetooth from desktop PC to Windows Mobile Device Pin
yudhisthira31-Oct-08 19:18
yudhisthira31-Oct-08 19:18 
QuestionCan you Export to a DLL the resource from another program a dialog resource and it's class with all the DDX and varables? Pin
Larry Mills Sr31-Oct-08 15:52
Larry Mills Sr31-Oct-08 15:52 
AnswerRe: Can you Export to a DLL the resource from another program a dialog resource and it's class with all the DDX and varables? Pin
Kenneth Ballard31-Oct-08 18:52
Kenneth Ballard31-Oct-08 18:52 
GeneralRe: Can you Export to a DLL the resource from another program a dialog resource and it's class with all the DDX and varables? Pin
Larry Mills Sr1-Nov-08 3:12
Larry Mills Sr1-Nov-08 3:12 
GeneralRe: Can you Export to a DLL the resource from another program a dialog resource and it's class with all the DDX and varables? Pin
Mark Salsbery1-Nov-08 10:13
Mark Salsbery1-Nov-08 10:13 
GeneralRe: Can you Export to a DLL the resource from another program a dialog resource and it's class with all the DDX and varables? Pin
Larry Mills Sr1-Nov-08 12:35
Larry Mills Sr1-Nov-08 12:35 
GeneralRe: Can you Export to a DLL the resource from another program a dialog resource and it's class with all the DDX and varables? Pin
Mark Salsbery1-Nov-08 13:13
Mark Salsbery1-Nov-08 13:13 
GeneralRe: Can you Export to a DLL the resource from another program a dialog resource and it's class with all the DDX and varables? Pin
Larry Mills Sr1-Nov-08 14:43
Larry Mills Sr1-Nov-08 14:43 
GeneralRe: Can you Export to a DLL the resource from another program a dialog resource and it's class with all the DDX and varables? Pin
Mark Salsbery1-Nov-08 15:37
Mark Salsbery1-Nov-08 15:37 
GeneralRe: Can you Export to a DLL the resource from another program a dialog resource and it's class with all the DDX and varables? Pin
Larry Mills Sr1-Nov-08 15:43
Larry Mills Sr1-Nov-08 15:43 
GeneralRe: Can you Export to a DLL the resource from another program a dialog resource and it's class with all the DDX and varables? Pin
Mark Salsbery1-Nov-08 15:52
Mark Salsbery1-Nov-08 15:52 
GeneralRe: Can you Export to a DLL the resource from another program a dialog resource and it's class with all the DDX and varables? Pin
Larry Mills Sr1-Nov-08 16:01
Larry Mills Sr1-Nov-08 16: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.