English 中文(简体)
来自用户模式的 NDIS OID 查询
原标题:NDIS OID query from user mode
  • 时间:2012-05-24 20:00:47
  •  标签:
  • ioctl
  • ndis

NDIS 5.1 驱动程序为 WinXPe 写入 NDIS 5.1 驱动程序。 除了普通的 NDIS 发送/接收功能外, 驱动程序还需要向用户进程提供某些离散的 IO 值, 可能通过一套自定义 OIDs 。 网上信息显示, OICTL_ NDISUIO_ OPEN_ DEVICE, 然后ICTOL_ NDISUIO_ OPEN_ DEVICE 是完美的, 但是这些功能似乎仅限于 Windows CE 而非 WinXPe 。 创建“ ” 成功功能, 但是 OICTL_ NDISUIO_ OPEN_ DEVICE 无法使用代码 ( 50) 。 “ 请求不被支持 ” 。 此外, 我不得不作弊作弊, 因为它无法使用常规的 SDK 。 WMI 似乎没有帮助, 因为 WMI 似乎只支持“ 标准” 参数, 而不是自定义参数 。

如有必要,我相信我可以在我的 NDIS 驱动器中执行 IoCreate Device 和 IoCreateSymbolicLink, 然后让用户程序使用自定义的 ICTOL 。 但我宁愿在可能情况下使用 OID 路径 。

WinXPe 用户程序能执行 NDIS OID 查询吗?

问题回答

与驾驶员SYS系统合并的MOF文件允许连接到WMI系统,从而访问OID数据。





相关问题
Why can t I in python call HDIO_GETGEO?

#!/usr/bin/env python # -*- coding: utf-8 -*- ########## THIS NOW WORKS! ########## UNSUITABLE_ENVIRONMENT_ERROR = "This program requires at least Python 2.6 and Linux" import sys import ...

Turn off the display on remote PC

I m fixing some bugs in the application for remote control (remote desktop-like) for Windows. And there is a feature that you can blank screen on remote machine - all the programms keep running ...

C# - Possible to use IOCTL

I m trying to code for a Point Of Sale system which allows for a "Cash Drawer" attachment. Code is provided in the manual for opening the cash drawer (in C++ using IOCTL). Since I am coding in C# ....

What s the best way to spy on IOCTLs?

I have a U9 Telit modem which, at first, appears as a disk drive on USB bus. Then, the native software after autorun and install, sends a couple of IOCTLs to tell the device to reappear as other ...

implementing ioctl() commands in FreeBSD

I am adding some code to an existing FreeBSD device driver and I am trying to pass a char* from user space to the driver. I ve implemented a custom ioctl() command using the _IOW macro like so: #...

Is there an OS X equivalent of FreeBSD s make_dev() function?

I m trying to port some code from FreeBSD to OS X. The code is fairly low-level and it creates a number of special device files using make_dev() and controls functionality using functions like ioctl()...

How do you get the terminal size in Go?

How do I get the terminal size in Go. In C it would look like this: struct ttysize ts; ioctl(0, TIOCGWINSZ, &ts); But how to i access TIOCGWINSZ in Go

热门标签