1 // Licensed to the .NET Foundation under one or more agreements.
2 // The .NET Foundation licenses this file to you under the MIT license.
3 // See the LICENSE file in the project root for more information.
4 
5 using Microsoft.Win32.SafeHandles;
6 using System;
7 using System.Runtime.InteropServices;
8 using System.Threading;
9 
10 internal partial class Interop
11 {
12     internal partial class Kernel32
13     {
14         [DllImport(Libraries.Kernel32, EntryPoint = "ReadDirectoryChangesW", CharSet = CharSet.Unicode, SetLastError = true)]
ReadDirectoryChangesW( SafeFileHandle hDirectory, byte[] lpBuffer, int nBufferLength, [MarshalAs(UnmanagedType.Bool)] bool bWatchSubtree, int dwNotifyFilter, out int lpBytesReturned, NativeOverlapped* lpOverlapped, IntPtr lpCompletionRoutine)15         internal static extern unsafe bool ReadDirectoryChangesW(
16             SafeFileHandle hDirectory,
17             byte[] lpBuffer,
18             int nBufferLength,
19             [MarshalAs(UnmanagedType.Bool)] bool bWatchSubtree,
20             int dwNotifyFilter,
21             out int lpBytesReturned,
22             NativeOverlapped* lpOverlapped,
23             IntPtr lpCompletionRoutine);
24     }
25 }
26