Export (0) Print
Expand All

LsaUnregisterPolicyChangeNotification function

The LsaUnregisterPolicyChangeNotification function disables a previously registered notification event.

Syntax


NTSTATUS LsaUnregisterPolicyChangeNotification(
  _In_  POLICY_NOTIFICATION_INFORMATION_CLASS InformationClass,
  _In_  HANDLE NotificationEventHandle
);

Parameters

InformationClass [in]

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.

ValueMeaning
PolicyNotifyAuditEventsInformation

Auditing policy changes.

PolicyNotifyAccountDomainInformation

Account domain information changes.

PolicyNotifyServerRoleInformation

Server role changes.

PolicyNotifyDomainEfsInformation

EFS policy information changes.

PolicyNotifyDomainKerberosTicketInformation

Kerberos ticket policy information changes.

PolicyNotifyDnsDomainInformation

Domain Name System (DNS) information, name, or SID of the system's primary domain changes.

 

NotificationEventHandle [in]

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

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Ntsecapi.h

Library

Secur32.lib

DLL

Secur32.dll

See also

LsaRegisterPolicyChangeNotification

 

 

Community Additions

ADD
Show:
© 2014 Microsoft