Looking a device up in the Running Object Table

L

Lunchtimemama

I'm looking to disable Windows autoplay for a particular device.
There's a registry key
(HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\CancelAutoplay\CLSID)
that will turn off autoplay for listed devices, but one must provide
the device's CLSID as it appears in the ROT.

I use the wmi module (http://tgolden.sc.sabren.com/python/wmi.html) to
discover the device's GUID, but I don't know enough about COM to look
it up in the ROT. Is there a difference between the GUID and the CLSID
in the ROT, or am I just not using the registry correctly?

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,285
Messages
2,571,416
Members
48,107
Latest member
AmeliaAmad

Latest Threads

Top