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

Вниз

Адрес DNS   Найти похожие ветки 

 
VDevel   (2004-11-26 21:13) [0]

как можно узнать свой адрес DNS?


 
Fay ©   (2004-11-26 21:47) [1]

GetPerAdapterInfo


 
VDevel   (2004-11-26 22:08) [2]

Большое спасибо!
А какую библиотеку для нее подключать надо? :)


 
Fay ©   (2004-11-26 22:13) [3]

Iphlpapi.h


 
Fay ©   (2004-11-26 22:15) [4]

pas есть на Project Jedi


 
VDevel   (2004-11-26 22:37) [5]

Скачал, установил, спасибо!
Только вот еще вопрос: Что такое ifindex (первый параметр) и зачем последний?


 
Fay ©   (2004-11-27 04:03) [6]

Поставь себе Platform SDK или MSDN, что-ли 8)
Сори за форматирование - как скопировалось...

GetPerAdapterInfo
The GetPerAdapterInfo function retrieves information about the adapter corresponding to the specified interface.

DWORD GetPerAdapterInfo(
 ULONG IfIndex,                 // index of the interface
 PIP_PER_ADAPTER_INFO pPerAdapterInfo,  // buffer to receive info
 PULONG pOutBufLen              // size of buffer to receive info
);
Parameters
IfIndex
[in] Specifies the index of an interface. GetPerAdapterInfo will retrieve information for the adapter corresponding to this interface.
pPerAdapterInfo
[out] Pointer to an IP_PER_ADAPTER_INFO structure that receives information about the adapter.
pOutBufLen
[in] Pointer to a ULONG variable that specifies the size of the IP_PER_ADAPTER_INFO structure. If this size is insufficient to hold the information, GetPerAdapterInfo fills in this variable with the required size, and returns an error code of ERROR_BUFFER_OVERFLOW.
Return Values
If the function succeeds, the return value is ERROR_SUCCESS.

If the function fails, the return value is one of the following error codes.

Value Meaning
ERROR_BUFFER_OVERFLOW The buffer size indicated by the pOutBufLen parameter is too small to hold the adapter information. The pOutBufLen parameter points to the required size.
ERROR_INVALID_PARAMETER The pOutBufLen parameter is NULL, or the calling process does not have read/write access to the memory pointed to by pOutBufLen, or the calling process does not have write access to the memory pointed to by the pAdapterInfo parameter.
ERROR_NOT_SUPPORTED GetPerAdapterInfo is not supported by the operating system running on the local computer.
Other If the function fails, use FormatMessage to obtain the message string for the returned error.

Requirements
 Windows NT/2000/XP: Included in Windows 2000 and later.
 Windows 95/98/Me: Unsupported.
 Header: Declared in Iphlpapi.h.
 Library: Use Iphlpapi.lib.



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

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

Наверх





Память: 0.45 MB
Время: 0.025 c
1-1104563793
Dr. Genius
2005-01-01 10:16
2005.01.16
Программу - в системный трей


1-1104767468
Goldseeker
2005-01-03 18:51
2005.01.16
I/o error


1-1104314800
grigory
2004-12-29 13:06
2005.01.16
Crystal reports в DELPHI!


14-1103899690
olookin
2004-12-24 17:48
2005.01.16
Налоги с зарплаты спортсмена


9-1095652133
Fynjy1984
2004-09-20 07:48
2005.01.16
OpenGL - координаты





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