How do I display a data structure in GUI

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

  1. turkim

    turkim New Member

    Joined:
    Aug 29, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Hi,

    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;
    } MIB_TCPROW_OWNER_PID, *PMIB_TCPROW_OWNER_PID;

    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.

    Regards.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice