Leaked source code of windows server 2003
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.

46 lines
1.6 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1993.
  5. //
  6. // File: defutil.h
  7. //
  8. // Contents: Declarations for utility functions used in the default
  9. // handler and default link
  10. //
  11. // Classes:
  12. //
  13. // Functions:
  14. //
  15. // History: dd-mmm-yy Author Comment
  16. // 20-Nov-93 alexgo 32bit port
  17. //
  18. //--------------------------------------------------------------------------
  19. #if !defined( _DEFUTIL_H_ )
  20. #define _DEFUTIL_H_
  21. INTERNAL_(void) DuLockContainer(IOleClientSite FAR* pCS,
  22. BOOL fLockNew,
  23. BOOL FAR*pfLockCur);
  24. INTERNAL DuSetClientSite(BOOL fRunning,
  25. IOleClientSite FAR* pCSNew,
  26. IOleClientSite FAR* FAR* ppCSCur,
  27. BOOL FAR*pfLockCur);
  28. INTERNAL_(void FAR*) DuCacheDelegate(IUnknown FAR** ppUnk,
  29. REFIID iid,
  30. LPVOID FAR* ppv,
  31. IUnknown *pUnkOuter);
  32. #define GET_FROM_REGDB(scode) \
  33. (((scode == OLE_S_USEREG) || (scode == RPC_E_CANTPOST_INSENDCALL) || \
  34. (scode == RPC_E_CANTCALLOUT_INASYNCCALL) || \
  35. (scode == RPC_E_CANTCALLOUT_INEXTERNALCALL) || \
  36. (scode == RPC_E_CANTCALLOUT_ININPUTSYNCCALL) || \
  37. (scode == RPC_E_CALL_CANCELED) || (scode == RPC_E_CALL_REJECTED)) \
  38. ? TRUE : FALSE)
  39. #endif // _DEFUTIL_H
  40.