ZwSetinformatinFile() got 0xc0000022 return

Hi,

I am calling ZwSetinformationFile() to do the file rename in the kernel.
Sometime it works fine but sometime got 0xc0000022 return which is
STATUS_ACCESS_DENIED. Any one can help? How to impersonate in the thread?

Why this list I can not search any more, the search box is disappear?

Thanks in advance.

JianJing Qin