📄 _setposf.asm
字号:
include ..\cwlib.inc
scode
;-------------------------------------------------------------------------
;
;Set the file pointer position for a file.
;
;Calling:
;
;SetFilePointer(handle,method,position);
;
;On Entry:
;
;handle - file handle.
;method - method to use.
;position - position to set.
;
;Methods are:
;
;0 - Absolute offset from start.
;1 - signed offset from current position.
;2 - signed offset from end of file.
;
;On Exit:
;
;EAX - new absolute offset from start of file.
;
_SetFilePointer proc syscall handle:dword, method:dword, position:dword
public _SetFilePointer
pushm ebx,ecx
mov eax,method
mov ebx,handle
mov ecx,position
call SetFilePointer
mov eax,ecx
popm ebx,ecx
ret
_SetFilePointer endp
efile
end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -