smileyhead@discuss.tchncs.de to linuxmemes@lemmy.worldEnglish · 8 months agomv Windows Linuxdiscuss.tchncs.deimagemessage-square106fedilinkarrow-up11Karrow-down130
arrow-up1972arrow-down1imagemv Windows Linuxdiscuss.tchncs.desmileyhead@discuss.tchncs.de to linuxmemes@lemmy.worldEnglish · 8 months agomessage-square106fedilink
minus-squaredan@upvote.aulinkfedilinkarrow-up6·edit-28 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