Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "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
3-9056
Demon ltd
2002-02-06 14:21
2002.03.04
Показ данных из одной базы в другой


1-9234
Beer
2002-02-15 10:50
2002.03.04
Получить название директории...


3-9050
dima1979
2002-02-04 12:28
2002.03.04
Отчет в RTF формат


1-9173
Serd
2002-02-14 08:29
2002.03.04
Работа с DLL...


3-9077
dimich
2002-02-06 11:34
2002.03.04
InterBase Server





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
Английский Французский Немецкий Итальянский Португальский Русский Испанский