title: Minifilter - Get operation status
body: <p>I am trying to get the information of an operation in my FS minifilter driver. I can see that the <code>Data-&gt;IoStatus.Information</code> is supposed to return information such as:</p>
  <pre><code>-FILE_CREATED
  -FILE_OPENED
  -FILE_OVERWRITTEN
  -FILE_SUPERSEDED
  -FILE_EXISTS
  -FILE_DOES_NOT_EXIST
  </code></pre>
  <p>However, all it returns in the preop callback is 0 and 1 in the postop callback.</p>
  <p>Any ideas on how I could retrieve FILE_EXISTS for example?</p>
  <p>My code is:</p>
  <pre><code>...
  NTSTATUS status;
  PFLT_FILE_NAME_INFORMATION FileNameInfo;
      
  status = FltGetFileNameInformation(Data, FLT_FILE_NAME_NORMALIZED | FLT_FILE_NAME_QUERY_DEFAULT, &amp;FileNameInfo);
  
  if (NT_SUCCESS(status)) {
      status = FltParseFileNameInformation(FileNameInfo);
  
      if (NT_SUCCESS(status)) {
          WCHAR Name[259] = { 0 };
  
          if (FileNameInfo-&gt;Name.MaximumLength &lt; 260) {
              RtlCopyMemory(Name, FileNameInfo-&gt;Name.Buffer, FileNameInfo-&gt;Name.MaximumLength);
              KdPrint((&quot;Name: %ws \r\n&quot;, Name));
              KdPrint((&quot;File %u info.\r\n&quot;, Data-&gt;IoStatus.Information));
  
              }
          }
      }
  
      FltReleaseFileNameInformation(FileNameInfo);
  }
  
  return FLT_PREOP_SUCCESS_WITH_CALLBACK;
  ...
  </code></pre>
  <p>Thank you.</p>