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.

51 lines
852 B

  1. // FileAndAction.cpp : Implementation of CFileAndAction
  2. #include "stdafx.h"
  3. #include "FileAndAction.h"
  4. // CFileAndAction
  5. STDMETHODIMP CFileAndAction::get_Filename(BSTR* pVal)
  6. {
  7. if (pVal == NULL)
  8. return E_POINTER;
  9. return m_Filename.CopyTo(pVal);
  10. }
  11. STDMETHODIMP CFileAndAction::put_Filename(BSTR newVal)
  12. {
  13. m_Filename = newVal;
  14. return S_OK;
  15. }
  16. STDMETHODIMP CFileAndAction::get_Action(BSTR* pVal)
  17. {
  18. if (pVal == NULL)
  19. return E_POINTER;
  20. return m_Action.CopyTo(pVal);
  21. }
  22. STDMETHODIMP CFileAndAction::put_Action(BSTR newVal)
  23. {
  24. m_Action = newVal;
  25. return S_OK;
  26. }
  27. STDMETHODIMP CFileAndAction::get_Enabled(BOOL* pVal)
  28. {
  29. if (pVal == NULL)
  30. return E_POINTER;
  31. *pVal = m_fEnabled;
  32. return S_OK;
  33. }
  34. STDMETHODIMP CFileAndAction::put_Enabled(BOOL newVal)
  35. {
  36. m_fEnabled = newVal;
  37. return S_OK;
  38. }