how to skip offline files?

I’m developping a minifilter(encryption),it’s work fine.
But when it works for offline files(the files in offline folder,and the Lan is disconnected),the minifilter can’t work.
I want to skip the offlines files.So,in post-create,I get the file attribute,if it’s FILE_ATTRIBUTE_OFFLINE,I skip it.
But in my test,the offline files hasn’t the FILE_ATTRIBUTE_OFFLINE!

When my minifilter works for the offline file,it can get the file contents at first,but and then,the file shows the filesize is zero and the attributes is zero too.
I know my minifilter can’t work for the offline files,I just want to skip these files.
What should I do?
thanks ~~~~~~

I think FILE_ATTRIBUTE_OFFLINE is not enough ~~~~
But how can I tell the file is a stub file?

I don’t think that the offline folder uses the FILE_ATTRIBUTE_OFFLINE at all. That attribute was added for HSM (hierarchial storage management) and indicates that the file may have some latency when reading it (while the data is restored). It is used by third party software mainly and could be used in different ways. I don’t know how to best detect what you want but this attribute is not it. Unfortunate choice of names.

If I detect it by names…I must be notified when the users define a offline folder…
It’s complex,maybe.
thanks for your suggestion.
according to your words,I will not try it by attributes at least