windows-nt/Source/XPSP1/NT/admin/wmi/wbem/winmgmt/hiperstress/service.cpp
2020-09-26 16:20:57 +08:00

48 lines
709 B
C++

/*++
Copyright (C) 1998-2001 Microsoft Corporation
Module Name:
Abstract:
History:
--*/
//////////////////////////////////////////////////////////////////////
//
// Service.cpp
//
// Created by a-dcrews, Oct. 6, 1998
//
//////////////////////////////////////////////////////////////////////
#include "HiPerStress.h"
#include "Service.h"
CService::CService(WCHAR* wcsNameSpace, IWbemServices* pSvc)
{
pSvc->AddRef();
m_pService = pSvc;
wcscpy(m_wcsNameSpace, wcsNameSpace);
}
CService::~CService()
{
if (m_pService)
m_pService->Release();
}
void CService::GetName(WCHAR *wcsNameSpace)
{
wcscpy(wcsNameSpace, m_wcsNameSpace);
}
IWbemServices* CService::GetService()
{
return m_pService;
}