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.

40 lines
1.2 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1994.
  5. //
  6. // File: thkmgr.hxx
  7. //
  8. // Contents: 16->32 and 32->16 thunk manager definitions
  9. //
  10. // History: 23-Mar-94 JohannP Created
  11. // 22-May-94 BobDay Split out 16-bit definitions
  12. // into obj16.hxx
  13. //
  14. //----------------------------------------------------------------------------
  15. #ifndef __THKMGR_HXX__
  16. #define __THKMGR_HXX__
  17. STDAPI ThkMgrInitialize(DWORD dw1, DWORD dw2, DWORD dw3);
  18. STDAPI_(void) ThkMgrUninitialize(DWORD dw1, DWORD dw2, DWORD dw3);
  19. //
  20. // 32->16 prototypes
  21. //
  22. SCODE QueryInterfaceProxy3216(THUNK3216OBJ *pto, REFIID refiid, LPVOID *ppv);
  23. DWORD AddRefProxy3216(THUNK3216OBJ *pto);
  24. DWORD ReleaseProxy3216(THUNK3216OBJ *pto);
  25. HRESULT QueryInterfaceOnObj16(VPVOID vpvThis16, REFIID refiid, LPVOID *ppv);
  26. #if DBG == 1
  27. DWORD AddRefOnObj16(VPVOID vpvThis16);
  28. DWORD ReleaseOnObj16(VPVOID vpvThis16);
  29. #else
  30. #define AddRefOnObj16(this) CallbackTo16(gdata16Data.fnAddRef16, this)
  31. #define ReleaseOnObj16(this) CallbackTo16(gdata16Data.fnRelease16, this)
  32. #endif
  33. #endif // #ifndef __THKMGR_HXX__
  34.