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.

24 lines
577 B

  1. #ifndef _INC_COMDLL
  2. #define _INC_COMDLL
  3. #include <windows.h>
  4. #include <objbase.h>
  5. // helper macros...
  6. #define _IOffset(class, itf) ((UINT_PTR)&(((class *)0)->itf))
  7. #define IToClass(class, itf, pitf) ((class *)(((LPSTR)pitf)-_IOffset(class, itf)))
  8. // standard DLL goo...
  9. extern HANDLE g_hinst;
  10. STDAPI_(void) DllAddRef();
  11. STDAPI_(void) DllRelease();
  12. #ifndef ARRAYSIZE
  13. #define ARRAYSIZE(x) (sizeof(x) / sizeof((x)[0]))
  14. #endif
  15. // Functions to create standard objects
  16. STDAPI DirectDrawFactory_CreateInstance(IUnknown * pUnkOuter, REFIID riid, void ** ppv);
  17. #endif