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.

40 lines
805 B

  1. // devaction.cpp : Implementation of CDeviceAction
  2. #include "pch.h"
  3. #include "wiafb.h"
  4. #include "devaction.h"
  5. /////////////////////////////////////////////////////////////////////////////
  6. // CDeviceAction
  7. STDMETHODIMP CDeviceAction::get_Value(VARIANT* pvValue)
  8. {
  9. pvValue->vt = VT_I4;
  10. pvValue->lVal = m_lValue;
  11. return S_OK;
  12. }
  13. STDMETHODIMP CDeviceAction::put_Value(VARIANT* pvValue)
  14. {
  15. return S_OK;
  16. }
  17. STDMETHODIMP CDeviceAction::Action(LONG *plActionID)
  18. {
  19. if(NULL == plActionID){
  20. return E_INVALIDARG;
  21. }
  22. *plActionID = m_DeviceActionID;
  23. return S_OK;
  24. }
  25. STDMETHODIMP CDeviceAction::ValueID(LONG *plValueID)
  26. {
  27. if(NULL == plValueID){
  28. return E_INVALIDARG;
  29. }
  30. *plValueID = m_DeviceValueID;
  31. return S_OK;
  32. }