楼主设置了StructLayout特性没有? [StructLayout(LayoutKind.Sequential)]
private struct OVERLAPPED
{
public int Internal;
public int InternalHigh;
public int Offset;
public int OffsetHigh;
public int hEvent;
}
private struct OVERLAPPED
{
public int Internal;
public int InternalHigh;
public int Offset;
public int OffsetHigh;
public int hEvent;
}
最后一个参数不应该是0吧,0代表FILE_BEGIN,表示从文件的开头开始;Value Meaning
FILE_BEGIN 0
The starting point is zero or the beginning of the file.FILE_CURRENT 1
The starting point is the current value of the file pointer.FILE_END 2
The starting point is the current end-of-file position.
from MSDN