17 references to SafeFileHandle
mscorlib (3)
system\console.cs (2)
185SafeFileHandle safeIOHandle = new SafeFileHandle(ioHandle, false); 484SafeFileHandle sh = new SafeFileHandle(handle, false);
system\io\filestream.cs (1)
986: this(new SafeFileHandle(handle, ownsHandle), access, bufferSize, isAsync) {
System (9)
compmod\microsoft\win32\NativeMethods.cs (3)
124public SafeFileHandle hStdInput = new SafeFileHandle(IntPtr.Zero, false); 125public SafeFileHandle hStdOutput = new SafeFileHandle(IntPtr.Zero, false); 126public SafeFileHandle hStdError = new SafeFileHandle(IntPtr.Zero, false);
compmod\system\codedom\compiler\Executor.cs (1)
185si.hStdInput = new SafeFileHandle(UnsafeNativeMethods.GetStdHandle(NativeMethods.STD_INPUT_HANDLE), false);
services\io\system\io\FileSystemWatcher.cs (1)
988new SafeFileHandle(IntPtr.Zero, false) // file with attributes to copy
services\monitoring\system\diagnosticts\Process.cs (4)
134private static SafeFileHandle InvalidPipeHandle = new SafeFileHandle(IntPtr.Zero, false); 2013startupInfo.hStdInput = new SafeFileHandle(NativeMethods.GetStdHandle(NativeMethods.STD_INPUT_HANDLE), false); 2019startupInfo.hStdOutput = new SafeFileHandle(NativeMethods.GetStdHandle(NativeMethods.STD_OUTPUT_HANDLE), false); 2025startupInfo.hStdError = new SafeFileHandle(NativeMethods.GetStdHandle(NativeMethods.STD_ERROR_HANDLE), false);
System.Core (2)
System\IO\MemoryMappedFiles\MemoryMappedFile.cs (2)
300SafeMemoryMappedFileHandle handle = CreateCore(new SafeFileHandle(new IntPtr(-1), true), mapName, inheritability, 368handle = CreateOrOpenCore(new SafeFileHandle(new IntPtr(-1), true), mapName, inheritability,
System.Web (3)
Hosting\IIS7WorkerRequest.cs (1)
1076new Microsoft.Win32.SafeHandles.SafeFileHandle(
Hosting\ISAPIWorkerRequest.cs (1)
1440f = new FileStream(new Microsoft.Win32.SafeHandles.SafeFileHandle(handle,false), FileAccess.Read);
HttpResponse.cs (1)
2924f = new FileStream(new Microsoft.Win32.SafeHandles.SafeFileHandle(fileHandle,false), FileAccess.Read);