Click here to Skip to main content
16,012,468 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralAbout destruct function in COM! Pin
wabc5-Feb-02 23:50
wabc5-Feb-02 23:50 
GeneralRe: About destruct function in COM! Pin
Joaquín M López Muñoz6-Feb-02 5:53
Joaquín M López Muñoz6-Feb-02 5:53 
GeneralEnumerating devices Pin
Joe Moldovan5-Feb-02 23:42
Joe Moldovan5-Feb-02 23:42 
GeneralRe: Enumerating devices Pin
6-Feb-02 4:24
suss6-Feb-02 4:24 
GeneralRe: Enumerating devices Pin
6-Feb-02 8:15
suss6-Feb-02 8:15 
GeneralRe: Enumerating devices Pin
Joe Moldovan6-Feb-02 9:27
Joe Moldovan6-Feb-02 9:27 
GeneralRe: Enumerating devices Pin
6-Feb-02 10:48
suss6-Feb-02 10:48 
GeneralRe: Enumerating devices Pin
Joe Moldovan6-Feb-02 20:12
Joe Moldovan6-Feb-02 20:12 
For someone who says he doesn't know much you sure know a lot more about this stuff than me! Thank you for your very helpful tips.

The whole device/driver architecture/interface from MS is absolutely shocking. I have spent THREE whole days trying to do something which is trivial (send a "keep alive" null message every 5 minutes to a USB POS printer, an insignificant task for LPT1: or PRN: ) and I'm still scratching my head. But I did manage to answer the original question about SetupDiEnumDeviceInterfaces() parameters.

To help others struggling with this stuff, the "Pointer to a GUID that specifies the device interface class for the requested interface" mentioned in the ISDN, can be found in HKLM\SYSTEM\CurrentControlSet\Control\DeviceClasses. MS does not want us to access these directly but I have found no other way.

NOTE that there are a set of GUIDS which are the SETUP classes and are given in devguid.h. They won't work with this call but can be used in SetupDiGetClassDevs etc. as selectors for restricting the device data.

I am going to use IOCTL as per your suggestion. Who knows! In another ten years or so I might even understand all this.


GeneralRe: Enumerating devices Pin
7-Feb-02 4:25
suss7-Feb-02 4:25 
GeneralRe: Enumerating devices Pin
Joe Moldovan7-Feb-02 9:35
Joe Moldovan7-Feb-02 9:35 
GeneralSerialization, but not using MFC Pin
5-Feb-02 23:33
suss5-Feb-02 23:33 
GeneralRe: Serialization, but not using MFC Pin
Christian Graus6-Feb-02 0:19
protectorChristian Graus6-Feb-02 0:19 
GeneralDynamically adding to toolbar Pin
5-Feb-02 23:27
suss5-Feb-02 23:27 
GeneralRe: Dynamically adding to toolbar Pin
56789012346-Feb-02 0:38
56789012346-Feb-02 0:38 
GeneralRe: Dynamically adding to toolbar Pin
Mazdak6-Feb-02 0:45
Mazdak6-Feb-02 0:45 
GeneralRe: Dynamically adding to toolbar Pin
6-Feb-02 0:51
suss6-Feb-02 0:51 
GeneralRe: Dynamically adding to toolbar Pin
Mazdak6-Feb-02 2:02
Mazdak6-Feb-02 2:02 
GeneralRe: Dynamically adding to toolbar Pin
Fredrik Skog6-Feb-02 3:34
Fredrik Skog6-Feb-02 3:34 
GeneralRe: Dynamically adding to toolbar Pin
6-Feb-02 4:05
suss6-Feb-02 4:05 
QuestionHow to Add HoTkey to My Tray Application Pin
5-Feb-02 23:12
suss5-Feb-02 23:12 
AnswerRe: How to Add HoTkey to My Tray Application Pin
Rickard Andersson206-Feb-02 0:43
Rickard Andersson206-Feb-02 0:43 
GeneralRe: How to Add HoTkey to My Tray Application Pin
Jon Hulatt6-Feb-02 0:54
Jon Hulatt6-Feb-02 0:54 
GeneralEncrypting (try just once againg.... just once) Pin
Rickard Andersson205-Feb-02 22:33
Rickard Andersson205-Feb-02 22:33 
GeneralRe: Encrypting (try just once againg.... just once) Pin
Andreas Saurwein6-Feb-02 0:35
Andreas Saurwein6-Feb-02 0:35 
GeneralRe: Encrypting (try just once againg.... just once) Pin
Rickard Andersson206-Feb-02 0:40
Rickard Andersson206-Feb-02 0:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.