Implementation by adding a content in the registry
CString helperie :: guid () {cstring sguid; guid gguid = {0}; if (s_ok == :: cocreateguid (& gguid)) {sguid.format ("{% 08x-% 04x-% 04x-% 02x% 02x -% 02x% 02x% 02x% 02x% 02x% 02x} ", gguid.data1, gguid.data2, gguid.data3, gguid.data4 [0], gguid.data4 [1], gguid.data4 [2], gguid .Data4 [3], gguid.data4 [4], gguid.data4 [5], gguid.data4 [6], gguid.data4 [7]);} Return sguid;}
INT Helperie :: AddieButton (LPCSTR LPDO, LPCSTR LPBUTTENTEXT, LPCSTR LPCION, LPCSTR LPHOTICON, LPCSTR LPMENUTEXT, LPCSTR LPMENUSTATUSBAR) {INT NRET = 0;
CString sKeyName; sKeyName = "Software // Microsoft // Internet Explorer // Extensions"; sKeyName = "//"; sKeyName = guid (); CRegKey reg;! If (ERROR_SUCCESS = reg.Create (HKEY_LOCAL_MACHINE, sKeyName) Return NRET;
// fixed CLSID / unclear what is MS What Dong Reg.SetValue ("{1FBA04EE-3024-11D2-8F1F-0000F87ABD16}", "CLSID"); Reg.SetValue ("Yes", "default visible" );
// Tips if (null! = Lpbuttontext) Reg.setValue (LPButtonText, "ButtonText"); Else Reg.setValue ("AddieButton", "ButtonText");
// Icon IF (NULL! = LPICON) Reg.setValue (LPICON, ICON "); Else Reg.SetValue (", 2 "," icon "); //reg.setValue ("%SystemRoot% //system32/ /user32.dll, 1 "," icon "); //reg.setValue (" c: //test.ico "," icon ");
IF (NULL! = lPhoticon) Reg.setValue (LPhoticon, "Hoticon"); Else Reg.setValue (Path () ", 1", "Hoticon"); //rg.setValue("%SystemRoot%% ot ot/ 3s //User32.dll, 2 "," hoticon ");
// Content cstring strdo = LPDO; if (strdo.isempty ()) strdo = "http://www.google.com/"; cstring strdoup = strdo; strdoup.makeupper (); if (strdoup.right (4) ==_T (". Htm") || strdoup.right (5) ==_t (". Html")) Reg.setValue (strdo, "script"); Else Reg.setValue (strdo, "exec"); // Menu if (null! = LpMenutext) Reg.setValue (LPMENUTEXT, "Menutext"); Else Reg.SetValue ("Do What You Do | & Menutext", "Menutext");
IF (null! = lpmenusbar) Reg.setValue (LPMenustatusbar, "Menustatusbar"); Else Reg.SetValue ("Do What You Do | Menustatusbar", "Menustatusbar");
Reg.close ();
Return nret = 1;}
Source code compression package (collection)
Save the following to the UUE file can be used to use WinZip to open the use _ = _ _ = _ part 001 of 001 of file helperie.zip _ = _
Begin 666 Helperie.zipm4 $ l # !! 0``` (`" J # / 2 [2% [318 @ 0` # / `` `````2 & 5l <& 5r245% fp <* u5m3v_b1a0_ @ / 1wf'j5e = & "# 83 = c = ar (, 8 $% $ @ b # -nl8f0y] @! 6c <> rqx (hr7z; me2kmj6d3j> j? 2R-me6 [/ e2kut $, o_1! 59 / 9 @ L "& i6L628 = z; wWos> _ / ^ 6! 1! M $] hn]% jr ! BN6p'6q 7a! # I8qq9r`! H" / (9 $ #! Lw?>% 3% H4Z? L83R: = 23 ^ QM ',,. 3` @ x'yoz <":, n57edb / 5tx /! $' E`ZL 1 / CQ; 1> K8 / M5]., <] L88f'` * Mm n_v] x@8.%3L-5n*UFBUY4S: IV $: p! Ckwe)], jaj; *% ikx @ 1,; $ <"! Px! .
* @ '- @: o = / zm2% #, EX? _ [81xs'1 (TU-6 "f (> sxc% 6m h!;" N'It /; af @ vw4hs