Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QM handling of C declarations
#8
How I imagine all this:

void run()
{
Calls NotifyIpInterfaceChange (WinAPI) and passes address of callback function InterfaceChangeCallback.
}

void NotifyIpInterfaceChange(...) //this func is in iphlpapi.dll
{
MIB_IPINTERFACE_ROW row; //creates the variable and fills some its members
Calls your callback function and passes row address to it.
}

void InterfaceChangeCallback( MIB_IPINTERFACE_ROW* row)
{
Calls interfaceChanged and passes row to it.
}

void interfaceChanged(MIB_IPINTERFACE_ROW* row)
{
Calls GetIpInterfaceEntry (WinAPI) and passes row.
}

void GetIpInterfaceEntry(MIB_IPINTERFACE_ROW* row) //this func is in iphlpapi.dll
{
Fills row members.
}


Messages In This Thread

Forum Jump:


Users browsing this thread: 7 Guest(s)