smileyhead@discuss.tchncs.de to linuxmemes@lemmy.worldEnglish · 5 months agomv Windows Linuxdiscuss.tchncs.deimagemessage-square101fedilinkarrow-up1990arrow-down130
arrow-up1960arrow-down1imagemv Windows Linuxdiscuss.tchncs.desmileyhead@discuss.tchncs.de to linuxmemes@lemmy.worldEnglish · 5 months agomessage-square101fedilink
minus-squaredan@upvote.aulinkfedilinkarrow-up6·edit-25 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