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