Пример #1
0
 public static extern int WriteFileGather(SafeFileHandle hFile, [In] ref FILE_SEGMENT_ELEMENT[] aSegmentArray,
                                          uint nNumberOfBytesToWrite, IntPtr lpReserved, ref OVERLAPPED lpOverlapped);
Пример #2
0
 public static extern int WriteFileEx(SafeFileHandle hFile, IntPtr lpBuffer, uint nNumberOfBytesToWrite,
                                      ref OVERLAPPED lpOverlapped, FileIOCompletionRoutine lpCompletionRoutine);
Пример #3
0
 public static extern bool ReadFile(SafeFileHandle hFile,
                                    IntPtr lpBuffer, uint nNumberOfBytesToRead,
                                    IntPtr lpNumberOfBytesRead, ref OVERLAPPED lpOverlapped);
Пример #4
0
 public static extern Int32 ReadFile(SafeFileHandle hFile,
                                     ref Byte lpBuffer, Int32 nNumberOfBytesToRead,
                                     ref Int32 lpNumberOfBytesRead,
                                     ref OVERLAPPED lpOverlapped);
Пример #5
0
 public static extern bool UnlockFileEx(SafeFileHandle hFile, uint dwReserved, uint nNumberOfBytesToUnlockLow, uint nNumberOfBytesToUnlockHigh, ref OVERLAPPED lpOverlapped);