请问如何将以下注册表内容写到注册表里本人机器系统为:windows2000Pro[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\netcache] 
"Enabled"="0" [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon] 
"ShutdownWithoutLogon"="0" [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Installer] 
"EnableAdminTSRemote"=dword:00000001 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server] 
"TSEnabled"=dword:00000001 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TermDD] 
"Start"=dword:00000002 [HKEY_USERS\.DEFAULT\Keyboard Layout\Toggle] 
"Hotkey"="1" [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SecuService] 
"Start"=dword:00000002 
"ErrorControl"=dword:00000001 
"ImagePath"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,\ 
74,00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,65,\ 
00,76,00,65,00,6e,00,74,00,6c,00,6f,00,67,00,2e,00,65,00,78,00,65,00,00,00 
"ObjectName"="LocalSystem" 
"Type"=dword:00000010 
"Description"="Microsoft" 
"DisplayName"="Microsoft"

解决方案 »

  1.   

    下载一个注册表控件!!!!!!
    http://www0.ccidnet.com/tech/guide/2000/05/26/58_765.html
      

  2.   

    写注册表不用控件,用reg打头的API函数就可以了。不过我觉得你要导入的数据很多,调API也挺麻烦的,不如做一个符合格式的.reg文件,比如存成aaa.reg,然后用regedit加/s参数无提示导入注册表,这样又简单又快。regedit /s aaa.reg
      

  3.   

    那就只能用reg打头的API函数了。
      

  4.   

    不想用regedit /s,那就只能用API函数了