For posterity, I’d like to report back reading ECPs from a mini filter and
ask a question.
On my Windows 7 computer, FltGetEcpListFromCallbackData successfully returns
an ECP_LIST when a request comes in from the network (and perhaps locally
too - haven’t checked closely enough).
To get the SRV_OPEN_ECP_CONTEXT ECP though, you have to set (just like Alex
said way back):
The perf hit is minimal, especially considering that for SMB 2.x traffic the Win7 SRV already attaches an oplock key ECP to nearly every open.
Note that in Windows 8/Server 2012 SMB 2.x/3.0 traffic gets that ECP by default. You still have to set the reg key to get the ECP on legacy SMB traffic. However, you’ll only see legacy SMB traffic when dealing with clients/servers older than Vista/Server 2008.
Christian [MSFT]
This posting is provided “AS IS” with no warranties, and confers no rights.
The perf hit is minimal, especially considering that for SMB 2.x traffic the
Win7 SRV already attaches an oplock key ECP to nearly every open.
Note that in Windows 8/Server 2012 SMB 2.x/3.0 traffic gets that ECP by
default. You still have to set the reg key to get the ECP on legacy SMB
traffic. However, you’ll only see legacy SMB traffic when dealing with
clients/servers older than Vista/Server 2008.
Christian [MSFT]
This posting is provided “AS IS” with no warranties, and confers no rights.