社区
API
帖子详情
用API拦截USB
futosky
2009-08-14 01:14:32
我想用API拦截USB移动设备,即 如果识别了USB移动硬盘序列号后,如果没有经过认证则弹出该硬盘,或者双击盘符时阻止访问,是不是很难实现?
...全文
142
4
打赏
收藏
用API拦截USB
我想用API拦截USB移动设备,即 如果识别了USB移动硬盘序列号后,如果没有经过认证则弹出该硬盘,或者双击盘符时阻止访问,是不是很难实现?
复制链接
扫一扫
分享
转发到动态
举报
AI
作业
写回复
配置赞助广告
用AI写文章
4 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
WindSparrow
2012-02-14
打赏
举报
回复
请问jbwd1的问题是怎么解决的,我也遇到了差不多的问题~
woshilazygirl
2009-08-19
打赏
举报
回复
可以的啊,上次我们老师做过,可是我不会哦。全用VB写的哦
kmzs
2009-08-15
打赏
举报
回复
可以,不过你得先用C/C++写个dll,搞不好还要跟驱动打打交道
kav1win
2009-08-15
打赏
举报
回复
VB不行。
Api
Hook.rar_
API
HOOK_
USB
Dongle_dll_energy4u4_
usb
通讯
通过这个dll可读取
USB
加密狗通讯数据
Qt利用Windows
API
弹出U盘
本程序实现动态检测磁盘插拔,并判断磁盘驱动器类型,可以将U盘弹出操作,将本地磁盘进行格式化操作。
qt 通过hid获取指定
usb
设备 并读取数据
文件夹中包含hid
api
.h hid
api
.dll hid
api
.lib,我是在windows10系统中用VS2013编译的release版本,我用于qt的调用,是可以实现的。 调用过程: int res; res = hid_init(); wchar_t wstr[MAX_STR]; int i; // Open the device using the VID, PID, // and optionally the Serial number. handle = hid_open(0x0483, 0x5750, NULL); if(handle == NULL) { qDebug() << "NULL-----------------------NULL" ; return; } else { qDebug() << " not ------------NULL-----------------------NULL" ; } // Read the Manufacturer String res = hid_get_manufacturer_string(handle, wstr, MAX_STR); wprintf(L"Manufacturer String: %s\n", wstr); // Read the Product String res = hid_get_product_string(handle, wstr, MAX_STR); wprintf(L"Product String: %s\n", wstr); // Read the Serial Number String res = hid_get_serial_number_string(handle, wstr, MAX_STR); wprintf(L"Serial Number String: (%d) %s\n", wstr[0], wstr); // Read Indexed String 1 res = hid_get_indexed_string(handle, 1, wstr, MAX_STR); wprintf(L"Indexed String 1: %s\n", wstr); qDebug("hid read start"); int res = hid_set_nonblocking(handle, 0); while (1) { res = hid_read(handle,buf,sizeof(buf)); QString asd ; for(int i = 0;i < sizeof(buf);i++) { char str[20]; sprintf(str , "%02x",buf[i]); asd+=str ; } if(!cardInfo.contains(asd.toUpper())) { cardInfo.append(asd.toUpper() ); for(int i = 0;i < cardInfo.size() ;i++) { dealWithData( cardInfo[i]); } } }
C++实现检测
USB
鼠标的拔插
C++实现检测
USB
鼠标的拔插的代码实现
VC++实现禁用
USB
接口、禁止上网功能
VC++实现禁用
USB
接口、禁止上网功能 visual c++禁用U盘,禁用网口
API
1,488
社区成员
23,276
社区内容
发帖
与我相关
我的任务
API
VB API
复制链接
扫一扫
分享
社区描述
VB API
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章