Esempio n. 1
0
 public static extern bool ReadFileEx(IntPtr hFile, [Out] byte[] lpBuffer,
                                      uint nNumberOfBytesToRead, [In] ref System.Threading.NativeOverlapped lpOverlapped,
                                      WriteFileCompletionDelegate lpCompletionRoutine);
Esempio n. 2
0
 public static extern bool WriteFileEx(SafeFileHandle hFile, byte *lpBuffer,
                                       uint nNumberOfBytesToWrite, NativeOverlapped *lpOverlapped,
                                       WriteFileCompletionDelegate lpCompletionRoutine);
Esempio n. 3
0
 public static extern bool WriteFileEx(SafeFileHandle hFile, byte* lpBuffer,
     uint nNumberOfBytesToWrite, NativeOverlapped* lpOverlapped,
     WriteFileCompletionDelegate lpCompletionRoutine);
Esempio n. 4
0
 public extern static bool WriteFileEx(
     IntPtr hFile,
     byte[] lpBuffer,
     uint nNumberOfBytesToWrite,
     [In] ref NativeOverlapped lpOverlapped,
     WriteFileCompletionDelegate lpCompletionRoutine);
 public StorageFile(string filePath)
 {
     CompletedDelegate = new WriteFileCompletionDelegate(Completed);
     _fileHandle       = OpenOrCreateFile(filePath);
     Header            = new FileHeader(this);
 }
Esempio n. 6
0
 public static extern bool WriteFileEx(SafeFileHandle hFile, byte[] lpBuffer,
                                       uint nNumberOfBytesToWrite, [In] ref System.Threading.NativeOverlapped lpOverlapped,
                                       WriteFileCompletionDelegate lpCompletionRoutine);