Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
LSA_REGISTER_NOTIFICATION callback function (ntsecpkg.h)
Provides a mechanism whereby the security package is notified. Notification can occur at fixed intervals, when an event object is signaled, or during certain system events.
Syntax
LSA_REGISTER_NOTIFICATION LsaRegisterNotification;
HANDLE LsaRegisterNotification(
[in] SEC_THREAD_START StartFunction,
[in] PVOID Parameter,
[in] ULONG NotificationType,
[in] ULONG NotificationClass,
[in] ULONG NotificationFlags,
[in] ULONG IntervalMinutes,
[in] HANDLE WaitEvent
)
{...}
Parameters
[in] StartFunction
The function that is called to accept notification.
[in] Parameter
The argument of the function specified in the StartFunction parameter.
[in] NotificationType
Specifies the type of notification. The following table lists the valid values.
| Value | Meaning |
|---|---|
|
Notify at fixed intervals. Use the IntervalMinutes parameter to indicate the interval length. |
|
Notify when the event handle specified by the WaitEvent parameter is signaled. |
|
Notify when there is a change in the machine's domain or installation type. |
|
Notify when a security event takes place. Use the NotificationClass parameter to specify the event of interest. |
|
Notify immediately. This value implies NOTIFIER_FLAG_ONE_SHOT. |
[in] NotificationClass
Specifies the class of events that generate notifications. Specify zero unless the NotificationType parameter is set to NOTIFIER_TYPE_NOTIFY_EVENT.
| Value | Meaning |
|---|---|
|
A package was loaded, or a new package was selected as the preferred package. For more information, see Remarks. |
|
Reserved for internal use. |
|
Reserved for internal use. |
[in] NotificationFlags
Specifies flags that control notification behavior.
| Value | Meaning |
|---|---|
|
Wait for notification using a new thread. |
|
Notify only once. |
|
The IntervalMinutes parameter specifies seconds. |
[in] IntervalMinutes
Specifies the time delay between notifications.
[in] WaitEvent
Optional. Handle to an event object. When the object is signaled, the notification occurs. This value is used in conjunction with the NotificationType value NOTIFIER_TYPE_HANDLE_WAIT.
Return value
If the function succeeds, the return value is a handle to the notification.
If the function fails, the return value is NULL.
Remarks
If you specify the NOTIFY_CLASS_PACKAGE_CHANGE value for the NotificationClass parameter, the following values represent valid changes.
| Value | Description |
|---|---|
| SECPKG_PACKAGE_CHANGE_LOAD | A package was loaded. |
| SECPKG_PACKAGE_CHANGE_UNLOAD | A package was unloaded. |
| SECPKG_PACKAGE_CHANGE_SELECT | A new package became the preferred security package. |
A pointer to the RegisterNotification function is available in the LSA_SECPKG_FUNCTION_TABLE structure received by the SpInitialize function.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows XP [desktop apps only] |
| Minimum supported server | Windows Server 2003 [desktop apps only] |
| Target Platform | Windows |
| Header | ntsecpkg.h |
See also
Feedback
Was this page helpful?
