Windows網絡接口API函數

Windows提供了一套非常輕量級的網絡函數,方便進行網絡應用開發,整理出來供參考使用。

The following functions are used in Windows networking:

MultinetGetConnectionPerformance
WNetAddConnection2
WNetAddConnection3
WNetCancelConnection
WNetCancelConnection2
WNetCloseEnum
WNetConnectionDialog
WNetConnectionDialog1
WNetDisconnectDialog
WNetDisconnectDialog1
WNetEnumResource
WNetGetConnection
WNetGetLastError
WNetGetNetworkInformation
WNetGetProviderName
WNetGetResourceInformation
WNetGetResourceParent
WNetGetUniversalName
WNetGetUser
WNetOpenEnum
WNetRestoreConnectionW
WNetUseConnection

Obsolete Functions

The following function is provided only for compatibility with 16-bit versions of Windows:

WNetAddConnection

?

windows提供了大量的網絡輔助函數,如下也為探討內容:

?

IP Helper Functions

?

The following functions retrieve and modify configuration settings for the TCP/IP transport on the local computer. The following categorical listing can help determine which collection of functions is best suited for a given task:

Adapter Management

  • GetAdapterIndex
  • GetAdaptersAddresses
  • GetAdaptersInfo
  • GetPerAdapterInfo
  • GetUniDirectionalAdapterInfo

Address Resolution Protocol (ARP) Management

  • CreateIpNetEntry
  • CreateProxyArpEntry
  • DeleteIpNetEntry
  • DeleteProxyArpEntry
  • FlushIpNetTable
  • GetIpNetTable
  • SendARP
  • SetIpNetEntry

Interface Conversion

  • ConvertInterfaceAliasToLuid
  • ConvertInterfaceGuidToLuid
  • ConvertInterfaceIndexToLuid
  • ConvertInterfaceLuidToAlias
  • ConvertInterfaceLuidToGuid
  • ConvertInterfaceLuidToIndex
  • ConvertInterfaceLuidToNameA
  • ConvertInterfaceLuidToNameW
  • ConvertInterfaceNameToLuidA
  • ConvertInterfaceNameToLuidW
  • if_indextoname
  • if_nametoindex

Interface Management

  • GetFriendlyIfIndex
  • GetIfEntry
  • GetIfEntry2
  • GetIfStackTable
  • GetIfTable
  • GetIfTable2
  • GetIfTable2Ex
  • GetInterfaceInfo
  • GetInvertedIfStackTable
  • GetIpInterfaceEntry
  • GetIpInterfaceTable
  • GetNumberOfInterfaces
  • InitializeIpInterfaceEntry
  • SetIfEntry
  • SetIpInterfaceEntry

Internet Protocol (IP) and Internet Control Message Protocol (ICMP)

  • GetIcmpStatistics
  • GetIpStatistics
  • Icmp6CreateFile
  • Icmp6ParseReplies
  • Icmp6SendEcho2
  • IcmpCloseHandle
  • IcmpCreateFile
  • IcmpParseReplies
  • IcmpSendEcho
  • IcmpSendEcho2
  • IcmpSendEcho2Ex
  • SetIpTTL

IP Address Management

  • AddIPAddress
  • CreateAnycastIpAddressEntry
  • CreateUnicastIpAddressEntry
  • DeleteIPAddress
  • DeleteAnycastIpAddressEntry
  • DeleteUnicastIpAddressEntry
  • GetAnycastIpAddressEntry
  • GetAnycastIpAddressTable
  • GetIpAddrTable
  • GetMulticastIpAddressEntry
  • GetMulticastIpAddressTable
  • GetUnicastIpAddressEntry
  • GetUnicastIpAddressTable
  • InitializeUnicastIpAddressEntry
  • IpReleaseAddress
  • IpRenewAddress
  • NotifyStableUnicastIpAddressTable
  • SetUnicastIpAddressEntry

IP Address String Conversion

  • RtlIpv4AddressToString
  • RtlIpv4AddressToStringEx
  • RtlIpv4StringToAddress
  • RtlIpv4StringToAddressEx
  • RtlIpv6AddressToString
  • RtlIpv6AddressToStringEx
  • RtlIpv6StringToAddress
  • RtlIpv6StringToAddressEx

IP Neighbor Address Management

  • CreateIpNetEntry2
  • DeleteIpNetEntry2
  • FlushIpNetTable2
  • GetIpNetEntry2
  • GetIpNetTable2
  • ResolveIpNetEntry2
  • ResolveNeighbor
  • SetIpNetEntry2

IP Path Management

  • FlushIpPathTable
  • GetIpPathEntry
  • GetIpPathTable

IP Route Management

  • CreateIpForwardEntry
  • CreateIpForwardEntry2
  • DeleteIpForwardEntry
  • DeleteIpForwardEntry2
  • EnableRouter
  • GetBestInterface
  • GetBestInterfaceEx
  • GetBestRoute
  • GetBestRoute2
  • GetIpForwardEntry2
  • GetIpForwardTable
  • GetIpForwardTable2
  • GetRTTAndHopCount
  • InitializeIpForwardEntry
  • SetIpForwardEntry
  • SetIpForwardEntry2
  • SetIpStatistics
  • SetIpStatisticsEx
  • UnenableRouter

IP Table Memory Management

  • FreeMibTable

IP Utility

  • ConvertIpv4MaskToLength
  • ConvertLengthToIpv4Mask
  • CreateSortedAddressPairs
  • ParseNetworkString

Network Configuration

  • GetNetworkParams

Notification

  • CancelMibChangeNotify2
  • NotifyAddrChange
  • NotifyIpInterfaceChange
  • NotifyRouteChange
  • NotifyRouteChange2
  • NotifyUnicastIpAddressChange

Persistent Port Reservarion

  • CreatePersistentTcpPortReservation
  • CreatePersistentUdpPortReservation
  • DeletePersistentTcpPortReservation
  • DeletePersistentUdpPortReservation
  • LookupPersistentTcpPortReservation
  • LookupPersistentUdpPortReservation

Security Health

  • CancelSecurityHealthChangeNotify
  • NotifySecurityHealthChange

These functions are defined only on Windows Server?2003.

Note??These functions are not available Windows?Vista and Windows Server?2008.

Teredo IPv6 Client Management

  • GetTeredoPort
  • NotifyTeredoPortChange
  • NotifyStableUnicastIpAddressTable

Transmission Control Protocol (TCP) and User Datagram Protocol (UDP)

  • GetExtendedTcpTable
  • GetExtendedUdpTable
  • GetOwnerModuleFromTcp6Entry
  • GetOwnerModuleFromTcpEntry
  • GetOwnerModuleFromUdp6Entry
  • GetOwnerModuleFromUdpEntry
  • GetPerTcp6ConnectionEStats
  • GetPerTcpConnectionEStats
  • GetTcpStatistics
  • GetTcpStatisticsEx
  • GetTcp6Table
  • GetTcp6Table2
  • GetTcpTable
  • GetTcpTable2
  • SetPerTcp6ConnectionEStats
  • SetPerTcpConnectionEStats
  • SetTcpEntry
  • GetUdp6Table
  • GetUdpStatistics
  • GetUdpStatisticsEx
  • GetUdpTable

Deprecated APIs

Note??These functions are deprecated and not supported by Microsoft.

  • AllocateAndGetTcpExTableFromStack
  • AllocateAndGetUdpExTableFromStack

?

?

轉載于:https://www.cnblogs.com/MakeView660/p/8663025.html

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。
如若轉載,請注明出處:
http://www.pswp.cn/news/250666.shtml
繁體地址,請注明出處:http://hk.pswp.cn/news/250666.shtml
英文地址,請注明出處:http://en.pswp.cn/news/250666.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

PHP 實現縮略圖

PHP 實現縮略圖 <?php header("Content-type: image/png");function resize_image($filename, $tmpname, $xmax, $ymax) { $ext explode(".", $filename); $ext $ext[count($ext)-1]; //判斷文件類型&#xff0c;獲取不同的圖像if($ext "jpg…

微信小程序 - 五星評分(含半分)

轉載自&#xff1a;http://blog.csdn.net/column/details/13721.html演示&#xff1a;下載&#xff1a;小程序-星級評論.zip轉載于:https://www.cnblogs.com/cisum/p/9651110.html

node --- 監聽路由,讀取json文件,向MongoDB中寫入數據

開始 假設讀取的文件為newGoods.json假設數據的在MongoDB數據庫中,集合的規則是Goods下面將用到 koa-router:監聽路由,并調用指定的函數mongoose:node中操作MongoDB的接口庫fs:node的原生模塊,用于讀取/寫入文件 const Router require(koa-router); let router new Router…

windows cmd編輯文本

echo創建一個空的txt文件:echo.>1.txt這里>表示輸出到...echo.表示輸出一個空行(即換行)>命令可以擴展為>>表示的意思為附加到...例子:1.txt的內容為123456附加789到123456的后面:echo 789>>1.txt則1.txt的內容變為:123456789附加789到下一行是這樣的:ech…

PHP 實現圖片驗證碼

PHP 實現圖片驗證碼 步驟 產生隨機字符串創建一張簡單的圖片&#xff0c;設置背景色&#xff0c;文本色再加一些干擾線&#xff0c;干擾素輸出圖像銷毀圖像資源 <?php//PHP生成圖片驗證碼class VerifyImage{private $verifyCode;private $image;//生成隨機字串private fu…

vue --- 子組件監聽點擊事件,接收父組件參數.實現對應跳轉

開始 vue中子組件這一塊,有點麻煩。不是說它很難,而是它的傳送數據方式,以及和各種前端后端路由混在一起時,如果不清晰很容易就迷茫下面假設:路由配置文件為:router.js父組件為 parent.vue , 路徑為 ./parent.vue子組件1為 child1.vue, 路徑為 ./child1.vue子組件2為 child2.v…

分布式版本控制系統Git的安裝與使用(作業2)

&#xff08;本次作業要求來自&#xff1a;https://edu.cnblogs.com/campus/gzcc/GZCC-16SE1/homework/2103&#xff09; 分布式版本控制系統Git的安裝與使用 一、安裝Git bash軟件和安裝notepad&#xff08;安裝時修改自己安裝的路徑&#xff0c;git bash最后一個步驟需要都勾…

匯編 --- 初體驗

假設內存10000H中的值為23,10001H中的值為11,10002H中的值為22,10003H的值為11 在debug中執行以下代碼 mov ax,1000H mov ds,ax mov ax,[0] mov bx,[2] mov cx,[1] add bx,[1] add cx,[2]分析:8086CPU中由于段地址寄存器,無法直接賦值,因此需要先將值賦給通用寄存器然后再給ds…

PHP數組的排序函數

PHP數組的排序函數 介紹&#xff1a; sort() - 以升序對數組排序rsort() - 以降序對數組排序asort() - 根據值&#xff0c;以升序對關聯數組進行排序ksort() - 根據鍵&#xff0c;以升序對關聯數組進行排序arsort() - 根據值&#xff0c;以降序對關聯數組進行排序krsort() - …

763 Hex Conversion

原題網址&#xff1a;http://www.lintcode.com/zh-cn/problem/hex-conversion/ Given a decimal number n and an integer k, Convert decimal number n to base-k. 注意事項 1.0<n<2^31-1, 2<k<162.Each letter over 9 is indicated in uppercase 您在真實的面試中…

PHP Class中public,private,protected,static的區別

PHP Class中public,private,protected,static的區別 public&#xff1a;權限是最大的&#xff0c;可以內部調用&#xff0c;實例調用&#xff0c;可以被繼承。protected&#xff1a;受保護類型&#xff0c;用于本類和繼承類調用&#xff0c;實例化調用報錯。private&#xff1…

匯編 --- EXE文件 的程序的加載過程

1.asm 使用編譯工具寫了一個求2的3次方的程序 assume cs:abcabc segmentmov ax,2add ax,axadd ax,axmov ax, 4c00Hint 21H abc endsend編譯&連接 得到可執行文件1.exe 使用debug調試1.exe 進入調試模式 debug 1.exe查看數據段地址和代碼段地址 -r 描述: 可以看到此時…

淺談Floyd的三種用法 By cellur925

Floyd大家可能第一時間想到的是他求多源最短路的n算法。其實它還有另外兩種算法的嘛qwq。寫一發總結好了qwq。 一、多源最短路 放段代碼跑&#xff0c;注意枚舉順序&#xff0c;用鄰接矩陣存圖。本質是一種動規。 復雜度O(n)。 1 for(int k1;k<n;k) 2 for(int i1;i<n…

js獲取viewbag

后臺代碼&#xff1a; List<WMSRptJHJY> wpjh WMSRptJHJYManage.GetModelList("");   ViewBag.WPJH Newtonsoft.Json.JsonConvert.SerializeObject(wpjh); 前臺代碼&#xff1a; var aa Html.Raw(ViewBag.WPJH);   var PWJH eval("(" aa &…

匯編 --- 棧結構的妙用

在js中雙重循環,代碼如下: for(let i 0; i < l1;i){for(let j0; j< l2;j){// todo...} }以上代碼在匯編中是如何實現的呢. 匯編中用cx和loop來代表一次循環 mov cx, 4 s: mov ax,1loop s但是如果使用如下方法實現雙重循環將會出錯 assume cs:codesg, ds:datasgdatasg …

PHP 安全編程建議

PHP 安全編程建議 簡介 要提供互聯網服務&#xff0c;當你在開發代碼的時候必須時刻保持安全意識。可能大部分 PHP 腳本都對安全問題都不在意&#xff0c;這很大程度上是因為有大量的無經驗程序員在使用這門語言。但是&#xff0c;沒有理由讓你因為對你的代碼的不確定性而導致不…

day2-列表、元組、字典、字符串

1.列表&#xff08;list&#xff09; names[悟空,艾瑪,克林,龜仙人,天津飯,餃子,烏龜] print(names)---》列表&#xff0c;然后打印。 names[悟空,艾瑪,克林,龜仙人,天津飯,餃子,烏龜]# list section section1names[0] #下標從0開始 #print(section1) #結果為悟空seciton2names…

開漏輸出、推挽輸出的區別

推挽輸出:可以輸出高,低電平,連接數字器件。 輸出 0 時&#xff0c;N-MOS 導通&#xff0c;P-MOS 高阻&#xff0c;輸出0。 輸出 1 時&#xff0c;N-MOS 高阻&#xff0c;P-MOS 導通&#xff0c;輸出1&#xff08;不需要外部上拉電路&#xff09;。 開漏輸出:輸出端相當于三極管…

羅馬數字

古羅馬帝國開創了輝煌的人類文明&#xff0c;但他們的數字表示法的確有些繁瑣&#xff0c;尤其在表示大數的時候&#xff0c;現在看起來簡直不能忍受&#xff0c;所以在現代很少使用了。之所以這樣&#xff0c;不是因為發明表示法的人的智力的問題&#xff0c;而是因為一個宗教…

匯編 --- 從磁盤(扇區2到18)上讀取數據到內存中

下面代碼讀取柱面:0,磁頭:0,扇區從2到18的數據到內存 0x8200~0xa3ff處 需要明白以下幾點: 給定柱面,磁頭,一個扇形區域是512字節,對應的物理可以理解為512個燈泡組(一個燈泡組有8個小燈泡)確定讀取到內存中的位置 為什么是0x8200:因為0x8000~0x81ff這512個字節要留給啟動區.為…