Click here to Skip to main content
15,903,012 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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]
Posted
Updated 17-Jan-11 22:39pm
v2

1 solution

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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900