Example #1
0
        /// <summary>
        /// Gets a canonical version of the given handle's path.
        /// </summary>
        public static string GetFinalPathNameByHandle(
            SafeFileHandle fileHandle,
            GetFinalPathNameByHandleFlags flags = GetFinalPathNameByHandleFlags.FILE_NAME_NORMALIZED | GetFinalPathNameByHandleFlags.VOLUME_NAME_DOS)
        {
            var wrapper = new FinalPathNameByHandleWrapper {
                FileHandle = fileHandle, Flags = flags
            };

            return(BufferHelper.ApiInvoke(ref wrapper));
        }
Example #2
0
        /// <summary>
        /// Gets a canonical version of the given handle's path.
        /// </summary>
        public static string GetFinalPathNameByHandle(
            SafeFileHandle fileHandle,
            GetFinalPathNameByHandleFlags flags = GetFinalPathNameByHandleFlags.FileNameNormalized | GetFinalPathNameByHandleFlags.VolumeNameDos)
        {
            var wrapper = new FinalPathNameByHandleWrapper {
                FileHandle = fileHandle, Flags = flags
            };

            return(BufferHelper.ApiInvoke(ref wrapper));
        }