smileyhead@discuss.tchncs.de to linuxmemes@lemmy.worldEnglish · 7 months agomv Windows Linuxdiscuss.tchncs.deimagemessage-square107fedilinkarrow-up11.01Karrow-down130
arrow-up1977arrow-down1imagemv Windows Linuxdiscuss.tchncs.desmileyhead@discuss.tchncs.de to linuxmemes@lemmy.worldEnglish · 7 months agomessage-square107fedilink
minus-squaredanAlinkfedilinkarrow-up6·edit-27 months ago will download and decompile the Powertools PowerToys is open-source, so no need to decompile. https://github.com/microsoft/PowerToys. This is the code that determines which processes are holding on to the specified files (or any files in the specified folders): https://github.com/microsoft/PowerToys/blob/a89f9f69768ace73de21dbf6020bd7fa2460bf4a/src/modules/FileLocksmith/FileLocksmithLibInterop/FileLocksmith.cpp#L18 Called from the UI code here: https://github.com/microsoft/PowerToys/blob/a89f9f69768ace73de21dbf6020bd7fa2460bf4a/src/modules/FileLocksmith/FileLocksmithUI/ViewModels/MainViewModel.cs#L112 which also has the code to kill the processes
PowerToys is open-source, so no need to decompile. https://github.com/microsoft/PowerToys.
This is the code that determines which processes are holding on to the specified files (or any files in the specified folders): https://github.com/microsoft/PowerToys/blob/a89f9f69768ace73de21dbf6020bd7fa2460bf4a/src/modules/FileLocksmith/FileLocksmithLibInterop/FileLocksmith.cpp#L18
Called from the UI code here: https://github.com/microsoft/PowerToys/blob/a89f9f69768ace73de21dbf6020bd7fa2460bf4a/src/modules/FileLocksmith/FileLocksmithUI/ViewModels/MainViewModel.cs#L112 which also has the code to kill the processes