Re: How to get process which send packet in w2k
From: Alexander Nickolov (agnickolov_at_mvps.org)
Date: 09/13/04
- Next message: Alexander Nickolov: "Re: WSARecv call blocking when using overlapped I/O"
- Previous message: TomPain: "Re: WSARecv call blocking when using overlapped I/O"
- In reply to: Marcin Zajączkowski: "Re: How to get process which send packet in w2k"
- Next in thread: Marcin Zajączkowski: "Re: How to get process which send packet in w2k"
- Reply: Marcin Zajączkowski: "Re: How to get process which send packet in w2k"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 13 Sep 2004 12:28:00 -0700
If you read my post again, you should note I warned you explicitly
that this code only works in Win2K. For WinXP use the technique
from netstatp, e.g. AllocateAndGetTcpExTableFromStack.
-- ===================================== Alexander Nickolov Microsoft MVP [VC], MCSD email: agnickolov@mvps.org MVP VC FAQ: http://www.mvps.org/vcfaq ===================================== "Marcin Zajączkowski" <mszpakNO@SPAM.wp.pl> wrote in message news:ci17nm$1m73$1@news2.ipartners.pl... > Dnia 2004-09-10 03:23, Użytkownik Alexander Nickolov napisał: >> The only source I know of is PortUser.cpp by Gary Nebbett. >> Check it out in this thread: >> >> http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&selm=vpkjdugmm8faj0a0mfdt7kcsrcelguc7f1%404ax.com&rnum=1 >> >> It only works in Win2K, not in NT4, nor XP, and definitely >> not in any Win9x OSes. > > Thanks for answer. > > I don't have VS installed currently, so I've tried to compile it with > MinGW. After few hours I changed this code to compile under it (with two > warnings): > portuser.cpp: In function `ULONG > FindHandle(NT::_SYSTEM_HANDLE_INFORMATION*, long unsigned int, void*)': > portuser.cpp:324: warning: cast to pointer from integer of different size > portuser.cpp: In function `void Scan(const Kmem&, > NT::_SYSTEM_HANDLE_INFORMATION*, unsigned char, _DEVICE_OBJECT*, > const CHAR*)': > portuser.cpp:378: warning: cast to pointer from integer of different size > > Unfortunately it crashes in line: > if (lowmem[pfn * 0x400 + 0x300] == pfn * 0x1000 + 0x67) break; > in: ULONG Kmem::AnyPde() const. > I tried in Windows XP, could it be caused by this? > It's also possible that some my changes caused it (I had problem with > namespace NT) or MinGW istn't ideal for drivers. > > I attached source code, maybe you could tell me what have I done wrong? > (I hope that server allow small attachment) > > Regards > Marcin >
- Next message: Alexander Nickolov: "Re: WSARecv call blocking when using overlapped I/O"
- Previous message: TomPain: "Re: WSARecv call blocking when using overlapped I/O"
- In reply to: Marcin Zajączkowski: "Re: How to get process which send packet in w2k"
- Next in thread: Marcin Zajączkowski: "Re: How to get process which send packet in w2k"
- Reply: Marcin Zajączkowski: "Re: How to get process which send packet in w2k"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|