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.

73 lines
2.2 KiB

  1. /******************************************************************************
  2. Copyright (c) 1999 Microsoft Corporation
  3. Module Name:
  4. DataCollection_Reports.cpp
  5. Abstract:
  6. This file contains the implementation of the CSAFDataCollectionReport classes,
  7. which implements the data collection error report functionality.
  8. Revision History:
  9. Davide Massarenti (Dmassare) 10/07/99
  10. created
  11. ******************************************************************************/
  12. #include "stdafx.h"
  13. /////////////////////////////////////////////////////////////////////////////
  14. /////////////////////////////////////////////////////////////////////////////
  15. #define REMEMBER_PAGE_DELAY (3)
  16. /////////////////////////////////////////////////////////////////////////////
  17. /////////////////////////////////////////////////////////////////////////////
  18. CSAFDataCollectionReport::CSAFDataCollectionReport()
  19. {
  20. // CComBSTR m_bstrNamespace;
  21. // CComBSTR m_bstrClass;
  22. // CComBSTR m_bstrWQL;
  23. m_dwErrorCode = 0; // DWORD m_dwErrorCode;
  24. // CComBSTR m_bstrDescription;
  25. }
  26. ////////////////////////////////////////
  27. STDMETHODIMP CSAFDataCollectionReport::get_Namespace( /*[out, retval]*/ BSTR *pVal )
  28. {
  29. MPC::SmartLock<_ThreadModel> lock( this );
  30. return MPC::GetBSTR( m_bstrNamespace, pVal );
  31. }
  32. STDMETHODIMP CSAFDataCollectionReport::get_Class( /*[out, retval]*/ BSTR *pVal )
  33. {
  34. MPC::SmartLock<_ThreadModel> lock( this );
  35. return MPC::GetBSTR( m_bstrClass, pVal );
  36. }
  37. STDMETHODIMP CSAFDataCollectionReport::get_WQL( /*[out, retval]*/ BSTR *pVal )
  38. {
  39. MPC::SmartLock<_ThreadModel> lock( this );
  40. return MPC::GetBSTR( m_bstrWQL, pVal );
  41. }
  42. STDMETHODIMP CSAFDataCollectionReport::get_ErrorCode( /*[out, retval]*/ long *pVal )
  43. {
  44. __HCP_BEGIN_PROPERTY_GET2("CSAFDataCollectionReport::get_ErrorCode",hr,pVal,m_dwErrorCode);
  45. __HCP_END_PROPERTY(hr);
  46. }
  47. STDMETHODIMP CSAFDataCollectionReport::get_Description( /*[out, retval]*/ BSTR *pVal )
  48. {
  49. MPC::SmartLock<_ThreadModel> lock( this );
  50. return MPC::GetBSTR( m_bstrDescription, pVal );
  51. }