Home | Info | Community | Development | myReactOS | Contact Us
Definition at line 696 of file atom.c.
Referenced by NtQueryInformationAtom().
{ PRTL_ATOM_TABLE_ENTRY *CurrentBucket, *LastBucket; PRTL_ATOM_TABLE_ENTRY CurrentEntry; ULONG Atoms = 0; NTSTATUS Status = STATUS_SUCCESS; RtlpLockAtomTable(AtomTable); LastBucket = AtomTable->Buckets + AtomTable->NumberOfBuckets; for (CurrentBucket = AtomTable->Buckets; CurrentBucket != LastBucket; CurrentBucket++) { CurrentEntry = *CurrentBucket; while (CurrentEntry != NULL) { if (MaxAtomCount > 0) { *(AtomList++) = (RTL_ATOM)CurrentEntry->Atom; MaxAtomCount--; } else { /* buffer too small, but don't bail. we need to determine the total number of atoms in the table! */ Status = STATUS_INFO_LENGTH_MISMATCH; } Atoms++; CurrentEntry = CurrentEntry->HashLink; } } *AtomCount = Atoms; RtlpUnlockAtomTable(AtomTable); return Status; }