Вниз
Скачать: CL | DM;

Как узнать MAC-адрес   Найти похожие ветки 

← →
Chris ©   (2003-05-25 18:32) [0]

Как узнать MAC-адрес другой машины, зная ее IP-адрес?


← →
Verg ©   (2003-05-26 13:21) [1]

В Win2K это можно сделать функцией SendArp:

function SendARP(DestIP, SrcIP : TIpAddr;
pMacAddr,
PhyAddrLen :PULONG):DWORD; stdcall;

{Parameters
DestIP
[in] Destination IP address. The ARP request attempts to obtain the physical address that corresponds to this IP address.
SrcIP
[in] IP address of the sender. This parameter is optional. The caller may specify zero for the parameter.
pMacAddr
[out] Pointer to an array of ULONG variables. The first six bytes of this array receive the physical address that corresponds to the IP address specified by DestIP.
PhyAddrLen
[in, out] On input, specifies the maximum buffer size the user has set aside at pMacAddr to receive the MAC address, in bytes. On output, specifies the number of bytes written to pMacAddr.
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.
}

implementation

function SendARP; external "IPHLPAPI.DLL" name "SendARP";



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.012 c
1-100821
Zilog
2003-07-17 16:28
2003.07.31
КАК: нужно дату 17.07.2003 преобразовать в 2003/07/17


3-100637
ord3f8h
2003-07-07 19:18
2003.07.31
Как работать с DBGrid


7-101004
Zero Ice
2003-05-21 16:43
2003.07.31
I/o ports


1-100706
sasha_w
2003-07-18 13:54
2003.07.31
Подскажите как к TreeView добавить субменю, сами меню добавляю


6-100862
Chieftain
2003-05-26 18:10
2003.07.31
Пересылка файлов по INET




   Наверх