Автор работы: Пользователь скрыл имя, 05 Апреля 2011 в 18:19, курсовая работа
В данной курсовой работе необходимо разработать программу для поиска в свободных кластерах символьных последовательностей из заданного набора.
[DllImport("Kernel32.dll", SetLastError = true, CharSet = CharSet.Auto)]
public static extern UInt32 SetFilePointer(SafeFileHandle hFile, Int32 lDistanceToMove, out Int32 lpDistanceToMoveHigh, UInt32 dwMoveMethod);
[DllImport("Kernel32.dll", SetLastError = true, CharSet = CharSet.Auto)]
public static extern UInt32 GetLastError();
[DllImport("Kernel32.dll", SetLastError = true, CharSet = CharSet.Auto)]
public static extern bool ReadFile(SafeFileHandle hFile, byte[] lpBuffer, UInt32 NumberOfBytesToRead, out UInt32 pNumberOfBytesRead, IntPtr Overlapped);
[DllImport("Kernel32.dll", SetLastError = true, CharSet = CharSet.Auto)]
public static extern bool WriteFile(SafeFileHandle hFile, byte[] lpBuffer, UInt32 NumberOfBytesToWrite, out UInt32 pNumberOfBytesWrite, IntPtr Overlapped);
[DllImport("Kernel32.dll", SetLastError = true, CharSet = CharSet.Auto)]
public static extern bool CloseHandle(SafeFileHandle hFile);
[DllImport("kernel32.dll", SetLastError = true, CharSet = CharSet.Auto)]
public static extern UInt32 GetShortPathName(StringBuilder lpszLongPath, StringBuilder lpszShortPath, UInt32 cchBuffer);
[DllImport("kernel32.dll", SetLastError = true, CharSet = CharSet.Auto)]
public static extern bool BackupRead(SafeFileHandle hFile, byte[] lpBuffer, UInt32 nNumberOfBytesToRead, out UInt32 lpNumberOfBytesRead, bool bAbort, bool bProcessSecurity, out IntPtr lpContext);
public const UInt32 FILE_SHARE_READ = 0x00000001;
public const UInt32 FILE_SHARE_WRITE = 0x00000002;
public const UInt32 OPEN_EXISTING = 0x00000003;
public const UInt32 GENERIC_READ = 0x80000000;
public const UInt32 GENERIC_WRITE = 0x40000000;
public const UInt32 INVALID_SET_FILE_POINTER = 0xFFFFFFFF;
public const UInt32 FILE_FLAG_BACKUP_SEMANTICS = 0x2000000;
public const UInt32 FILE_FLAG_NO_BUFFERING = 0x20000000;
public const UInt32 FILE_FLAG_WRITE_THROUGH = 0x80000000;
}
}