NmGetAdapterCount()返回计数0 [英] NmGetAdapterCount() return count 0

查看:86
本文介绍了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


解决方案

您好Joe,


我们还没有使用Java界面进行任何测试。 是否有一些工具用于Java来调用我们的库?


你用'GetAdaptersAddresses'指的是'NmGetAdapter',它的结构还是其他一些库中的其他调用? 这可能是您的用户帐户的权限问题(您是否在Netmon本身看到适配器?您需要成为Netmon
用户安全组的一部分),或者Java如何代表我们的API ...?


如果您提供更多细节,也许我们可以解决一些问题,但这对我们来说是新的。


谢谢,


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

解决方案

Hi Joe,

We haven't done any testing with a Java interface.  Is there some tool you're using for Java to call our library?

By 'GetAdaptersAddresses' are you referring to 'NmGetAdapter' and it's structure or some other call in another library?  It could be a permissions issue with your user account (do you see the adapters in Netmon itself? You need to be part of the Netmon Users security group), or with how Java represents you to our API...?

If you provide a few more details, maybe we can figure something out, but this is new ground for us.

Thanks,


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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆