隐藏用户的摄像头界面!如何通知exploere新设备已分离? [英] Conceal camera interface from user! how to notify exploere that new device is detached?

查看:41
本文介绍了隐藏用户的摄像头界面!如何通知exploere新设备已分离?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我在PTP设备上编写应用程序,要求之一是对用户(在我的计算机和其他地方)隐藏Windows资源管理器的默认界面.

我尝试向Windows资源管理器通知"该ptp设备已断开连接,但这无法正常工作,因此我尝试至少从视觉上将其删除.

在Windows XP中,当Windows探索从树侧使用sysListView32和sysTreeView32时,我成功使用消息传递和钩子从计算机中删除了PTP图标(将列表消息中的从列表消息中删除"发送到我的计算机窗口中).
在Windows 7中,我成功从树形视图中删除了PTP图标,但它看起来Windows 7不再在Windows资源管理器中使用sysListView32,而是使用hwndDirectUI.我找不到使用它的文档或示例代码!

有谁知道我该如何使用这个课程?它在dui70.dll中实现,我确实有一个绕行API,我只需要知道该DLL中绘制" PTP图标的函子的功能即可,所以我可以绕行它.

回到原始的灵魂,有人知道我如何向浏览器发送ptp设备已分离的假"通知?与开始从每个窗口中删除图标相比,这是首选的解决方案.
没事的.

问候

优素福

[edit]紧急情况已删除.对您来说可能很紧急,但对我们而言并非如此.它所做的一切只是使人烦恼,使您看起来好像不感到烦恼-OriginalGriff [/edit]

hello all,

I writing an app to a PTP device, one of the requirment is to conceal the windows explorer default interface from user (in my computer and other places).

I try to "notify" the windows explorer that the ptp device has been disconnected but this doesn''t work so I try to at least remove it visually.

In windows XP I success to remove the PTP icon from my computer using messaging and hooks ( send remove from list message to my computer window) as windows explore use sysListView32 and sysTreeView32 from the tree side.

In windows 7 I success to remove the PTP icon from the tree view but it looks windows 7 no longer use sysListView32 in windows explorer and instead it uses hwndDirectUI. which I fail to find a documentation or an example code that use it!

does anyone know how could I use this class? its implemented in dui70.dll, and I do have a detour API, all what I need to know is the of the func in this dll that "draw" the PTP icone so I can detour it .

backing to the orginal soultion, does any one know how could I send a "fake" notification to explorer that the ptp device has been detached? this is the preferred solution than start removing the icon from the each window o
pened.

Regards

Yousef

[edit]Urgency removed. It may be urgent for you, but it isn''t to us. All it does is annoy people and make you look like you haven''t bothered - OriginalGriff[/edit]

推荐答案

您可以将平台SDK用于Winodws.
在那里,您将获得一些枚举硬件信息的API
您可以通过SetupDiXXXXX()在msdn中搜索它们.

在线程中运行它们以检测您感兴趣的硬件更改.
您也可以参考WMI.
You can use platform SDK for Winodws.
There you will get some APIs that enumerates hardware information
You can search them in msdn by SetupDiXXXXX().

Run them in a thread to detect hardware changes that you are interested in.
You can also refer to WMI too.


这篇关于隐藏用户的摄像头界面!如何通知exploere新设备已分离?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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