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.

38 lines
703 B

  1. // comstuff.h
  2. //
  3. // Interface and object definitions
  4. #ifndef COMSTUFF_H
  5. #define COMSTUFF_H
  6. typedef struct _INTERFACE_LIST {
  7. LPVOID lpVtbl;
  8. LONG lRefCount;
  9. IID iid;
  10. struct _INTERFACE_LIST *lpIntNext;
  11. struct _OBJECT_DATA *lpObject;
  12. } INTERFACE_LIST, *LPINTERFACE_LIST;
  13. typedef struct _OBJECT_DATA {
  14. LONG lRefCount;
  15. LPVOID lpvData;
  16. LPINTERFACE_LIST lpIntList;
  17. } OBJECT_DATA, *LPOBJECT_DATA;
  18. #define GET_OBJECT_FROM_INTERFACE(a) ((LPINTERFACE_LIST) a)->lpObject->lpvData
  19. #if !defined(__cplusplus) && !defined(CINTERFACE)
  20. #ifdef THIS_
  21. #undef THIS_
  22. #define THIS_ LPVOID this,
  23. #endif
  24. #ifdef THIS
  25. #undef THIS
  26. #define THIS LPVOID this
  27. #endif
  28. #endif
  29. #endif // COMSTUFF_H