Is there a way to list all open file handles for a certain process using the pid?
jimmys_
0
Newbie Poster
Recommended Answers
Jump to PostHello,
I just found this one. Might help you:
#include <iostream> #include <windows.h> // struct unit with loop inside.... using namespace std; int main(int argc, char *argv[]) { HWND h = ::GetTopWindow(0 ); while ( h ) { DWORD pid; DWORD dwTheardId = ::GetWindowThreadProcessId( h,&pid); if …
Jump to PostIf you want MS-Windows then probably have to use one or more of the Undocumented Windows API functions
Jump to PostNope. Just look through that link and see if anything jumps out at you. I don't even know if it contains anything useful.
This is how to get a list of all …
All 9 Replies
jimmys_
0
Newbie Poster
mayyubiradar
0
Newbie Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
jimmys_
0
Newbie Poster
jimmys_
0
Newbie Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
mayyubiradar
0
Newbie Poster
jimmys_
0
Newbie Poster
jimmys_
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.