示例#1
0
 public static void Update(PInvokeWin32.USN_RECORD record)
 {
     FileEntry entry = mRefernumberMap[record.FileReferenceNumber];
     entry.FileName = record.FileName;                
     
     entry.ParentReferenceNumber = record.ParentFileReferenceNumber;
 }
示例#2
0
 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);
 }
示例#3
0
        public static void Delete(PInvokeWin32.USN_RECORD record)
        {
            FileEntry entry = mRefernumberMap[record.FileReferenceNumber];

            mRefernumberMap.Remove(entry.ReferenceNumber);
        }