For Programmers: Free Programming Magazines  


Home > Archive > Clarion > March 2004 > Anyone, how to declare this VB structures in Clarion?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Anyone, how to declare this VB structures in Clarion?
Rick

2004-03-28, 9:53 pm

typedef struct _MIB_TCPTABLE {
DWORD dwNumEntries; // number of entries in the table
MIB_TCPROW table[ANY_SIZE]; // array of TCP connections
} MIB_TCPTABLE, *PMIB_TCPTABLE;

There is one more structure - MIB_TCPROW:

typedef struct _MIB_TCPROW {
DWORD dwState; // state of the connection
DWORD dwLocalAddr; // address on local computer
DWORD dwLocalPort; // port number on local computer
DWORD dwRemoteAddr; // address on remote computer
DWORD dwRemotePort; // port number on remote computer
} MIB_TCPROW, *PMIB_TCPROW;

URL: http://www.vbip.com/iphelper/get_tcp_table.asp
Maybe someone has a tiny example of how to use GetTcpTable api??? :-)

TIA

-Rick
Boatman@nospam.com

2004-03-30, 9:30 pm

Rick,

Download the API Guide from
http://www.mentalis.org/agnet/apiguide.shtml
Been using it for 6 months. 99% of the examples are bug free. Examples
are in VB, so you will have to translate in parts. Sometimes they do
not include all of the constants. You can add more by inspecting the
Win32API.txt file.

DWord is a LONG in 32 bit systems

TIP: Watch out for some of MSoft's structs. They sometimes reference
other ones!


B

On 28 Mar 2004 13:19:24 -0800, vahtevi@yahoo.com (Rick) wrote:

>typedef struct _MIB_TCPTABLE {
> DWORD dwNumEntries; // number of entries in the table
> MIB_TCPROW table[ANY_SIZE]; // array of TCP connections
>} MIB_TCPTABLE, *PMIB_TCPTABLE;
>
>There is one more structure - MIB_TCPROW:
>
>typedef struct _MIB_TCPROW {
> DWORD dwState; // state of the connection
> DWORD dwLocalAddr; // address on local computer
> DWORD dwLocalPort; // port number on local computer
> DWORD dwRemoteAddr; // address on remote computer
> DWORD dwRemotePort; // port number on remote computer
>} MIB_TCPROW, *PMIB_TCPROW;
>
>URL: http://www.vbip.com/iphelper/get_tcp_table.asp
>Maybe someone has a tiny example of how to use GetTcpTable api??? :-)
>
>TIA
>
>-Rick


Boatman@nospam.com

2004-03-30, 9:30 pm

Rick,

Download the API Guide from
http://www.mentalis.org/agnet/apiguide.shtml
Been using it for 6 months. 99% of the examples are bug free. Examples
are in VB, so you will have to translate in parts. Sometimes examples
do not include all of the constants. You can add more by inspecting
the Win32API.txt file.

DWord is a LONG in 32 bit systems

TIP: Watch out for some of MSoft's structs. They sometimes reference
other ones!

Mike


On 28 Mar 2004 13:19:24 -0800, vahtevi@yahoo.com (Rick) wrote:

>typedef struct _MIB_TCPTABLE {
> DWORD dwNumEntries; // number of entries in the table
> MIB_TCPROW table[ANY_SIZE]; // array of TCP connections
>} MIB_TCPTABLE, *PMIB_TCPTABLE;
>
>There is one more structure - MIB_TCPROW:
>
>typedef struct _MIB_TCPROW {
> DWORD dwState; // state of the connection
> DWORD dwLocalAddr; // address on local computer
> DWORD dwLocalPort; // port number on local computer
> DWORD dwRemoteAddr; // address on remote computer
> DWORD dwRemotePort; // port number on remote computer
>} MIB_TCPROW, *PMIB_TCPROW;
>
>URL: http://www.vbip.com/iphelper/get_tcp_table.asp
>Maybe someone has a tiny example of how to use GetTcpTable api??? :-)
>
>TIA
>
>-Rick


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com