Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
572 B

  1. #ifndef _COMMON_H
  2. #define _COMMON_H
  3. #if defined(__cplusplus) && !defined(CINTERFACE)
  4. #define QueryInterface(punk, iid, pobj) (punk)->QueryInterface(iid, pobj)
  5. #define AddRef(punk) (punk)->AddRef()
  6. #define Release(punk) (punk)->Release()
  7. #else /* CINTERFACE */
  8. #define QueryInterface(punk, iid, pobj) (punk)->lpVtbl->QueryInterface(punk, iid, pobj)
  9. #define AddRef(punk) (punk)->lpVtbl->AddRef(punk)
  10. #define Release(punk) (punk)->lpVtbl->Release(punk)
  11. #endif /* CINTERFACE */
  12. #endif // _COMMON_H