| 156 | performing a thread safe AddRef as necessary */ |
| 157 | |
| 158 | HRESULT CUnknown::GetInterface(LPUNKNOWN pUnk, void **ppv) |
| 159 | { |
| 160 | CheckPointer(ppv, E_POINTER); |
| 161 | *ppv = pUnk; |
| 162 | pUnk->AddRef(); |
| 163 | return NOERROR; |
| 164 | } |
| 165 | |
| 166 | |
| 167 | /* Compares two interfaces and returns TRUE if they are on the same object */ |