void SIDCacheFlush() { for(SIDCacheItem** i=SIDCache.First();i;i=SIDCache.Next(i)) { delete *i; } SIDCache.Clear(); }
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; }