terminal/src/tsf/TfCatUtil.cpp
Dustin Howett d4d59fa339 Initial release of the Windows Terminal source code
This commit introduces all of the Windows Terminal and Console Host source,
under the MIT license.
2019-05-02 15:29:04 -07:00

70 lines
1.4 KiB
C++

/*++
Copyright (c) Microsoft Corporation.
Licensed under the MIT license.
Module Name:
TfCatUtil.cpp
Abstract:
This file implements the CicCategoryMgr Class.
Author:
Revision History:
Notes:
--*/
#include "precomp.h"
#include "TfCatUtil.h"
//+---------------------------------------------------------------------------
//
// CicCategoryMgr::ctor
// CicCategoryMgr::dtor
//
//----------------------------------------------------------------------------
CicCategoryMgr::CicCategoryMgr()
{
}
CicCategoryMgr::~CicCategoryMgr()
{
if (m_pcat) {
m_pcat.Release();
}
}
//+---------------------------------------------------------------------------
//
// CicCategoryMgr::GetGUIDFromGUIDATOM
//
//----------------------------------------------------------------------------
[[nodiscard]]
HRESULT CicCategoryMgr::GetGUIDFromGUIDATOM(TfGuidAtom guidatom, GUID *pguid)
{
return m_pcat->GetGUID(guidatom, pguid);
}
//+---------------------------------------------------------------------------
//
// CicCategoryMgr::InitCategoryInstance
//
//----------------------------------------------------------------------------
[[nodiscard]]
HRESULT CicCategoryMgr::InitCategoryInstance( )
{
//
// Create ITfCategoryMgr instance.
//
return m_pcat.CoCreateInstance(CLSID_TF_CategoryMgr);
}