RtlSubscribeWnfStateChangeNotification - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _NTRTL_H
//
// WNF (Windows Notification Facility)
//
#if (PHNT_VERSION >= PHNT_WINDOWS_10)

/**
 * The RtlSubscribeWnfStateChangeNotification routine subscribes to change notifications for a WNF state name.
 *
 * \param SubscriptionHandle Receives the subscription handle.
 * \param StateName The WNF state name to subscribe to.
 * \param ChangeStamp The change stamp from which to begin receiving notifications.
 * \param Callback The callback invoked when the state changes.
 * \param CallbackContext An optional context value passed to the callback.
 * \param TypeId An optional type identifier describing the state data.
 * \param SerializationGroup An optional serialization group for ordering callbacks.
 * \param Flags Flags controlling the subscription.
 * \return NTSTATUS Successful or errant status.
 */
NTSYSAPI
NTSTATUS
NTAPI
RtlSubscribeWnfStateChangeNotification(
    _Out_ PWNF_USER_SUBSCRIPTION* SubscriptionHandle,
    _In_ WNF_STATE_NAME StateName,
    _In_ WNF_CHANGE_STAMP ChangeStamp,
    _In_ PWNF_USER_CALLBACK Callback,
    _In_opt_ PVOID CallbackContext,
    _In_opt_ PCWNF_TYPE_ID TypeId,
    _In_opt_ ULONG SerializationGroup,
    _In_ ULONG Flags
    );

#endif
#endif

View code on GitHub

NtDoc

No description available.