Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
LsaUnregisterPolicyChangeNotification function (ntsecapi.h)
The LsaUnregisterPolicyChangeNotification function disables a previously registered notification event.
Syntax
NTSTATUS LsaUnregisterPolicyChangeNotification(
[in] POLICY_NOTIFICATION_INFORMATION_CLASS InformationClass,
[in] HANDLE NotificationEventHandle
);
Parameters
[in] InformationClass
A POLICY_NOTIFICATION_INFORMATION_CLASS value that specifies the policy changes that your application will stop receiving notifications for. Specify one of the following values.
| Value | Meaning |
|---|---|
|
Auditing policy changes. |
|
Account domain information changes. |
|
Server role changes. |
|
EFS policy information changes. |
|
Kerberos ticket policy information changes. |
|
Domain Name System (DNS) information, name, or SID of the system's primary domain changes. |
[in] NotificationEventHandle
A handle to the notification event to unregister.
Return value
If the function succeeds, the return value is STATUS_SUCCESS.
If the function fails, the return value is an NTSTATUS code. For more information, see LSA Policy Function Return Values.
You can use the LsaNtStatusToWinError function to convert the NTSTATUS code to a Windows error code.
Remarks
For an example that demonstrates calling this function see Receiving Policy Change Events.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows XP [desktop apps only] |
| Minimum supported server | Windows Server 2003 [desktop apps only] |
| Target Platform | Windows |
| Header | ntsecapi.h |
| Library | Secur32.lib |
| DLL | Secur32.dll |
See also
Feedback
Was this page helpful?
