设备仿真框架的接口 [英] Interface of Device Simulation Framework

查看:105
本文介绍了设备仿真框架的接口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家早上好,

我想对一个应用程序进行编程,该应用程序将软键盘模拟为真实". HID设备.因此,我使用WinDDK 7中的DSF(设备仿真框架)示例.在\ src \ test \ dsf \ usb \ usb下有一个VBScript示例,该示例运行良好.但是我必须在没有ATL或MFC的情况下使用C ++.

现在我可以打开InputKbd.SoftKeyboard和SoftHID.SoftHIDInputKbdMapper.但是对于DSF.DSF和DSF.DSFDevices我没有lib-File.该接口在\ src \ test \ dsf \ usb \ inc \ dsfif.idl中声明.如何将其转换为lib或tbl文件?当我尝试使用"midl dsfif.idl/tbl dsfif.tlb"时,找不到标题dsfhelp.h,dsfdispid.h和dsfAttrID.h.没有标题,它也不会编译.我该怎么办?

感谢您的回答...
ChornHulio

对不起,英语不好...

Good morning everbody,

I want program a application, which simulates a Soft-Keyboard as "real" HID-Device. So I use the DSF (Device Simulation Framework) sample from WinDDK 7. There's under \src\test\dsf\usb\usbhid a VBScript sample, which works perfectly. But I've to use C++ without ATL or MFC.

Now I can open InputKbd.SoftKeyboard and SoftHID.SoftHIDInputKbdMapper. But for DSF.DSF and DSF.DSFDevices I have no lib-File. The interface is declareded in \src\test\dsf\usb\inc\dsfif.idl. How can I transform it to a lib or tbl-File? When I attempted it, with "midl dsfif.idl /tbl dsfif.tlb" the Headers dsfhelp.h, dsfdispid.h and dsfAttrID.h can not be found. Without the Headers it doesn't compile, too. What can I do?

Thanks for the answers...
ChornHulio

Sorry, for the bad english...

推荐答案

您应包含文件

#include< USBProtocolDefs.h>

#include <USBProtocolDefs.h>

#include< dsfif.h>

#include <dsfif.h>

#include< softusbif.h>

#include <softusbif.h>

 

这些文件位于%systemdrive%\ WinDDK \ 7600.16385.0 \ inc \ ddk

These files are located at %systemdrive%\WinDDK\7600.16385.0\inc\ddk


这篇关于设备仿真框架的接口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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