Вниз
Скачать: 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.016 c
1-100822
Alexsus
2003-07-17 16:47
2003.07.31
Подскажите пожалуйста как можно уставить тип курсора для формы


11-100652
Arhangel
2002-11-30 15:02
2003.07.31
Не


3-100539
AlexBut
2003-07-11 07:40
2003.07.31
ComboBox в DBGridEh


8-100835
XmPL
2003-04-09 13:44
2003.07.31
Как перевести 32-, 24-, 16/15-битное изображение


14-100882
Basja
2003-07-16 09:00
2003.07.31
про свичи




   Наверх