Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "Сети";
Текущий архив: 2003.07.31;
Скачать: [xml.tar.bz2];

Вниз

Как узнать 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 вся ветка

Форум: "Сети";
Текущий архив: 2003.07.31;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.44 MB
Время: 0.009 c
1-100682
Альф
2003-07-18 10:36
2003.07.31
Привет :) Маленький вопрос по FastReport 2.4


1-100764
Oleg__
2003-07-16 17:27
2003.07.31
Функция Pos


3-100574
stud
2003-07-08 14:28
2003.07.31
про lookup в гриде...


6-100855
dim-
2003-05-22 20:41
2003.07.31
Смена ip адреса


1-100681
uhhax
2003-07-18 04:51
2003.07.31
Почему прога так много ест памяти?





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский