windows-nt/Source/XPSP1/NT/com/ole32/dcomss/olescm/excladdr.hxx
2020-09-26 16:20:57 +08:00

45 lines
1.1 KiB
C++

//+-------------------------------------------------------------------
//
// File: excladdr.hxx
//
// Contents: Defines classes for managing the current address
// exclusion list
//
// Classes: CAddrExclusionMgr
//
// History: 09-Oct-00 jsimmons Created
//
//--------------------------------------------------------------------
#pragma once
class CAddrExclusionMgr
{
public:
CAddrExclusionMgr();
HRESULT EnableDisableDynamicTracking(BOOL fEnable);
HRESULT GetExclusionList(DWORD* pdwNumStrings,
LPWSTR** pppszStrings);
HRESULT SetExclusionList(DWORD pdwNumStrings,
LPWSTR* ppszStrings);
HRESULT BuildExclusionDSA(DUALSTRINGARRAY* pdsaFull,
DUALSTRINGARRAY** ppdsaOut);
void InitializeFromRegistry();
private:
void FreeCurrentBuffers();
BOOL IsExcludedAddress(LPWSTR pszAddress);
DWORD _dwNumStrings;
LPWSTR* _ppszStrings;
BOOL _bInitRegistry;
};
// References the single instance of this object
extern CAddrExclusionMgr gAddrExclusionMgr;