private static void AddVolumeRootRecord(string volumeName, Dictionary <ulong, USNRecord> files)
        {
            string rightVolumeName = string.Concat("\\\\.\\", volumeName);

            rightVolumeName = string.Concat(rightVolumeName, Path.DirectorySeparatorChar);
            IntPtr hRoot = PInvokeWin32.CreateFile(rightVolumeName,
                                                   0,
                                                   PInvokeWin32.FILE_SHARE_READ | PInvokeWin32.FILE_SHARE_WRITE,
                                                   IntPtr.Zero,
                                                   PInvokeWin32.OPEN_EXISTING,
                                                   PInvokeWin32.FILE_FLAG_BACKUP_SEMANTICS,
                                                   IntPtr.Zero);

            if (hRoot.ToInt32() != PInvokeWin32.INVALID_HANDLE_VALUE)
            {
                PInvokeWin32.BY_HANDLE_FILE_INFORMATION fi = new PInvokeWin32.BY_HANDLE_FILE_INFORMATION();
                bool bRtn = PInvokeWin32.GetFileInformationByHandle(hRoot, out fi);
                if (bRtn)
                {
                    UInt64 fileIndexHigh = (UInt64)fi.FileIndexHigh;
                    UInt64 indexRoot     = (fileIndexHigh << 32) | fi.FileIndexLow;

                    files.Add(indexRoot, new USNRecord
                    {
                        FRN          = indexRoot,
                        Name         = volumeName,
                        ParentFrn    = 0,
                        IsVolumeRoot = true,
                        IsFolder     = true,
                        VolumeName   = volumeName
                    });
                }
                else
                {
                    throw new IOException("GetFileInformationbyHandle() returned invalid handle",
                                          new Win32Exception(Marshal.GetLastWin32Error()));
                }
                PInvokeWin32.CloseHandle(hRoot);
            }
            else
            {
                throw new IOException("Unable to get root frn entry", new Win32Exception(Marshal.GetLastWin32Error()));
            }
        }
        internal static IntPtr GetVolumeJournalHandle(string volumeName)
        {
            string vol     = string.Concat("\\\\.\\", volumeName);
            IntPtr pVolume = PInvokeWin32.CreateFile(vol,
                                                     PInvokeWin32.GENERIC_READ | PInvokeWin32.GENERIC_WRITE,
                                                     PInvokeWin32.FILE_SHARE_READ | PInvokeWin32.FILE_SHARE_WRITE,
                                                     IntPtr.Zero,
                                                     PInvokeWin32.OPEN_EXISTING,
                                                     0,
                                                     IntPtr.Zero);

            if (pVolume.ToInt32() == PInvokeWin32.INVALID_HANDLE_VALUE)
            {
                throw new IOException(string.Format("CreateFile(\"{0}\") returned invalid handle", volumeName),
                                      new Win32Exception(Marshal.GetLastWin32Error()));
            }
            else
            {
                return(pVolume);
            }
        }