Форум: "WinAPI";
Текущий архив: 2002.03.04;
Скачать: [xml.tar.bz2];
ВнизИспользование функции , реаизованной в Dllбиблиотеке Найти похожие ветки
← →
Vovchik (2002-01-06 00:50) [2]Вот тебе описание ф-ции из MS SDK:
DWORD SendARP(
IPAddr DestIP, // destination IP address
IPAddr SrcIP, // IP address of sender
PULONG pMacAddr, // returned physical address
PULONG PhyAddrLen // length of returned physical addr.
);
Parameters
DestIP
Specifies the destination IP address. The ARP request attempts to obtain the physical address corresponding to this IP address.
SrcIP
Specifies the IP address of the sender. This parameter is optional. The caller may specify zero for the parameter.
pMacAddr
Pointer to a ULONG variable. On successful return, this variable contains the physical address corresponding to the IP address specified by the DestIP parameter.
PhyAddrLen
Pointer to a ULONG variable. On successful return, this variable contains the length of the physical address pointed to by the pMacAddr parameter.
Return Values
If the function succeeds, the return value is NO_ERROR.
If the function fails, use FormatMessage to obtain the message string for the returned error.
Вообще, полезно SDK читать.
Использование в Дельфи:
unit unit1;
interface
uses ...
TForm1=class()
end;
function SendARP(DestIP:UINT; SrcIP:UINT; pMacAddr:^UINT; PhyAddrLen:^UINT);stdcall;external "iphlpapi.dll";
implementation
//Здесь можешь юзать SendARP
end.
Страницы: 1 вся ветка
Форум: "WinAPI";
Текущий архив: 2002.03.04;
Скачать: [xml.tar.bz2];
Память: 0.44 MB
Время: 0.006 c