Changeset 810
- Timestamp:
- 12/12/2008 11:20:06 AM (4 years ago)
- File:
-
- 1 edited
-
branches/eraser6/Util/File.cs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eraser6/Util/File.cs
r611 r810 177 177 if (SfcIsFileProtected(IntPtr.Zero, filePath)) 178 178 return true; 179 else if (Marshal.GetLastWin32Error() == 2) //ERROR_FILE_NOT_FOUND 180 return false; 181 182 throw new Win32Exception("Unknown SfcIsFileProtected error."); 179 180 switch (Marshal.GetLastWin32Error()) 181 { 182 case 0: //ERROR_SUCCESS 183 case 2: //ERROR_FILE_NOT_FOUND 184 return false; 185 186 default: 187 throw new Win32Exception("Unknown SfcIsFileProtected error."); 188 } 183 189 } 184 190
Note: See TracChangeset
for help on using the changeset viewer.
