本文介绍了NmGetAdapterCount()返回计数0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!


我尝试使用Java中的网络监视器API。


我有一个完美的C ++类我的非Java环境。


但是在同一系统上,如果在Java程序中使用该类,则函数NmGetAdapterCount()总是成功返回,但表示系统中没有适配器。 (GetAdaptersAddresses()为已安装的
网络适配器返回正确的数字和描述。


有没有办法获得更多信息为什么NmGetAdapterCount()传递计数为0(它设置变量指向0)? DebugView不提供任何信息?是否有调试级别?


我的开发环境是:带有Network Monitor 3.4,Visual Studio 2008,Java 1.6(最新更新)的Windows XP(带有最新更新)。


感谢您的帮助!


Joe


解决方案

Hi!

I try to use the Network Monitor API from Java.

I have a C++ class which runs perfect in my non-Java environment.

But on the same system if the class is used in a Java program the function NmGetAdapterCount() always returns sucessfully but says that there is no adapter in the system. (GetAdaptersAddresses() returns the right number and description for the installed network adapters).

Is there any way to get more info why NmGetAdapterCount() delivery count 0 (it sets the variable points to to 0)? DebugView does not give any info? Is there a debug level?

My development environment is: Windows XP (with latest updates) with Network Monitor 3.4, Visual Studio 2008, Java 1.6 (latest updates).

Thanks for help!

Joe

解决方案


这篇关于NmGetAdapterCount()返回计数0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-24 14:49
查看更多