关于LockFile的参数问题(感觉MSDN写错了)
BOOL LockFile(
HANDLE hFile,
DWORD dwFileOffsetLow,
DWORD dwFileOffsetHigh,
DWORD nNumberOfBytesToLockLow,
DWORD nNumberOfBytesToLockHigh
);
dwFileOffsetLow
[in] Low-order word of the starting byte offset in the file where the lock should begin.
dwFileOffsetHigh
[in] High-order word of the starting byte offset in the file where the lock should begin.
nNumberOfBytesToLockLow
[in] Low-order word of the length of the byte range to be locked.
nNumberOfBytesToLockHigh
[in] High-order word of the length of the byte range to be locked.
里面说到的Low-order word 和High-order word 应该都是DWORD把,而不是word,word是16位的,如果真是word,那一个dword还分成两个word传进去?那不是自找麻烦吗?
还有很多函数都有类似的错误。
不知道是我理解错了,还是MSDN写错了?