|
// PSLServices.cpp : Implementation of CPSLServices
#include "stdafx.h"
#include "PSLServices.h"
CPSLServices::CPSLServices()
{
}
HRESULT CPSLServices::OnIndexOutOfRange()
{
return MakeException(exIndexOutOfRange);
}
HRESULT CPSLServices::FinalConstruct()
{
PSL_BEGIN
InternalUpdate();
PSL_END
}
void CPSLServices::FinalRelease()
{
}
void CPSLServices::InternalUpdate()
{
EnumServices(this, SERVICE_WIN32);
}
////////////////////////////////////////////////////////////////////////
// Interface Implementation;
////////////////////////////////////////////////////////////////////////
HRESULT CPSLServices::Update()
{
PSL_BEGIN
InternalUpdate();
PSL_END
}
STDMETHODIMP CPSLServices::Find(BSTR ServiceName, IPSLService ** ppValue)
{
PSL_BEGIN
*ppValue = FindService(this, ServiceName);
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.