15 internal static class Kernel32
17 internal struct SECURITY_ATTRIBUTES
48 [DllImport(
"kernel32.dll", BestFitMapping =
false,
CharSet =
CharSet.Unicode, EntryPoint =
"CreateFileW", ExactSpelling =
true,
SetLastError =
true)]
static void SetLastError(int errorCode)
static unsafe SafeFileHandle CreateFile(string lpFileName, int dwDesiredAccess, FileShare dwShareMode, FileMode dwCreationDisposition, int dwFlagsAndAttributes)
@ FILE_ACTION_RENAMED_NEW_NAME
@ FILE_ACTION_RENAMED_OLD_NAME
static unsafe SafeFileHandle CreateFilePrivate(string lpFileName, int dwDesiredAccess, FileShare dwShareMode, SECURITY_ATTRIBUTES *lpSecurityAttributes, FileMode dwCreationDisposition, int dwFlagsAndAttributes, IntPtr hTemplateFile)
static unsafe bool ReadDirectoryChangesW(SafeFileHandle hDirectory, byte[] lpBuffer, uint nBufferLength, bool bWatchSubtree, uint dwNotifyFilter, uint *lpBytesReturned, NativeOverlapped *lpOverlapped, void *lpCompletionRoutine)
static string EnsureExtendedPrefixIfNeeded(string path)
IntPtr lpSecurityDescriptor
static readonly IntPtr Zero