当前位置:首页 » 软件开发
开发技术指南» 文章正文
    引言: 在一些碰到过的多媒体软件编制过程中通常需要彻底屏蔽任务条,通常的办法是调用ShowWindow(h,SW_hide)来隐藏任务条,但是不能屏蔽开始菜单,通过键盘的win功能键还是可以打开开始菜单,所以配合键盘钩子,来屏蔽开始菜单。
 

 

 ·create a menu item into the delphi menu    »显示摘要«
    摘要: {....} uses toolsapi, menus; {....} var item: tmenuitem; begin {get reference to delphis mainmenu. you can handle it like a common tmainmenu} with (borlandideservices as intaservices).getmainmenu do ......
 ·shutdown reboot logoff windows 98/me/xp    »显示摘要«
    摘要: {1.} function myexitwindows(rebootparam: longword): boolean; var ttokenhd: thandle; ttokenpvg: ttokenprivileges; cbtpprevious: dword; rttokenpvg: ttokenprivileges; pcbtppreviousrequired: dword; tpres......


通过api和键盘钩子彻底屏蔽任务栏和开始菜单
 

【程序编程相关:Delphi2005(DiamondBa

【推荐阅读:如何显示子线程的当前状态

  在一些碰到过的多媒体软件编制过程中通常需要彻底屏蔽任务条,通常的办法是调用showwindow(h,sw_hide)来隐藏任务条,但是不能屏蔽开始菜单,通过键盘的win功能键还是可以打开开始菜单,所以配合键盘钩子,来屏蔽开始菜单. 【扩展信息:IntToHex(10-16进制的转换)

library hide;

{ important note about dll memory management: sharemem must be the

first unit in your librarys uses clause and your projects (select

project-view source) uses clause if your dll exports any procedures or

functions that pass strings as parameters or function results. this

applies to all strings passed to and from your dll--even those that

are nested in records and classes. sharemem is the interface unit to

the borlndmm.dll shared memory manager, which must be deployed along


...   下一页
 ·delphi中动态调用dll    »显示摘要«
    摘要: 显式例子: unit main; interface uses windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs, stdctrls, extctrls, grids, dbgrids, db, dbtables, dbctrls; type......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE