Skip to content

Latest commit

 

History

History
157 lines (118 loc) · 4.65 KB

nf-fwpmu-fwpmcalloutsubscribechanges0.md

File metadata and controls

157 lines (118 loc) · 4.65 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:fwpmu.FwpmCalloutSubscribeChanges0
FwpmCalloutSubscribeChanges0 function (fwpmu.h)
Is used to request the delivery of notifications regarding changes in a particular callout.
FwpmCalloutSubscribeChanges0
FwpmCalloutSubscribeChanges0 function [Filtering]
fwp.fwpmcalloutsubscribechanges0_func
fwpmu/FwpmCalloutSubscribeChanges0
fwp\fwpmcalloutsubscribechanges0_func.htm
fwp
1460603c-6897-4559-b376-b87a6c2f4309
12/05/2018
FwpmCalloutSubscribeChanges0, FwpmCalloutSubscribeChanges0 function [Filtering], fwp.fwpmcalloutsubscribechanges0_func, fwpmu/FwpmCalloutSubscribeChanges0
fwpmu.h
Windows
Windows Vista [desktop apps only]
Windows Server 2008 [desktop apps only]
Fwpuclnt.lib
Fwpuclnt.dll
Windows
19H1
FwpmCalloutSubscribeChanges0
fwpmu/FwpmCalloutSubscribeChanges0
c++
APIRef
kbSyntax
DllExport
Fwpuclnt.dll
FwpmCalloutSubscribeChanges0

FwpmCalloutSubscribeChanges0 function

-description

The FwpmCalloutSubscribeChanges0 function is used to request the delivery of notifications regarding changes in a particular callout.

-parameters

-param engineHandle [in]

Type: HANDLE

Handle for an open session to the filter engine. Call FwpmEngineOpen0 to open a session to the filter engine.

-param subscription [in]

Type: FWPM_CALLOUT_SUBSCRIPTION0*

The notifications which will be delivered.

-param callback [in]

Type: FWPM_CALLOUT_CHANGE_CALLBACK0

Function pointer that will be invoked when a notification is ready for delivery.

-param context [in, optional]

Type: void*

Optional context pointer. This pointer is passed to the callback function along with details of the change.

-param changeHandle [out]

Type: HANDLE*

Handle to the newly created subscription.

-returns

Type: DWORD

Return code/value Description
ERROR_SUCCESS
0
The subscription was created successfully.
FWP_E_* error code
0x80320001—0x80320039
A Windows Filtering Platform (WFP) specific error. See WFP Error Codes for details.
RPC_* error code
0x80010001—0x80010122
Failure to communicate with the remote or local firewall engine.

-remarks

Subscribers do not receive notifications for changes made with the same session handle used to subscribe. This is because subscribers only need to see changes made by others since they already know which changes they made themselves.

This function cannot be called from within a transaction. It will fail with FWP_E_TXN_IN_PROGRESS. See Object Management for more information about transactions.

The caller needs FWPM_ACTRL_SUBSCRIBE access to the callout's container and FWPM_ACTRL_READ access to the callout. The subscriber will only get notifications for callouts to which it has FWPM_ACTRL_READ access. See Access Control for more information.

FwpmCalloutSubscribeChanges0 is a specific implementation of FwpmCalloutSubscribeChanges. See WFP Version-Independent Names and Targeting Specific Versions of Windows for more information.

-see-also

FWPM_CALLOUT_CHANGE_CALLBACK0

FWPM_CALLOUT_SUBSCRIPTION0

FwpmCalloutUnsubscribeChanges0