Jump to content

Houl777

Members
  • Posts

    5
  • Joined

  • Last visited

Houl777's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. After modifying a few examples, I've gotten this code: $aCall = DllCall("iphlpapi.dll", "dword", "GetIpNetTable", "ptr*", 0, "dword*", 0, "int", 1) $iSize = $aCall[2] $MIB_IPNETROW = 'dword;dword;byte[' & $iSize & '];dword;dword' $pIpNetTable = DllStructCreate("dword;" & $MIB_IPNETROW) $aCall = DllCall("iphlpapi.dll", "dword", "GetIpNetTable", "ptr", DllStructGetPtr($pIpNetTable), "dword*", $iSize, "int", 1) ConsoleWrite ((DllStructGetData($pIpNetTable,1,1)-2)&@CRLF) Now it shows the correct number of items in the ARP table How am i can get it from this structure ?
  2. I've correct code now it returns error 122 ('All Work'), and 0 entires. $MIB_IPNETROW = DllStructCreate('dword;dword;byte;dword;dword') $pIpNetTable = DllStructCreate('dword;ptr') DllStructSetData($pIpNetTable, 2, DllStructGetPtr($MIB_IPNETROW)) $dwSize = DllStructCreate("dword") $RESULT = DllCall("iphlpapi.dll", "int", "GetIpNetTable", "ptr", DllStructGetPtr($pIpNetTable), "ptr", DllStructGetPtr($dwSize), "int", 1) $numARPentries = DllStructGetData($pIpNetTable, 1) ; number of entries msgbox(64, "", $RESULT[0] & '. ' & _WinAPI_GetLastErrorMessage()) Why it returns 0 entires? And how am i can get ARP Table from $pIpNetTable?
  3. Good day I want to get ARP Table from iphlpapi.dll (function GetIpNetTable). This is my first Dll call for all time so i need help. According to MSDN DWORD GetIpNetTable( _Out_ PMIB_IPNETTABLE pIpNetTable, _Inout_ PULONG pdwSize, _In_ BOOL bOrder ); I wrote this construction: DllCall("iphlpapi.dll", "int", "GetIpNetTable", _ type1, param1,_ type2, param2,_ "bool", "True") Which type,parameters or structures i need to add? Maybe someone already have working dll call?
×
×
  • Create New...