第1个回答 推荐于2016-02-07
C++中ReadFile的结构如下:
BOOL WINAPI ReadFile(
_In_ HANDLE hFile,
_Out_ LPVOID lpBuffer,
_In_ DWORD nNumberOfBytesToRead,
_Out_opt_ LPDWORD lpNumberOfBytesRead,
_Inout_opt_ LPOVERLAPPED lpOverlapped
);
前面几个参数就不用介绍了,MSDN中说:If lpOverlapped is not NULL, the read operation starts at the offset that is specified in the OVERLAPPED structure and ReadFile does not return until the read operation is complete。因此可以在最后一个参数中设置偏移量,从特定位置读取文件……本回答被提问者采纳