回复 5# 3mile
谢谢!尽管不懂C语言,仿照例子还是写出来了
#include <WinAPI.au3>
#include <Timers.au3>
Local $sFile, $hFile, $sText, $nBytes, $tBuffer, $pointer
$sFile = @ScriptDir & '\1.zip'
$tBuffer = DllStructCreate("byte[100]")
Local $f = _Timer_Init()
$hFile = _WinAPI_CreateFile($sFile, 2, 2)
$pointer = _WinAPI_GetFileSizeEx($hFile) - 100
_WinAPI_SetFilePointer($hFile, $pointer)
_WinAPI_ReadFile($hFile, DllStructGetPtr($tBuffer), 100, $nBytes)
_WinAPI_CloseHandle($hFile)
$sText = StringTrimLeft(DllStructGetData($tBuffer, 1),2)
$s = _Timer_Diff($f)
MsgBox(0,'',$s)
ConsoleWrite($sText)
|