1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How do I display a data structure in GUI

Discussion in 'MFC' started by turkim, Aug 29, 2010.

  1. turkim

    turkim New Member

    Aug 29, 2010
    Likes Received:
    Trophy Points:

    When calling GetExtendedTcpTable Win32 API Function, a buffer of type MIB_TCPROW_ONER_PID is filled with active TCP connections. The structure of the buffer is this:

    typedef struct _MIB_TCPROW_OWNER_PID {
    DWORD dwState;
    DWORD dwLocalAddr;
    DWORD dwLocalPort;
    DWORD dwRemoteAddr;
    DWORD dwRemotePort;
    DWORD dwOwningPid;

    A normal PC connected to the internet will have an average of 20-30 active TCP connections.

    I want to display above information in a Windows GUI application (using MFC), each row should have all the information of the active session (state, local IP, local port, remote IP, remote port & process ID ), what is the windows control to be used to display this information?

    Sorry for the primitive question, as I'm new to Windows GUI programming, and I need help so I can start my research in the right direction.

    Any guide would be appreciated.


Share This Page