diff options
| author | J M Rossy <[email protected]> | 2015-07-29 15:40:09 -0700 |
|---|---|---|
| committer | J M Rossy <[email protected]> | 2015-07-29 16:34:40 -0700 |
| commit | 5d61a4a79a1e96dc5d9af1e5e712c84507307544 (patch) | |
| tree | 49ed270893578cd18758b74ffcca16dc7ab948d6 /network/trans/WFPSampler/sys/NotifyFunctions_FlowDelete.cpp | |
| parent | 5d41613e26e147d2300c786bb2b34cb4b4067a25 (diff) | |
Samples update for public Windows 10 release
Fix #2 Enabling WPP Recorder in Sensors Samples causes errors
Fix #4 Add back fixed KMDOD sample
Add new BarcodeScanner sample in pos folder
Add new MagneticStripeReader sample in pos folder
Add new SynpaticsTouch sample in input folder
Add new Power Engine Plugin sample in pofx folder
Add new DeviceMft sample in avstream folder
Add new AvsCamera sample in root
Add new SimBatt sample in root
Add other pre-existing samples not yet released for Win10
Diffstat (limited to 'network/trans/WFPSampler/sys/NotifyFunctions_FlowDelete.cpp')
| -rw-r--r-- | network/trans/WFPSampler/sys/NotifyFunctions_FlowDelete.cpp | 95 |
1 files changed, 95 insertions, 0 deletions
diff --git a/network/trans/WFPSampler/sys/NotifyFunctions_FlowDelete.cpp b/network/trans/WFPSampler/sys/NotifyFunctions_FlowDelete.cpp new file mode 100644 index 00000000..bf1506ce --- /dev/null +++ b/network/trans/WFPSampler/sys/NotifyFunctions_FlowDelete.cpp @@ -0,0 +1,95 @@ +//////////////////////////////////////////////////////////////////////////////////////////////////// +// +// Copyright (c) 2014 Microsoft Corporation. All Rights Reserved. +// +// Module Name: +// NotifyFunctions_FlowDelete.cpp +// +// Abstract: +// This module contains WFP Flow Delete Notification functions. +// +// Naming Convention: +// +// <Module><Scenario> +// +// i.e. +// +// FlowDeleteNotification +// +// <Module> +// FlowDelete - Function is an FWPS_CALLOUT_FLOW_DELETE_NOTIFY_FN +// <Scenario> +// Notification - Function demonstates use of the simple notifications +// +// Author: +// Dusty Harper (DHarper) +// +// Revision History: +// +// [ Month ][Day] [Year] - [Revision]-[ Comments ] +// December 13, 2013 - 1.1 - Creation +// +//////////////////////////////////////////////////////////////////////////////////////////////////// + +#include "Framework_WFPSamplerCalloutDriver.h" /// . +#include "NotifyFunctions_FlowDelete.tmh" /// $(OBJ_PATH)\$(O)\ + +_IRQL_requires_min_(PASSIVE_LEVEL) +_IRQL_requires_max_(DISPATCH_LEVEL) +_IRQL_requires_same_ +VOID NTAPI NotifyFlowDeleteNotification(_In_ UINT16 layerID, + _In_ UINT32 calloutID, + _In_ UINT64 flowContext) +{ + DbgPrintEx(DPFLTR_IHVNETWORK_ID, + DPFLTR_INFO_LEVEL, + " ---> NotifyFlowDeleteNotification() [Layer: %s][CalloutID: %#I64x][FlowContext: %#I64x]", + KrnlHlprFwpsLayerIDToString(layerID), + calloutID, + flowContext); + + UNREFERENCED_PARAMETER(calloutID); + + if(flowContext) + { + FLOW_CONTEXT* pFlowContext = (FLOW_CONTEXT*)flowContext; + + if(layerID == FWPS_LAYER_STREAM_V4 || + layerID == FWPS_LAYER_STREAM_V6) + { + + + + } + +#if(NTDDI_VERSION >= NTDDI_WIN7) + + else if(layerID == FWPS_LAYER_ALE_ENDPOINT_CLOSURE_V4 || + layerID == FWPS_LAYER_ALE_ENDPOINT_CLOSURE_V6) + { + PEND_DATA* pPendData = (PEND_DATA*)pFlowContext->pALEEndpointClosureContext->pPendData; + KIRQL irql = PASSIVE_LEVEL; + + KeAcquireSpinLock(&(pFlowContext->pALEEndpointClosureContext->spinLock), + &irql); + + KrnlHlprPendDataDestroy(&pPendData); + + KeReleaseSpinLock(&(pFlowContext->pALEEndpointClosureContext->spinLock), + irql); + } + +#endif /// (NTDDI_VERSION >= NTDDI_WIN7) + + KrnlHlprFlowContextDestroy(&pFlowContext); + } + + DbgPrintEx(DPFLTR_IHVNETWORK_ID, + DPFLTR_INFO_LEVEL, + " <--- NotifyFlowDeleteNotification() [Layer: %s][CalloutID: %#I64x][FlowContext: %#I64x]", + KrnlHlprFwpsLayerIDToString(layerID), + calloutID, + flowContext); + + return; +} |
