Advertisement
Brick

DirectXParse

Oct 2nd, 2016
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.76 KB | None | 0 0
  1. #define FAR
  2. #define PURE
  3.  
  4. #define PASCAL __stdcall
  5. #define WINAPI __stdcall
  6. #define CALLBACK __stdcall
  7.  
  8. #define DECLARE_INTERFACE_(s, b)    \
  9. struct s ## Vtbl;                   \
  10. struct s                            \
  11. {                                   \
  12.     s ## Vtbl * lpVtbl;             \
  13. };                                  \
  14. struct s ## Vtbl
  15.  
  16. #define STDMETHOD_(type,method) type (WINAPI * method)
  17. #define STDMETHOD(method)       STDMETHOD_(HRESULT, method)
  18.  
  19. #define THIS INTERFACE*
  20. #define THIS_ THIS,
  21.  
  22. typedef IID*    REFIID;
  23. typedef GUID*   REFGUID;
  24. typedef CLSID*  REFCLSID;
  25.  
  26. typedef void    VOID;
  27.  
  28. #define DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) const GUID name = { l, w1, w2, { b1, b2,  b3,  b4,  b5,  b6,  b7,  b8 } }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement