windows-nt/Source/XPSP1/NT/admin/snapin/certentp/policyoid.h

55 lines
1.2 KiB
C
Raw Permalink Normal View History

2020-09-26 03:20:57 -05:00
//+---------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 2000-2001.
//
// File: PolicyOID.h
//
// Contents: CPolicyOID
//
//----------------------------------------------------------------------------
#ifndef __POLICYOID_H_INCLUDED__
#define __POLICYOID_H_INCLUDED__
class CPolicyOID {
public:
void SetDisplayName (const CString& szDisplayName);
bool IsApplicationOID () const;
bool IsIssuanceOID () const;
CPolicyOID (const CString& szOID, const CString& szDisplayName,
ADS_INTEGER flags, bool bCanRename = true);
virtual ~CPolicyOID ();
CString GetOIDW () const
{
return m_szOIDW;
}
PCSTR GetOIDA () const
{
return m_pszOIDA;
}
CString GetDisplayName () const
{
return m_szDisplayName;
}
bool CanRename () const
{
return m_bCanRename;
}
private:
const ADS_INTEGER m_flags;
CString m_szOIDW;
CString m_szDisplayName;
PSTR m_pszOIDA;
const bool m_bCanRename;
};
typedef CTypedPtrList<CPtrList, CPolicyOID*> POLICY_OID_LIST;
#endif // __POLICYOID_H_INCLUDED__