Click here to Skip to main content
15,925,399 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Error in message box. Pin
Anu_Bala10-Sep-06 18:50
Anu_Bala10-Sep-06 18:50 
GeneralRe: Error in message box. Pin
Hamid_RT10-Sep-06 20:20
Hamid_RT10-Sep-06 20:20 
AnswerRe: Error in message box. Pin
Waldermort8-Sep-06 22:55
Waldermort8-Sep-06 22:55 
QuestionHelp about CComboBox Pin
kcynic8-Sep-06 21:37
kcynic8-Sep-06 21:37 
AnswerRe: Help about CComboBox Pin
Hamid_RT8-Sep-06 22:57
Hamid_RT8-Sep-06 22:57 
GeneralRe: Help about CComboBox Pin
kcynic9-Sep-06 17:48
kcynic9-Sep-06 17:48 
GeneralRe: Help about CComboBox Pin
Hamid_RT10-Sep-06 2:29
Hamid_RT10-Sep-06 2:29 
QuestionLinking recieved udp packets with a Process Pin
three_pineapples8-Sep-06 20:54
three_pineapples8-Sep-06 20:54 
Hi,

I'm looking for a way to find the remote ip and port of a UDP packet being sent to a specific process (not my program).

I've looked at using the GetExtendedUdpTable() function on MSDN, but it will only return the local address of the UDP packet, which is useless given that i could work out the local IP easily.

I've also started to look at writing a TDI driver which would be able to return the remote IP address (at least i think it can) but i haven't seen any obvious way to connect this with a process ID. The TDI device driver tutorial here was useful, but it only seemed to show that you could use TDI instead of standard sockets. I've also read the stuff here on GetExtendedUdpTable (even if it was for c#) but as the function is limited as i mentioned before.

I know it is possible though, as a program called "TDImon" by sysinternals does it. Its closed source of course, so it doesn't really help me. It does give some clue of how it works in the help file, but i'm having enough trouble with the idea of developing a device driver, let alone making a connection between TDI and Winsock.

Quote:
TDImon gets its name from the fact that it monitors activity at the Transport Driver Interface (TDI) level of networking operations in the operating system kernel. This is the interface to protocol stacks such as TCP and UDP. Thus, the I/O activity shown by TDImon corresponds to TDI-formatted commands. Most TDI commands have direct correspondence with WinSock (the Windows socket API) functions, and thus are easy to interpret. For documentation on TDI and the commands shown in TDImon, please see the Windows NT or Windows 2000 DDK, available for free download from Microsoft’s web site.


So,
is there an easier way to do this?
Can someone please give me some pointers as where to look into TDI thats free and not the MS DDK?
Sample TDI code would be appreciated if someone has anything that will do something like what i'm looking for.

Thanks in advance

three_pineapples

p.s. In case it matters i'm developing on Windows XP SP2 using the Mingw C++ Compiler (which doesn't appear to have the GetExtendedUdpTable function, probably because the function is native to XP SP2 only).
QuestionVc++ express edition Pin
Anu_Bala8-Sep-06 20:45
Anu_Bala8-Sep-06 20:45 
AnswerRe: Vc++ express edition Pin
Hamid_RT8-Sep-06 22:52
Hamid_RT8-Sep-06 22:52 
Questionhow to integrate vc++ code in c# Pin
Parshant Verma8-Sep-06 20:39
Parshant Verma8-Sep-06 20:39 
QuestionProrpetyPage OnInitDialog() is not hited? Pin
Divyang Mithaiwala8-Sep-06 20:39
Divyang Mithaiwala8-Sep-06 20:39 
QuestionTemplate Overloading of Non-Mrember Operator [modified] Pin
JKallen8-Sep-06 20:09
JKallen8-Sep-06 20:09 
AnswerRe: Template Overloading of Non-Mrember Operator Pin
Michael Dunn9-Sep-06 17:34
sitebuilderMichael Dunn9-Sep-06 17:34 
QuestionTree View / List View combination Pin
Richard Andrew x648-Sep-06 19:40
professionalRichard Andrew x648-Sep-06 19:40 
AnswerRe: Tree View / List View combination Pin
Waldermort8-Sep-06 20:20
Waldermort8-Sep-06 20:20 
GeneralRe: Tree View / List View combination Pin
Richard Andrew x649-Sep-06 6:00
professionalRichard Andrew x649-Sep-06 6:00 
AnswerRe: Tree View / List View combination Pin
Michael Dunn9-Sep-06 17:48
sitebuilderMichael Dunn9-Sep-06 17:48 
GeneralRe: Tree View / List View combination Pin
Richard Andrew x649-Sep-06 17:52
professionalRichard Andrew x649-Sep-06 17:52 
QuestionIs there another ways to get file date stamp? Pin
pcname8-Sep-06 14:53
pcname8-Sep-06 14:53 
AnswerRe: Is there another ways to get file date stamp? Pin
Richard Andrew x648-Sep-06 19:51
professionalRichard Andrew x648-Sep-06 19:51 
GeneralRe: Is there another ways to get file date stamp? Pin
pcname9-Sep-06 3:17
pcname9-Sep-06 3:17 
GeneralRe: Is there another ways to get file date stamp? Pin
Gary R. Wheeler9-Sep-06 5:25
Gary R. Wheeler9-Sep-06 5:25 
QuestionInstall runtime libraries??? Pin
CTaylor898-Sep-06 8:50
CTaylor898-Sep-06 8:50 
AnswerRe: Install runtime libraries??? Pin
Jun Du8-Sep-06 9:18
Jun Du8-Sep-06 9:18 

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.