Commit Graph

5 Commits

Author SHA1 Message Date
Kim Knight
6a766fe113
Merge pull request #79 from wk6768/master
Fixed the issue that the RDP file was locked under the administrator …
2023-06-16 23:04:11 +10:00
Daniel Sousa
fab2cfbdd4 Fix wix detection 2023-06-14 18:40:47 +01:00
wk6768
92d558b7d6 Fixed the issue that the RDP file was locked under the administrator user 2023-01-08 13:47:58 +08:00
brianga
57111a3d21 Check if file is locked or not and present to end user if it is locked and by what.
Resulted in breaking some of my habits and putting a messagebox windows in libraries.  Not my favorite thing, but it works.

This helps debug issue 3, it does not resolve issue 3.

To test it - open an office document (such as Word or Excel) and try to overwrite the office document with the RDP file including the office document extention (xls, xlsx, doc, docx, etc).  The application will tell you that the file is locked, locked by Word/Excel/etc and the PID that is locking it just in case you have multiple copies of the application that is locking it open.

A lot of the code was borrowed from Microsoft (https://code.msdn.microsoft.com/windowsapps/How-to-know-the-process-170ed5f3/sourcecode?fileId=151114&pathId=1558127374).
2019-11-15 14:44:55 -06:00
Kim
f1f7664b91 Initial commit 2019-09-29 22:45:23 +10:00