public static void Update(PInvokeWin32.USN_RECORD record) { FileEntry entry = mRefernumberMap[record.FileReferenceNumber]; entry.FileName = record.FileName; entry.ParentReferenceNumber = record.ParentFileReferenceNumber; }
public static void Add(PInvokeWin32.USN_RECORD record) { FileEntry entry = new FileEntry(record.FileReferenceNumber, record.FileName, record.ParentFileReferenceNumber); if (LastUsn < record.Usn) { LastUsn = record.Usn; } mRefernumberMap.Add(entry.ReferenceNumber, entry); }
public static void Delete(PInvokeWin32.USN_RECORD record) { FileEntry entry = mRefernumberMap[record.FileReferenceNumber]; mRefernumberMap.Remove(entry.ReferenceNumber); }