add GetIfEntry pointer
This commit is contained in:
parent
1bdc07e971
commit
258ed193ca
|
@ -211,6 +211,8 @@ typedef DWORD (CALLBACK *LPGETIPFORWARDTABLE)(PMIB_IPFORWARDTABLE, PULONG, BOOL)
|
||||||
|
|
||||||
typedef DWORD (CALLBACK *LPGETIFTABLE)(PMIB_IFTABLE, PULONG, BOOL);
|
typedef DWORD (CALLBACK *LPGETIFTABLE)(PMIB_IFTABLE, PULONG, BOOL);
|
||||||
|
|
||||||
|
typedef DWORD (CALLBACK *LPGETIFENTRY)(PMIB_IFROW);
|
||||||
|
|
||||||
typedef DWORD (CALLBACK *LPGETTCPTABLE)(PMIB_TCPTABLE, PDWORD, BOOL);
|
typedef DWORD (CALLBACK *LPGETTCPTABLE)(PMIB_TCPTABLE, PDWORD, BOOL);
|
||||||
|
|
||||||
typedef DWORD (CALLBACK *LPGETUDPTABLE)(PMIB_UDPTABLE, PDWORD, BOOL);
|
typedef DWORD (CALLBACK *LPGETUDPTABLE)(PMIB_UDPTABLE, PDWORD, BOOL);
|
||||||
|
@ -293,6 +295,7 @@ struct sigar_t {
|
||||||
HINSTANCE sta_handle;
|
HINSTANCE sta_handle;
|
||||||
LPCONVERTSTRINGSID convert_string_sid;
|
LPCONVERTSTRINGSID convert_string_sid;
|
||||||
LPGETIFTABLE get_if_table;
|
LPGETIFTABLE get_if_table;
|
||||||
|
LPGETIFENTRY get_if_entry;
|
||||||
LPGETIPFORWARDTABLE get_ipforward_table;
|
LPGETIPFORWARDTABLE get_ipforward_table;
|
||||||
LPGETTCPTABLE get_tcp_table;
|
LPGETTCPTABLE get_tcp_table;
|
||||||
LPGETTCPEXTABLE get_tcpx_table;
|
LPGETTCPEXTABLE get_tcpx_table;
|
||||||
|
|
|
@ -232,6 +232,8 @@ int sigar_os_open(sigar_t **sigar)
|
||||||
get_sysinfo(*sigar);
|
get_sysinfo(*sigar);
|
||||||
|
|
||||||
if ((h = LoadLibrary("iphlpapi.dll"))) {
|
if ((h = LoadLibrary("iphlpapi.dll"))) {
|
||||||
|
(*sigar)->get_if_entry =
|
||||||
|
(LPGETIFENTRY)GetProcAddress(h, "GetIfEntry");
|
||||||
(*sigar)->get_if_table =
|
(*sigar)->get_if_table =
|
||||||
(LPGETIFTABLE)GetProcAddress(h, "GetIfTable");
|
(LPGETIFTABLE)GetProcAddress(h, "GetIfTable");
|
||||||
(*sigar)->get_ipforward_table =
|
(*sigar)->get_ipforward_table =
|
||||||
|
|
Loading…
Reference in New Issue