### 微软亚洲技术中心的高手们,请解决:如何在VB中调用VC++写的VXD? ### -...
来源:百度文库 编辑:神马文学网 时间:2024/05/02 02:42:41
这样的,现在有一个读取硬盘序列号的VXD,具体怎样调用呢?
我现在知道了使用DeviceIOControl API,其声明为:
Declare Function DeviceIoControl Lib "kernel32 " Alias "DeviceIoControl " (ByVal hDevice As Long, ByVal dwIoControlCode As Long, lpInBuffer As Any, ByVal nInBufferSize As Long, lpOutBuffer As Any, ByVal nOutBufferSize As Long, lpBytesReturned As Long, lpOverlapped As OVERLAPPED) As Long
其中的hDevice怎样获取?
谢谢。
Input and Output Control in Applications
You use the device IOCTL interface in an application to carry out "low-level " operations that are not supported by the Win32 API and that require direct communication with a VxD. Windows 95/98/Me implements the interface through the DeviceIoControl function, which sends commands and accompanying data directly to the given VxD. To use the interface, you open the VxD by using the CreateFile function, send commands to the VxD by using DeviceIoControl, and finally close the VxD by using the CloseHandle function.
For more information, see the following topics:
Opening the VxD
Sending Commands
Closing a VxD
具体的内容可以参考
-微软亚洲技术中心 VB技术支持
本贴子仅供CSDN的用户作为参考信息使用。其内容不具备任何法律保障。您需要考虑到并承担使用此信息可能带来的风险。具体事项可参见使用条款 (http://www.csdn.net/microsoft/terms.shtm)。
我现在知道了使用DeviceIOControl API,其声明为:
Declare Function DeviceIoControl Lib "kernel32 " Alias "DeviceIoControl " (ByVal hDevice As Long, ByVal dwIoControlCode As Long, lpInBuffer As Any, ByVal nInBufferSize As Long, lpOutBuffer As Any, ByVal nOutBufferSize As Long, lpBytesReturned As Long, lpOverlapped As OVERLAPPED) As Long
其中的hDevice怎样获取?
谢谢。
- 对我有用[0]
- 丢个板砖[0]
- 引用
- 举报
- 管理
- TOP
- acptvb
- (微软全球技术中心 VB技术支持)
- 等 级:
Input and Output Control in Applications
You use the device IOCTL interface in an application to carry out "low-level " operations that are not supported by the Win32 API and that require direct communication with a VxD. Windows 95/98/Me implements the interface through the DeviceIoControl function, which sends commands and accompanying data directly to the given VxD. To use the interface, you open the VxD by using the CreateFile function, send commands to the VxD by using DeviceIoControl, and finally close the VxD by using the CloseHandle function.
For more information, see the following topics:
Opening the VxD
Sending Commands
Closing a VxD
具体的内容可以参考
-微软亚洲技术中心 VB技术支持
本贴子仅供CSDN的用户作为参考信息使用。其内容不具备任何法律保障。您需要考虑到并承担使用此信息可能带来的风险。具体事项可参见使用条款 (http://www.csdn.net/microsoft/terms.shtm)。
### 微软亚洲技术中心的高手们,请解决:如何在VB中调用VC++写的VXD? ### -...
在VB应用程序中调用VC环境下开发的DLL
VB中OLE调用的优化方法
在VC中调用 WebService
在VC中调用 WebService
用BCB写软件的界面,调用VC的dll
用BCB写软件的界面,调用VC的dll
在VB应用程序中调用Excel2000 ...
vc中调用Com组件的方法详解
vc中调用Com组件的方法详解
vc中如何调用webservice? VC/MFC / 进程/线程/DLL
如何在VB中判断Windows9x的运行模式
如何在vc中实现语音信息的采集
在VC中调用 WebService网易学院教程
微软亚洲研究院的30项创新技术详解(1)
微软亚洲研究院的30项创新技术详解(2)
微软亚洲研究院的30项创新技术详解(3)
微软亚洲研究院的30项创新技术详解(3)
VB如何调用Crystal Reports
解决在XP中显示微软雅黑字体不圆滑的问题
解决在XP中显示微软雅黑字体不圆滑的问题-HTMer
VC中调用EXECL模板生成报表 - SEUU的专栏 - CSDN博客
如何写好帮助中心的内容
vc中如何调用webservice? VC/MFC / 进程/线程/DLL - CSDN社...