28 references to WindowsNative
Microsoft.Build.Utilities.Core (28)
WindowsFileSystem.cs (27)
108!(result.Status == WindowsNative.EnumerateDirectoryStatus.Success ||
109result.Status == WindowsNative.EnumerateDirectoryStatus.SearchDirectoryNotFound))
117private static WindowsNative.EnumerateDirectoryResult CustomEnumerateDirectoryEntries(
126WindowsNative.Win32FindData findResult;
127using (var findHandle = WindowsNative.FindFirstFileW(searchDirectoryPath, out findResult))
132Debug.Assert(hr != WindowsNative.ErrorFileNotFound);
133WindowsNative.EnumerateDirectoryStatus findHandleOpenStatus = hr switch
135WindowsNative.ErrorFileNotFound => WindowsNative.EnumerateDirectoryStatus.SearchDirectoryNotFound,
136WindowsNative.ErrorPathNotFound => WindowsNative.EnumerateDirectoryStatus.SearchDirectoryNotFound,
137WindowsNative.ErrorDirectory => WindowsNative.EnumerateDirectoryStatus.CannotEnumerateFile,
138WindowsNative.ErrorAccessDenied => WindowsNative.EnumerateDirectoryStatus.AccessDenied,
139_ => WindowsNative.EnumerateDirectoryStatus.UnknownError,
141return new WindowsNative.EnumerateDirectoryResult(directoryPath, findHandleOpenStatus, hr);
155WindowsNative.PathMatchSpecExW(findResult.CFileName, pattern, WindowsNative.DwFlags.PmsfNormal) ==
156WindowsNative.ErrorSuccess)
182if (!WindowsNative.FindNextFileW(findHandle, out findResult))
185if (hr == WindowsNative.ErrorNoMoreFiles)
188return new WindowsNative.EnumerateDirectoryResult(
190WindowsNative.EnumerateDirectoryStatus.Success,
194Debug.Assert(hr != WindowsNative.ErrorSuccess);
195return new WindowsNative.EnumerateDirectoryResult(
197WindowsNative.EnumerateDirectoryStatus.UnknownError,