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.

50 lines
946 B

  1. /*++
  2. Copyright (c) Microsoft Corporation
  3. Module Name:
  4. vseeport.cpp
  5. Abstract:
  6. for porting code from vsee
  7. Author:
  8. Jay Krell (JayKrell) August 2001
  9. Revision History:
  10. --*/
  11. #include "stdinc.h"
  12. #include "vseeport.h"
  13. void NVseeLibError_VCheck(HRESULT hr)
  14. {
  15. if (SUCCEEDED(hr))
  16. return;
  17. FN_PROLOG_VOID_THROW;
  18. ORIGINATE_COM_FAILURE_AND_EXIT(NVseeLibError_VCheck, hr);
  19. FN_EPILOG_THROW;
  20. }
  21. void NVseeLibError_VThrowWin32(DWORD dw)
  22. {
  23. FN_PROLOG_VOID_THROW;
  24. ORIGINATE_WIN32_FAILURE_AND_EXIT(NVseeLibError_VThrowWin32, dw);
  25. FN_EPILOG_THROW;
  26. }
  27. void VsOriginateError(HRESULT hr)
  28. {
  29. FN_PROLOG_VOID_THROW;
  30. ORIGINATE_COM_FAILURE_AND_EXIT(VsOriginateError, hr);
  31. FN_EPILOG_THROW;
  32. }
  33. void FusionpOutOfMemory()
  34. {
  35. FN_PROLOG_VOID_THROW;
  36. ORIGINATE_WIN32_FAILURE_AND_EXIT(FusionpOutOfMemory, FUSION_WIN32_ALLOCFAILED_ERROR);
  37. FN_EPILOG_THROW;
  38. }