我現在想用 VB 對注冊表進行操作(包括新建一個鍵﹐設置新值﹐刪除值以及刪除鍵)
希望各位老鳥能夠提供詳細的實現這些功能的代碼(包括引用API以及它們的聲明)
在線等待﹐答案合適立即給分!
謝謝﹗

解决方案 »

  1.   

    查msdn帮助用savesetting,deletesetting,getallsettings,getsetting几个函数
    The following example first uses the SaveSetting statement to make entries in the Windows registry (or .ini file on 16-bit Windows platforms) for the MyApp application, and then uses the DeleteSetting statement to remove them.' Place some settings in the registry.
    SaveSetting appname := "MyApp", section := "Startup", _
                key := "Top", setting := 75 
    SaveSetting "MyApp","Startup", "Left", 50 
    ' Remove section and all its settings from registry.
    DeleteSetting "MyApp", "Startup" 
      

  2.   

    這些數據是保存在哪個注冊表鍵中呢?
    是在HKEY_CURRENT_USER 嗎?