简体   繁体   English

C#的Internet连接共享api

[英]Internet Connection Sharing api for C#

I am totally new to C# and Windows application development. 我对C#和Windows应用程序开发完全陌生。 I wanted to enable Internet Connection Sharing using a Windows app. 我想使用Windows应用程序启用Internet连接共享。 But when I searched for the APIs I got that it is only available for C, C++. 但是当我搜索API时,我发现它仅适用于C,C ++。 I want to use those for my C# application as I have written most of my code in C#. 我想将它们用于我的C#应用​​程序,因为我已经用C#编写了大部分代码。

Please suggest any workaround if possible. 如果可能,请提出任何解决方法。

API Link: http://msdn.microsoft.com/en-us/library/windows/desktop/aa364733(v=vs.85).aspx API链接: http : //msdn.microsoft.com/zh-cn/library/windows/desktop/aa364733(v=vs.85).aspx

you need to find the registry key of ICS and writing to it directly with C#: 您需要找到ICS的注册表项,并使用C#直接对其进行写入:

search it 搜索一下

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM