Process Hacker Discussion Forum

 
User avatar
phuser
Contributor
Posts: 76
Joined: 29 May 2015 06:45
OS: Windows XP, 7 [32, 64]
Contact:

File Handles

08 Jun 2015 04:02

File Handles Plugin For Selected Process:-

1) List File Handles

2) Close File Handles


Present in Misc Menu For Processes Tab.
Attachments
File Handles.zip
File Handles
(53.28 KiB) Downloaded 956 times
 
User avatar
viksoftru
Member
Posts: 629
Joined: 15 Aug 2011 06:01
OS: Win7 (Live! DVD), BSD

Re: File Handles

08 Jun 2015 17:12

I liked, but he would still use the default font for the convenience - a dream. :)
 
User avatar
TETYYS
Contributor
Posts: 515
Joined: 23 Apr 2013 10:37
OS: Win 10 x64

Re: File Handles

08 Jun 2015 20:39

I don't get it, why use this, when there are all file handles in Process properties -> Handles
 
User avatar
viksoftru
Member
Posts: 629
Joined: 15 Aug 2011 06:01
OS: Win7 (Live! DVD), BSD

Re: File Handles

08 Jun 2015 20:48

The plug is suitable only for cases when you need a screen filter in the list leaving only the file handles, and the rest of the completeness agree. The ideal would be to have a separate custom filter tab Handles, but since I have not previously encountered the problem of filtration that I just did not look like his cause, and enjoyed a general search on the handle Ctrl+F.
 
User avatar
wj32
Founder
Posts: 948
Joined: 17 Jan 2011 05:19
OS: Windows
Contact:

Re: File Handles

10 Jun 2015 04:06

It looks like you've copied a whole bunch code from PH in your plugin. Please release the source code for this plugin in order to comply with the GPL.
 
User avatar
phuser
Contributor
Posts: 76
Joined: 29 May 2015 06:45
OS: Windows XP, 7 [32, 64]
Contact:

Re: File Handles

10 Jun 2015 04:09

Yes Most of the code is from ph only, there is nothing to hide.

I'll release/share the source code soon.

whole bunch code ? => There are only few functions & extmgr.c file.

:o
Last edited by phuser on 10 Jun 2015 04:12, edited 1 time in total.
 
User avatar
wj32
Founder
Posts: 948
Joined: 17 Jan 2011 05:19
OS: Windows
Contact:

Re: File Handles

10 Jun 2015 04:11

If most of the code is copied straight from PH, then I have to agree with TETYYS - what's the point of this plugin?
 
User avatar
phuser
Contributor
Posts: 76
Joined: 29 May 2015 06:45
OS: Windows XP, 7 [32, 64]
Contact:

Re: File Handles

10 Jun 2015 04:14

It takes lot of time { Select Process, Go To Handles Tab, Find File Handles, No sorting for file handles only, & many other similar things...... }

This plugin is only for viewing & closing File Handles Only { Who don't want to interact or waste time with other handles }

Using this plugin you can view & close file handles just by using hotkeys.
Last edited by phuser on 10 Jun 2015 06:02, edited 1 time in total.
 
User avatar
TETYYS
Contributor
Posts: 515
Joined: 23 Apr 2013 10:37
OS: Win 10 x64

Re: File Handles

10 Jun 2015 05:50

Well only if you work with file handles every 10 minutes
 
User avatar
phuser
Contributor
Posts: 76
Joined: 29 May 2015 06:45
OS: Windows XP, 7 [32, 64]
Contact:

Re: File Handles

10 Jun 2015 06:01

That depends upon the user
 
User avatar
phuser
Contributor
Posts: 76
Joined: 29 May 2015 06:45
OS: Windows XP, 7 [32, 64]
Contact:

Re: File Handles

16 Jun 2015 04:15

 
User avatar
wj32
Founder
Posts: 948
Joined: 17 Jan 2011 05:19
OS: Windows
Contact:

Re: File Handles

16 Jun 2015 16:30

A warning - for the next version, PhEnumProcessHandles has been renamed to KphEnumerateProcessHandles2. You'll need to update this plugin.
 
User avatar
phuser
Contributor
Posts: 76
Joined: 29 May 2015 06:45
OS: Windows XP, 7 [32, 64]
Contact:

Re: File Handles

17 Jun 2015 04:05

Thanks.

I'll update it as soon as i've ph 2.36 sdk & src
 
cw2k
Member
Posts: 22
Joined: 07 Nov 2012 20:39

Re: File Handles

15 Oct 2015 14:48

Please compile it also for x64.

Tried it my own but don't get it done.

Tried the includes from current sdk but <extmgri.h> is missing. putting it to "..\..\include"
Messed it up with even more includes from the current source so is not missing 'extmgri.h' anymore

but then VS2015 complains about some '_InterlockedExchangePointer' is not defined.

:zipped: That's were I stopped before that crap is gonna make me crazy :party:
 
User avatar
phuser
Contributor
Posts: 76
Joined: 29 May 2015 06:45
OS: Windows XP, 7 [32, 64]
Contact:

Re: File Handles

16 Oct 2015 03:50

Hello cw2k,

WJ32 has removed (may be intentionally) kph functions from sdk, so that you cannot use kph functions
easily in your program ( you can still use kph functions in your program through different ways ). :o
You can use kph functions by creating your own sdk, but this might not work for everyone when shared.

Thats why for ph 2.36 i have not shared new dll's, because the dll developed will be without kph (no kph),
that is of no use.


Now to your question of compiling, it is very easy:-

1) Don't use current sdk ( use ph 2.35 or even previous versions sdk )

2) Put required header files in your ph 2.35 sdk include folder.

3) Dll for X64 or X86 will be created which will work for <= ph 2.35 versions

0 Errors & 0 Warnings. :)


You are getting InterlockedExchangePointer errors because of wrong sdk (ph + win)


Try it out & let me know.
 
User avatar
phuser
Contributor
Posts: 76
Joined: 29 May 2015 06:45
OS: Windows XP, 7 [32, 64]
Contact:

File Handles (Updated)

12 Oct 2016 13:55