Take the 2-minute tour ×

For debugging purposes, I would like to display the queried interface name. I can search for the GUID by hand in Google, but it's very slow. Is there a function that does this?

share|improve this question
msdn.microsoft.com/en-us/library/windows/desktop/ms690567.aspx or msdn.microsoft.com/en-us/library/windows/desktop/ms682271.aspx perhaps? And what about interfaces that don't register names? –  ta.speot.is Jun 19 '12 at 11:30
The debugger already does this, as long as the interface guid appears in the registry. HKCR\Interface key. –  Hans Passant Jun 19 '12 at 11:40
What debugger knows this? –  Tamás Szelei Jun 19 '12 at 12:13
add comment

2 Answers

up vote 2 down vote accepted

You could write one. Just look up your GUID in the registry under HKEY_CLASSES_ROOT\Interface

share|improve this answer
+1, but it is not guaranteed to be there. –  sharptooth Jun 21 '12 at 12:26
add comment

Based on Paul Mitchell's answer, here is my implementation (for Qt):

QSettings s(QString("HKEY_CLASSES_ROOT\\Interface\\{%1}").arg(str_guid), QSettings::NativeFormat);
qDebug() << "Querying interface:" << std_guid << "called" << s.value("Default").toString();
share|improve this answer
add comment

Your Answer


