|
// PSLDriver.cpp : Implementation of CPSLDriver
#include "stdafx.h"
#include "PSLDriver.h"
CPSLDriver::CPSLDriver()
{
}
HRESULT CPSLDriver::FinalConstruct()
{
return S_OK;
}
void CPSLDriver::FinalRelease()
{
}
void CPSLDriver::Initialize(SC_HANDLE hService, ENUM_SERVICE_STATUS_PROCESS & ssp, LPBYTE pTempBuffer, DWORD dwBufferSize)
{
CServiceInfo::Initialize(hService, ssp, pTempBuffer, dwBufferSize);
}
////////////////////////////////////////////////////////////////////////
// Interface Implementation;
////////////////////////////////////////////////////////////////////////
STDMETHODIMP CPSLDriver::get_Name(BSTR * pValue)
{
PSL_BEGIN
*pValue = m_sName.copy();
PSL_END
}
STDMETHODIMP CPSLDriver::get_DisplayName(BSTR * pValue)
{
PSL_BEGIN
*pValue = m_sDisplayName.copy();
PSL_END
}
STDMETHODIMP CPSLDriver::get_Description(BSTR * pValue)
{
PSL_BEGIN
*pValue = m_sDescription.copy();
PSL_END
}
STDMETHODIMP CPSLDriver::get_Path(BSTR * pValue)
{
PSL_BEGIN
*pValue = m_sPath.copy();
PSL_END
}
STDMETHODIMP CPSLDriver::get_CurrentState(PSLServiceState * pValue)
{
PSL_BEGIN
SetException(CServiceInfo::Update());
*pValue = m_CurrentState;
PSL_END
}
STDMETHODIMP CPSLDriver::get_Type(PSLDriverType * pValue)
{
PSL_BEGIN
*pValue = static_cast<PSLDriverType>(m_dwServiceType);
PSL_END
}
STDMETHODIMP CPSLDriver::get_Dependencies(BSTR * pValue)
{
PSL_BEGIN
*pValue = m_sDependencies.copy();
PSL_END
}
STDMETHODIMP CPSLDriver::get_StartType(PSLDriverStartType * pValue)
{
PSL_BEGIN
*pValue = static_cast<PSLDriverStartType>(m_dwStartType);
PSL_END
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.