winstd::security_id SID structure wrapper introduced

This commit is contained in:
2017-05-22 08:22:57 +02:00
parent b09610fd5f
commit 7fac8e286f
2 changed files with 43 additions and 0 deletions

View File

@@ -309,3 +309,20 @@ void winstd::reg_key::free_internal()
{
RegCloseKey(m_h);
}
//////////////////////////////////////////////////////////////////////
// winstd::security_id
//////////////////////////////////////////////////////////////////////
winstd::security_id::~security_id()
{
if (m_h)
FreeSid(m_h);
}
void winstd::security_id::free_internal()
{
FreeSid(m_h);
}