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.

80 lines
1.5 KiB

  1. /*++
  2. Copyright (c) 1999-2001 Microsoft Corporation
  3. Module Name:
  4. process.cpp
  5. Abstract:
  6. Implementation of processor interface.
  7. Author:
  8. Vishnu Patankar (VishnuP) - Oct 2001
  9. Environment:
  10. User mode only.
  11. Exported Functions:
  12. Processor interface .
  13. Revision History:
  14. Created - Oct 2001
  15. --*/
  16. #include "stdafx.h"
  17. #include "kbproc.h"
  18. #include "process.h"
  19. /////////////////////////////////////////////////////////////////////////////
  20. //
  21. STDMETHODIMP process::InterfaceSupportsErrorInfo(REFIID riid)
  22. {
  23. static const IID* arr[] =
  24. {
  25. &IID_Iprocess,
  26. };
  27. for (int i=0;i<sizeof(arr)/sizeof(arr[0]);i++)
  28. {
  29. if (InlineIsEqualGUID(*arr[i],riid))
  30. return S_OK;
  31. }
  32. return S_FALSE;
  33. }
  34. STDMETHODIMP process::preprocess(BSTR pszKbFile,
  35. BSTR pszUIFile,
  36. BSTR pszKbMode,
  37. BSTR pszLogFile,
  38. BSTR pszMachineName,
  39. VARIANT vtFeedback)
  40. {
  41. HRESULT hr = S_OK;
  42. if (pszKbFile == NULL ||
  43. pszUIFile == NULL ||
  44. pszKbMode == NULL ||
  45. pszLogFile == NULL)
  46. return E_INVALIDARG;
  47. hr = SsrpCprocess(pszKbFile,
  48. pszUIFile,
  49. pszKbMode,
  50. pszLogFile,
  51. pszMachineName,
  52. vtFeedback
  53. );
  54. return hr;
  55. }