Inheritance: SafeHandleZeroOrMinusOneIsInvalid
 internal static extern bool FindNextFile(
             SafeFindHandle hndFindFile,
             ref WIN32_FIND_DATA lpFindFileData);
 internal static extern bool FindNextFile(
             SafeFindHandle hndFindFile,
             [In, Out, MarshalAs(UnmanagedType.LPStruct)]
             WIN32_FIND_DATA lpFindFileData);
        static IEnumerable<SccFileSystemNode> DoGetDirectoryNodes(SccFileSystemNode result, SafeFindHandle findHandle)
        {
            string basePath = result._basePath;
            using (findHandle)
            {
                if (!IsDotPath(result))
                    yield return result;

                NativeMethods.WIN32_FIND_DATA data;
                while (NativeMethods.FindNextFileW(findHandle, out data))
                {
                    result = new SccFileSystemNode(basePath, data);
                    if (!IsDotPath(result))
                        yield return result;
                }
            }
        }
 public static extern bool FindNextFileW(SafeFindHandle hFindFile, out WIN32_FIND_DATA lpFindFileData);
Exemple #5
0
			public static extern bool FindNextFile(SafeFindHandle hFindFile, [In, Out] FindData lpFindFileData);
                internal FindResult(SafeFindHandle handle, WIN32_FIND_DATA findData, string basePath)
                {
                    this.BasePath = basePath;
                    this.FindHandle = handle;
                    this.FileName = findData.cFileName;
                    this.AlternateFileName = findData.cAlternateFileName;
                    this.Attributes = (FileAttributes)findData.dwFileAttributes;

                    this.Creation = GetDateTime(findData.ftCreationTime);
                    this.LastAccess = GetDateTime(findData.ftLastAccessTime);
                    this.LastWrite = GetDateTime(findData.ftLastWriteTime);
                    this.Length = HighLowToLong(findData.nFileSizeHigh, findData.nFileSizeLow);
                }
Exemple #7
0
			/// <summary>
			///   Constructor
			/// </summary>
			/// <param name="h"> Find handle returned by FindFirstFile. </param>
			/// <param name="p"> Path corresponding to find handle. </param>
			public SearchInfo(SafeFindHandle h, string p)
			{
				Handle = h;
				Path = p;
			}
 internal static bool FindNextFile(SafeFindHandle hndFindFile, [MarshalAs(UnmanagedType.LPStruct), In, Out] Win32Native.WIN32_FIND_DATA lpFindFileData);
Exemple #9
0
 internal static extern bool FindClose(SafeFindHandle hFindFile);
 internal static extern bool FindNextStreamW(
     SafeFindHandle hndFindFile,
     [In, Out, MarshalAs(UnmanagedType.LPStruct)]
     AlternateStreamNativeData lpFindStreamData);
Exemple #11
0
 public static bool FindNextFile(SafeFindHandle findHandle, out WIN32_FIND_DATA findData)
 {
     return NativeMethods.FindNextFile(findHandle, out findData);
 }