MIB_UDPROW_OWNER_MODULE size / datatypes
- From: "Michael M." <nospam@xxxxxxxx>
- Date: Tue, 20 Feb 2007 16:48:58 -0000
I am having trouble using the GetExtendedUDPtable function when using the
verbose Owner_Module structure.
When I call the function the first entry in the Table seems correct
0.0.0.0:445, the rest of the data is garbage and contains invalid addresses
like 413.5.22.25.
I think the problem may be that my structure is the wrong size so the data
is overlapping, or I am not understanding how to define the structure.
Can some one compare the two and point out what is wrong , for instance I do
not truly understand TCPIP_OWNING_MODULE_SIZE how do I determin this at
runtime, and if as it says it is an array of strings who do I know how each
string is, do I split it at each null char (if it's an ascii sz)?
# Orignal / MSDN structure
typedef struct {
DWORD dwLocalAddr;
DWORD dwLocalPort;
DWORD dwOwningPid;
LARGE_INTEGER liCreateTimestamp;
PVOID pOwningModuleInfo [TCPIP_OWNING_MODULE_SIZE];
} MIB_UDPROW_OWNER_MODULE,
# My VB.NET structure
Public Structure MIB_UDPROW_OWNER_MODULE
Dim dwLocalAddr As Integer
Dim dwLocalPort As Integer
Dim dwOwningPid As Integer
Dim liCreateTimestamp As Int64 ' Windows time stamp (C++ Large integer)
Dim pOwningModuleInfo As Integer ' Pointer to owning module strings
End Structure
Sorry to be a pain.
Mike.
.
- Prev by Date: VMSize leaks with automatic proxy server address detection with WPAD script
- Next by Date: Re: Wireless in c++
- Previous by thread: Re: Transferring files when IP number lease changes
- Next by thread: Re: recv timeout
- Index(es):
Relevant Pages
|