c - How can I disable the Start button (but not the Taskbar) on Windows 7? -


on windows xp, possible disable start button following code:

htray = findwindow (text("shell_traywnd"), null); if (htray) {     hstartbutton = findwindowex(htray, null, text("button"), null);     if (hstartbutton) showwindow(hstartbutton, false); } 

for public-access computer configuration, need able on windows 7. start button must disabled (not hidden), , remainder of taskbar must still visible , usable. hiding taskbar along start button not option. running full-screen not option. using "start killer" won't work because doesn't disable start button, hides (users can still use hotkeys pull start menu).

i have tried method uses findwindowex 0xc017 third parameter , tries disable window. doesn't work. method works if whole taskbar disabled first. need method only disables start menu, code reproduced above in xp.

any appreciated.

the "correct" version windows 7 shown below:

hwnd hstartbtn = findwindowex(null, null, makeintatom(0xc017), text("start")); if (hstartbtn != null) {     showwindow(hstartbtn, false); } 

however, disables button, meaning won't glow or other effects hovering mouse cursor on it. you can still click button region on taskbar open menu. apparently, click handler implemented in taskbar window itself, not part of separate start button. that's why have disable entire taskbar first, , consequently why of solutions you've found online precisely that.

however, looks "start killer" application has functions disable common hotkeys trigger start menu, namely ctrl+esc , windows key. you'll find options launching software, right-clicking on icon in taskbar, , selecting "options" menu. can edit registry disable windows key, described in this knowledge base article. if wanted implement same functionality through code, solution low-level keyboard hook trapped keypress events responsible , discarded them.

undocumented hacks 1 given breaking newer versions of windows. imagine raymond chen chuckle , "i told so". hacking windows interface fool's errand. or, several times in question, "is not option".


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -