Lines Matching refs:UnsafeNativeMethods

25 using UnsafeNativeMethods = Microsoft.Win32.UnsafeNativeMethods;  typedef
151 …bool isInvalidPath = errorCode == UnsafeNativeMethods.ERROR_INVALID_NAME || errorCode == UnsafeNat… in WinIOError()
155 case UnsafeNativeMethods.ERROR_FILE_NOT_FOUND: in WinIOError()
163 case UnsafeNativeMethods.ERROR_PATH_NOT_FOUND: in WinIOError()
171 case UnsafeNativeMethods.ERROR_ACCESS_DENIED: in WinIOError()
179 case UnsafeNativeMethods.ERROR_ALREADY_EXISTS: in WinIOError()
183 …ow new IOException(SR.GetString(SR.IO_IO_AlreadyExists_Name, str), UnsafeNativeMethods.MakeHRFromE… in WinIOError()
185 case UnsafeNativeMethods.ERROR_FILENAME_EXCED_RANGE: in WinIOError()
188 case UnsafeNativeMethods.ERROR_INVALID_DRIVE: in WinIOError()
191 case UnsafeNativeMethods.ERROR_INVALID_PARAMETER: in WinIOError()
192 …throw new IOException(UnsafeNativeMethods.GetMessage(errorCode), UnsafeNativeMethods.MakeHRFromErr… in WinIOError()
194 case UnsafeNativeMethods.ERROR_SHARING_VIOLATION: in WinIOError()
196 …ew IOException(SR.GetString(SR.IO_IO_SharingViolation_NoFileName), UnsafeNativeMethods.MakeHRFromE… in WinIOError()
199 …new IOException(SR.GetString(SR.IO_IO_SharingViolation_File, str), UnsafeNativeMethods.MakeHRFromE… in WinIOError()
202 case UnsafeNativeMethods.ERROR_FILE_EXISTS: in WinIOError()
206 …Info.CurrentCulture, SR.GetString(SR.IO_IO_FileExists_Name), str), UnsafeNativeMethods.MakeHRFromE… in WinIOError()
208 case UnsafeNativeMethods.ERROR_OPERATION_ABORTED: in WinIOError()
212 …throw new IOException(UnsafeNativeMethods.GetMessage(errorCode), UnsafeNativeMethods.MakeHRFromErr… in WinIOError()