Example #1
0
void SIDCacheFlush()
{
	for(SIDCacheItem** i=SIDCache.First();i;i=SIDCache.Next(i))
	{
		delete *i;
	}
	SIDCache.Clear();
}
Example #2
0
const wchar_t* GetNameFromSIDCache(PSID Sid)
{
	LPCWSTR Result=nullptr;
	for(SIDCacheItem** i=SIDCache.First();i;i=SIDCache.Next(i))
	{
		if (EqualSid((*i)->Sid,Sid))
		{
			Result=(*i)->strUserName;
			break;
		}
	}
	return Result;
}
Example #3
0
		void RemoveCurMacro() { if (!m_MacroQueue.Empty()) m_MacroQueue.Delete(m_MacroQueue.First()); }
Example #4
0
		MacroRecord* GetCurMacro() { return m_MacroQueue.Empty() ? nullptr : m_MacroQueue.First(); }