FltControlFile returns STATUS_NOT_IMPLEMENTED

I am trying to aquire oploack from my PreCreate() in minifilter which is basically a virtulization driver for file level backup.but after calling FltFsControlFile(…,FSCTL_REQUEST_FILTER_OPLOCK,…);call is failing with operation not implemented. so is this not a correct way to ask for oplock???
why this is failing.???

Thanks in advance.

How are you requesting the oplocks. Since this is in pre-create, are you opening the file and then issuing the request?

Normally, a filter oplocks is indicated as an option in create (FILE_OPEN_REQUIRING_OPLOCK) and then the actual oplock request is sent later (after the file is opened).

On which version of Windows are you testing? What are you trying to accomplish?

Tony