这段代码我重写了不少于20遍,真他妈难!
#Include <Array.au3>
#include <Date.au3>
const $HKEY_LOCAL_MACHINE = 0x80000002;winreg.h
dim $hKey=$HKEY_LOCAL_MACHINE
$lpName=DllStructGetPtr(DllStructCreate('char'))
$lpcName=DllStructGetPtr(DllStructCreate('short'))
$lpClass=DllStructGetPtr(DllStructCreate('char'))
$lpcClass=DllStructGetPtr(DllStructCreate('short'))
$time=DllStructCreate('char')
$lpftLastWriteTime=DllStructGetPtr($time)
for $dwIndex= 0 to 5
$tt=dllcall('Advapi32.dll','long','RegEnumKeyEx','ptr',$hKey,'int',$dwIndex,'str',$lpName,'dword*',$lpcName,'byte',0,'str',$lpClass,'dword*',$lpcClass,'int',$lpftLastWriteTime)
_ArrayDisplay ($tt)
msgbox(0,'',_Date_Time_FileTimeToStr ($Time))
next
这是极限了,再写就吐血了
[ 本帖最后由 kakinkgb 于 2008-6-13 17:49 编辑 ] |