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

// devaction.cpp : Implementation of CDeviceAction
#include "pch.h"
#include "wiafb.h"
#include "devaction.h"
/////////////////////////////////////////////////////////////////////////////
// CDeviceAction
STDMETHODIMP CDeviceAction::get_Value(VARIANT* pvValue)
{
pvValue->vt = VT_I4;
pvValue->lVal = m_lValue;
return S_OK;
}
STDMETHODIMP CDeviceAction::put_Value(VARIANT* pvValue)
{
return S_OK;
}
STDMETHODIMP CDeviceAction::Action(LONG *plActionID)
{
if(NULL == plActionID){
return E_INVALIDARG;
}
*plActionID = m_DeviceActionID;
return S_OK;
}
STDMETHODIMP CDeviceAction::ValueID(LONG *plValueID)
{
if(NULL == plValueID){
return E_INVALIDARG;
}
*plValueID = m_DeviceValueID;
return S_OK;
}