GetAllNetworkInterfaces() を呼び出す場合:
INetworkInterface[] rgni = WirelessZeroConfigNetworkInterface.GetAllNetworkInterfaces();
リンク ローカル アドレス (169.254....) を持つ RNDISFN1 という 1 つのアダプターだけが返されます。
すべてのアダプターがアレイに取り込まれないという問題が発生している可能性があります。デバッガーの下で、関数を起動すると、次のように表示されます。
A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
A first chance exception of type 'System.UnauthorizedAccessException' occurred in mscorlib.dll
A first chance exception of type 'System.ComponentModel.Win32Exception' occurred in CSharpSample.exe
A first chance exception of type 'System.MissingMethodException' occurred in OpenNETCF.Net.dll
A first chance exception of type 'OpenNETCF.Net.NetworkInformation.NetworkInformationException' occurred in OpenNETCF.Net.dll
明確にするために、これの最終的な目標は、ワイヤレス プロファイルのリストを取得し、それらを切り替えることができるようにすることです。
今のところ、GetAllNetworkInterfaces() がすべてのアダプターを返さないインスタンスを見た人はいますか? Windows Mobile 6 でバージョン OpenNetCF SDF v2.3 を使用しています。