大网数据广告活动
账户与安全

Registry Entries (Authentication)

· 52CE 我爱测

Explains the registry entries for Winlogon events.

In order for your package to receive event notifications from Winlogon, you must provide the name of the package, the names of the event handler functions in the package, the DLL responsible for implementing the package, and information about whether the DLL supports asynchronous events and impersonation.

You should create the notification package registry key as a subkey of

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

The name of the key is usually the same as the name of the DLL; however, this is not mandatory. The name chosen for your package must not conflict with the names of other installed notification packages.

In the Notify registry key, create the following registry values if there is a relevant event handler function in your package.

Value name [data type] Description
Asynchronous[REG_DWORD] Indicates whether the package can handle events asynchronously. If this value is set to 1, Winlogon calls the package functions in a separate thread. Otherwise, it does not.
DllName[REG_EXPAND_SZ] Name of the DLL that implements the notification package, for example: "Notify.dll".
Impersonate[REG_DWORD] Indicates whether Winlogon should impersonate the security context of the logged-on user when it calls the notification package functions. If this value is set to 1, Winlogon uses impersonation. Otherwise, it does not.
Lock[REG_SZ] Name of the function which handles desktop lock events, for example: "WLEventLock".
Logoff[REG_SZ] Name of the function which handles logoff events, for example: "WLEventLogoff".
Logon[REG_SZ] Name of the function which handles logon events, for example: "WLEventLogon".
Shutdown[REG_SZ] Name of the function which handles shutdown events, for example: "WLEventShutdown".
SmartCardLogonNotify[DWORD] Indicates whether Winlogon should generate a notification for logon events from smart cards. If this value is set to 1, Winlogon allows smart card notifications. Otherwise, it does not.
StartScreenSaver[REG_SZ] Name of the function that handles screen saver start events, for example: "WLEventStartScreenSaver".
StartShell[REG_SZ] Name of the function that handles shell start events, for example: "WLEventStartShell". A shell start event occurs after the user has logged on but before the desktop appears. It differs from the logon event in that the user's security context has been established, and resources such as network connections are available.
Startup[REG_SZ] Name of the function that handles system startup events, for example: "WLEventStartup".
StopScreenSaver[REG_SZ] Name of the function that handles screen saver stop events, for example: "WLEventStopScreenSaver".
Unlock[REG_SZ] Name of the function that handles desktop unlock events, for example: "WLEventUnlock".

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 05/31/2018
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。