The function get-i-dispatch-name returns the foreign name of an
i-dispatch
interface. That is, it obtains the first return value of
ITypeInfo::GetDocumentation
.
If TypeOf objMap.Selection Is Pushpin Then
...
you would need something like:
(if (equalp (COM:get-i-dispatch-name selection)
"PushPin")
...)