Windows NT WinLogon Notify

news/2024/7/8 8:48:18

参考文章:http://www.programlife.net/windows-nt-winlogon-notify.html

今天试了下 WinLogon Notify,怎么都不成功,原来是WIN7不支持该功能了?微笑

In Windows Vista and later, Winlogon notification packages are no longer supported. Winlogon notification packages are discussed in detail in the next section. After upgrading systems to Windows Vista, Winlogon will not load Winlogon notification packages. Organizations that are using Winlogon notification packages must either remove the functionality or create a new solution when deploying Windows Vista and later.

https://technet.microsoft.com/zh-cn/library/cc721961(v=ws.10).aspx

贴下原文:

在NT系列Windows操作系统中,恶意软件可以通过关联Winlogon特定的事件来使自身被启动,如Lock,Logoff,Logon,Shutdown,StartScreenSaver,StartShell,Startup,StopScreenSaver,Unlock等,这甚至能够使得恶意软件在安全模式下被加载。WinLogon的通知事件在注册表的位置是:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Notify

当WinLogon.exe产生一个事件通知的时候,Windows会检查注册表里面指定的DLL并调用DLL指定的导出函数。示例(当屏幕锁定时调用WinLogonDemo.dll导出的LockFun函数):

Windows Registry Editor Version 5.00
 
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Notify\Test]
@=""
"DLLName"="WinLogonDemo.dll"
"Asynchronous"=dword:00000001
"Impersonate"=dword:00000001
"Lock"="LockFun"

从Windows Vista开始,这项特性被取消了。可以通过注册一个服务来监听相应的事件(部分事件不支持),参见Using Service Control Manager (SCM) Notifications




http://www.niftyadmin.cn/n/4647551.html

相关文章

'ascii' codec can't encode characters in position 0-4: ordinal not in range(128)

参考文章:http://bbs.csdn.net/topics/391492220安装好django suit后,运行服务器:python manage.py runserver在表单页面输入中文,保存时,出现如下错误:UnicodeEncodeError at /admin/ModelApp/server/1/ch…

datatable 给某一列添加title属性

简单描述:采用datatable拼接的表格,没有title属性,嗯就是这个情况,直接上代码 代码: //js代码$("#toAdd").click("click",function () { var selectNodes $(#table2).DataTable().rows("…

编译libcef_dll_wrapper.lib

参考文章:http://blog.csdn.net/foruok/article/details/51614545 编译环境:VS2015 Win10 cmake-3.9.3-win64-x64 cef_binary_3.3163.1669.ge260cbb_windows32.tar.bz2 cef下载地址: http://opensource.spotify.com/cefbuilds/index.h…

cef注入js文件

思路很简单,在页面加载完成时,执行以下JS代码即可:var v document.createElement(script);v.srchttp://127.0.0.1:9526/cef.js;document.body.appendChild(v);cef.js文件内容:alert(hello cef.js); // 具体实现代码如下&#xff…

cef浏览12306网站不正常问题

cef版本:cef_binary_3.2623.1401.gb90a3be_windows32.7z使用cef时,浏览其它网站正常,唯独浏览器www.12306.cn时不正常,真是不可思议,cefclient.exe显示证书错误刚好在12306首页看到了这句话:为保障您顺畅购…

cef加载flash弹出黑框问题

参考文章: http://blog.csdn.net/zhuhongshu/article/details/77482985 黑框原因:使用cef时,如果没有使用sandbox,并且开启了flash插件,在第一次使用flash时会弹出个黑框,这是flash插件的bug。。。解决方法…

035:DTL常用过滤器(4)

join过滤器: 类似与 Python 中的 join ,将列表/元组/字符串用指定的字符进行拼接。示例代码如下: {{ value|join:"/" }} 如果 value 是等于 [a,b,c] ,那么以上代码将输出 a/b/c 。 length过滤器: 获取一个列…

Windows下nginx配置php

参考文章: http://www.cnblogs.com/huayangmeng/archive/2011/06/15/2081337.html环境:系统: windwos server 2012php: php-5.6.31-nts-Win32-VC11-x86.zipnginx: nginx-1.12.1.zipvc11 x86运行环境 -------------------------------------…