Check if file closed in windows

How to check if the file(.txt file) is closed in user level? As I want to trigger an event handle which will read its file contents , file can be empty. My code does not analyze the irp_mf_close. And as I can see , when empty file is created only irp_mf_create irp is generated but when contents are written on it , irp_mf_cleanup irp is generated. Is checking with create file handle exclusive access approach is any good approach?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.