0

I'm using dokan as a file system and don't know how to identify office file write operation. Specially the lock and temp files. I have to identify them because only the main file has to upload to an external database.

Theoretically I get office word to work but this is more a workaround. I hope there is a special attribute to identify there temp files.

Regard Chris

SeanC
  • 15,695
  • 5
  • 45
  • 66
masterchris_99
  • 2,683
  • 7
  • 34
  • 55

1 Answers1

1

You can check the ProccessId to see if its Office's proccess. Check if the filename matches temp file. Some Office versions call CreateFile with FILE_FLAG_TEMPORARY and som set it later in SetAttributes. The best way is delay file upload till Cleanup and even then you can add an timer to uplosd it couple of seconds later. (Not sure but I think I remember that OpenOffice closes temp file and then opens it again to call MoveFile). Hope it helps.

user629926
  • 1,910
  • 2
  • 18
  • 43