乡下人产国偷v产偷v自拍,国产午夜片在线观看,婷婷成人亚洲综合国产麻豆,久久综合给合久久狠狠狠9

  • <output id="e9wm2"></output>
    <s id="e9wm2"><nobr id="e9wm2"><ins id="e9wm2"></ins></nobr></s>

    • 分享

      Kendy--DELPHI加注冊表自啟動的最簡單代碼

       intruder 2005-12-12
      [Delphi]DELPHI加注冊表自啟動的最簡單代碼
      作者:jondy   來源:jondy‘s Blog(http://zhack.blog.163.com/)

      [感謝jondy朋友的熱心!把他更新后的代碼貼上來,這個更適合寫小軟件]

      program  exe;
      uses
       windows;
      // 注冊表新建鍵值的函數(shù)
      procedure CreateKey(const RootKey : HKey; Key, ValueName, Value: string);
      var
        Handle: HKey;
        Res,
        Disposition: Integer;
      begin
        Res := RegCreateKeyEx(RootKey, PChar(Key), 0, ‘‘,
          REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, nil, Handle, @Disposition);
        if Res = 0 then begin
          Res := RegSetValueEx(Handle, PChar(ValueName), 0,
            REG_SZ, PChar(Value), Length(Value) + 1);
          RegCloseKey(Handle)
        end;
      end;
      begin      //  跟位置名、文件路徑
       CreateKey(HKEY_LOCAL_MACHINE,‘SoftWare\Microsoft\Windows\CurrentVersion\Run‘,‘AutoRun‘,‘C:\WINDOWS\regedit.exe‘);
      end.
      //下面是以前的代碼,由于引用了registry單元,程序會增大40K左右
      uses
      registry; var reg:tregistry; begin reg:=tregistry.create; reg.rootkey:=HKEY_LOCAL_MACHINE; reg.openkey(‘SOFTWARE\Microsoft\Windows\CurrentVersion\Run‘,true); reg.WriteString(‘ScanRegistry‘,‘mir47.EXE‘); reg.closekey; reg.free; end.

        本站是提供個人知識管理的網絡存儲空間,所有內容均由用戶發(fā)布,不代表本站觀點。請注意甄別內容中的聯(lián)系方式、誘導購買等信息,謹防詐騙。如發(fā)現(xiàn)有害或侵權內容,請點擊一鍵舉報。
        轉藏 分享 獻花(0

        0條評論

        發(fā)表

        請遵守用戶 評論公約

        類似文章 更多