用VC 對IE瀏覽器進行高階操作

2021-04-20 19:15:51 字數 1640 閱讀 8918

————————————————以下為程式**—————————————

------------writereg()函式的主要內容:-----------

void ctestview::writereg()

//建立工具選單

lpsubkey = "software//microsoft//internet explorer//extensions//";

if (error_success == regcreatekeyex(hkey_local_machine, lpsubkey, 0, "", reg_option_non_volatile, key_all_access,null,&phkresult,0))

";regsetvalueex(hresult, "clsid", 0, reg_sz, (const unsigned char *)((lpcstr)type), type.getlength());

type="&mytest";  //menutext

regsetvalueex( hresult, "menutext", 0, reg_sz, (const unsigned char *)((lpcstr)type), type.getlength());

type="我們自己的測試程式";  //menustatusbar

regsetvalueex( hresult, "menustatusbar", 0, reg_sz, (const unsigned char *)((lpcstr)type), type.getlength()); 0

regsetvalueex( hresult, "exec", 0, reg_sz, (const unsigned char *)((lpcstr)type), type.getlength());

//工具欄按鈕

type="mytest";  //buttontext

regsetvalueex( hresult, "buttontext", 0, reg_sz, (const unsigned char *)((lpcstr)type), type.getlength());

regsetvalueex( hresult, "icon", 0, reg_sz, (const unsigned char *)((lpcstr)type), type.getlength());

regsetvalueex( hresult, "hoticon", 0, reg_sz, (const unsigned char *)((lpcstr)type), type.getlength());

type="yes";  //default visible

regsetvalueex( hresult, "default visible", 0, reg_sz, (const unsigned char *)((lpcstr)type), type.getlength());

regclosekey( hresult ); }}

----------------myself.htm---------------

----------------text.exe----------------

void ciecontext::addcontext()

--------------修改後的myself.htm------------

VC改造IE瀏覽器

自從微軟 了ie以後,網蟲們便注定了要永遠地面對那一成不變的微軟模式 視窗 按鈕和.microsoft.從使用者的角度,我們希望能夠擁有自己特色的ie 從商業運作角度,商人希望無處不有他們公司的宣傳資訊,希望ie一經執行便可自動進入他們的 下面筆者介紹一種用vc6程式設計,通過修改登錄檔來改變ie面...

用CSS如何判斷IE瀏覽器版本

之前只是針對所有的ie瀏覽器 要避掉ie8的話就得 lt在此作小於用,也就是小於ie8的版本都能識別。或者 lte在此作小於及等於用,也就是小於及等於ie7的版本能識別。或者 在此單獨避掉ie8版本。在網上找了以下 測試了下有幾個不符合 1.除ie外都可識別 2.3.4.5.6.7.8.9.10.1...

phpVirtualBox 用瀏覽器操作虛擬機器

摘自 乙個開源的,virtualbox的使用者介面,用php編寫的ajax實現。作為乙個現代的web介面,它允許你遠端訪問和控制virtualbox的例項。其的verbage和一些它的 是基於 不活動 vboxweb專案。phpvirtualbox被設計為允許使用者在一具無頭的環境管理的virtua...