求教:使用ReadFile无法读出数据,请看下有什么问题?
buffer db "F:\\3d\\6\\存档\\ren.hwb",0wenjian HANDLE ?
ff dd 41088d dup (?)
hwb proc
invoke CreateFile,ADDR buffer,\
GENERIC_READ,\
FILE_SHARE_READ,\
0,\
OPEN_EXISTING,\
FILE_ATTRIBUTE_ARCHIVE,\
0
mov wenjian,eax
cmp eax,INVALID_HANDLE_VALUE
jz @F
lea eax,ff
invoke SetFilePointer,wenjian,0,0,FILE_BEGIN
invoke ReadFile,wenjian,ff,164352d,0,0
invoke CloseHandle,wenjian
@@:
ret
hwb endp