Desktop Functions: Smart Device Functions: 
 
 
  | 
Search Results for "ReadFile" in kernel32
    private static extern bool ReadFile(IntPtr handle, 
        // first read the data into an internal buffer since ReadFile cannot read into a buf at 
        bool f = ReadFile(_handle, buf, (uint)count, ref read, IntPtr.Zero); 
        throw new Win32Exception(Marshal.GetLastWin32Error(), "ReadFile failed"); 
   if (!Win32.ReadFile(handle, data, length, out len, IntPtr.Zero)) 
     FsctlReadFileUsnData = (EFileDevice.FileSystem << 16) | (58 << 2) | EMethod.Neither | (0 << 14), 3: FreeLibrary 
    private void ReadFile() { Warning! GetOverlappedResult writes to the address of the buffer specified in the ORIGINAL OPERATION (ie/ ReadFile or WriteFile). .NET may move the address of the buffer before GetOverlappedResult returns, resulting in a buffer overflow. Use AllocHGlobal and FreeHGlobal or otherwise ensure the buffer is pinned between the two calls. 5: ReadFile 
static extern bool ReadFileScatter(IntPtr hFile, FILE_SEGMENT_ELEMENT [] 
static extern unsafe int ReadFileScatter(IntPtr hFile,  6: ReadFileEx 
static extern bool ReadFileEx(IntPtr hFile, [Out] byte [] lpBuffer, ReadFileCompletionDelegate <- need to define this 8: WriteFile  |