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.

45 lines
1.0 KiB

  1. /*===================================================================
  2. Microsoft Denali
  3. Microsoft Confidential.
  4. Copyright 1997 Microsoft Corporation. All Rights Reserved.
  5. Component: Transascted Scripts Object
  6. File: txnsupp.h
  7. Declaration of the Transacted Script Context object
  8. ===================================================================*/
  9. #ifndef __TXNSUPP_H_
  10. #define __TXNSUPP_H_
  11. #include <txnscrpt.h>
  12. #include "viperint.h"
  13. HRESULT TxnSupportInit();
  14. HRESULT TxnSupportUnInit();
  15. inline const CLSID & CLSIDObjectContextFromTransType(TransType tt)
  16. {
  17. switch (tt)
  18. {
  19. case ttRequired:
  20. return CLSID_ASPObjectContextTxRequired;
  21. case ttRequiresNew:
  22. return CLSID_ASPObjectContextTxRequiresNew;
  23. case ttSupported:
  24. return CLSID_ASPObjectContextTxSupported;
  25. case ttNotSupported:
  26. return CLSID_ASPObjectContextTxNotSupported;
  27. }
  28. DBG_ASSERT(FALSE);
  29. return CLSID_NULL;
  30. }
  31. extern IASPObjectContext * g_pIASPObjectContextZombie;
  32. #endif //__TXNSUPP_H_