comdll.h
Upload User: xhy777
Upload Date: 2007-02-14
Package Size: 24088k
Code Size: 0k
Category:

Windows Kernel

Development Platform:

Visual C++

  1. #ifndef _INC_COMDLL
  2. #define _INC_COMDLL
  3. #include <windows.h>
  4. // helper macros...
  5. #define _IOffset(class, itf)         ((UINT_PTR)&(((class *)0)->itf))
  6. #define IToClass(class, itf, pitf)   ((class  *)(((LPSTR)pitf)-_IOffset(class, itf)))
  7. // standard DLL goo...
  8. extern HANDLE g_hinst;
  9. STDAPI_(void) DllAddRef();
  10. STDAPI_(void) DllRelease();
  11. #endif