首页  编辑  

调用一个VxD

Tags: /超级猛料/Core.驱动,VxD,服务/   Date Created:
qmenu.vxd用于屏蔽Ctrl+alt+del。
var
  vxdhandle :thandle;
begin
  vxdhandle :=createfile('\\\\.\\qmenu.vxd',0,0,nil,0,file_flag_overlapped+file_flag_delete_on_close,null);
end;
VxdHandle=CreateFile("\\\\.\\QMENU.VXD",0,0,NULL,0,FILE_FLAG_OVERLAPPED|FILE_FLAG_DELETE_ON_CLOSE,NULL);
就可以了,这句执行后ctrl+atl+del已经失效了
在退出程序时一定要用CloseHandle(VxdHandle)
因为程序不会自动关闭VxdHandle
delphi5下面这样
var
vxdhandle :thandle;
begin
  vxdhandle :=createfile('\\\\.\\qmenu.vxd',0,0,nil,0,file_flag_overlapped+file_flag_delete_on_close,null);
end;

qmenu.vxd (10.2KB)