❔ How to close a process's handle?

Hey folks, I'm trying to automate something that I've been doing manually through Process Explorer - closing a process's handle. I have a picture attached showing what I do manually. I can get access to a Process object for this process, but I'm not sure where to go from here (if this is even the right direction). Does anyone know what I could try here?
5 Replies
CatSandwich
CatSandwich2y ago
Pavel Yosifovich
Pavel Yosifovich
How can I close a handle in another process?
Many of you are probably familiar with Process Explorer’s ability to close a handle in any process. How can this be accomplished programmatically? The standard CloseHandle function can close …
CatSandwich
CatSandwich2y ago
reading through this
canton7
canton72y ago
If you've got the Process object, then just call Kill()?
CatSandwich
CatSandwich2y ago
I don't want to kill the process - I want to close a handle held by the process
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server
More Posts
❔ ObjectListView showing blank rowsHi all. I'm new to C# and making VSTO addins, please bare with me! I'm using the add-in control O❔ NullReferenceException Object reference not set to an instance of an object Billboard.UpdateHello, my name is Zorphix and I'm not so smart at C#. And I'm currently trying to add a billboard sc❔ Blazor Hosted - Client datatable with large datasetI have a table component (using MudBlazor) which accesses the server-side API endpoint and pulls (cu❔ How do I cycle through different observable collections within the same collection view?My current plan is to do something like: ``` List <ObservableCollection<TodoItem>> allTodoItems✅ I'm trying to understand WPF's source code. What is a WeakReferenceWeakReference is a class that probably has applications other than in WPF (in particular, I'm trying❔ Shortcut for selecting multiple lines on windowsHi, I want to select only lines 146, 150 and 154 in my project in order to copy them, is there a sho✅ Token present on Get but missing on Post using IdentityPasted images to show autos with breakpoints. Code present on Get but missing on Post. I'm not sure ❔ Watch on screen area and reactHi. How can I do it? I need to "watch" on specfic screen area and when eg cursor is in this area app✅ The name does not exist in current context. (forms)I simply may be too dumb but i cannot wrap my head why is this an error.❔ Docker issues with dotnet restorePlease read my Stackoverflow post.... I have been working on this for a couple of days now I can't f