Check out using the ECP parameter if you are calling FltCreateFileEx2,
or IoCreateFileEx(), in the dir enum processing. In the DriverContext
parameter you can specify an ECP which can then be retrieved in your
create handler.
The above assumes, of course, that it is your filter which is initiating
the opens within the directory enumeration. If you are asking about the
opens which an application, such as Explorer, sends after doing a
directory enumeration then other than heuristics there is no way.