Re: Code Needed For Getting Process Filehandle in C++



Mark,

You don't need any driver.
The solution had been given in C or C++ on
microsoft.public.win32.programmer.ui or
microsoft.public.platformsdk.shell...

Are you sure you are not talking about window or GDI handles????

At least names of the groups that you have mentioned stronly suggest
the above......

Indeed, window handles can be obtained simply by enumerating threads
and windows that each thread had created - no hacks whatsoever. When it
comes to GDI ones, the task is a bit more tricky, but Feng Yuan showed
us how to obtain the sought info right from (undocumented) GDI handle
table, which resides in the user address space

However, we are talking about file handles here.....


Anton Bassov




mark wrote:
"Manfred Senn" <msenn@xxxxxxxxxxxxx> wrote in message
news:%23r2a04IHHHA.2456@xxxxxxxxxxxxxxxxxxxxxxx
Does anybody know how to get the 'filehandles of a process' in any Windows
programming language?

Manfred

You don't need any driver.
The solution had been given in C or C++ on
microsoft.public.win32.programmer.ui or
microsoft.public.platformsdk.shell...

.



Relevant Pages

  • Re: Difference between this.CreateGraphics() and Graphics.FromHdc(hDC);
    ... I've had a read through the GDI+ FAQ. ... FromHdc using the handle from GetWindowDC will return a graphics object ... based on the whole window including the non-client area. ... Find great Windows Forms articles in Windows Forms Tips and Tricks ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Difference between this.CreateGraphics() and Graphics.FromHdc(hDC);
    ... missing paint event, and the draw flat button code can be called from ... I've had a read through the GDI+ FAQ. ... FromHdc using the handle from GetWindowDC will return a graphics object ... based on the whole window including the non-client area. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: MDI child not working VISTA
    ... To rule-out the desktop composition and GDI redirection, ... Any drawing commands targeting the window device context will go there ... Now the problem is that in the "unit test" after opening just few ... that a new window is created and distroyed without compositing on screeen ...
    (microsoft.public.win32.programmer.gdi)
  • Re: Data Abort: Thread=8f992000 Proc=88db9ed0 gwes.exe
    ... Grow Gdi handle table from 192 to 256 ... 0x8fbfd400: SWP:FrameChanged sent to window 0x7C0145A0 which is not visible ... Secondary thread in proc efd8594e faulted! ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Why "GDI+ Window" visible?
    ... It's difficult for us to locate the codes that raise the GDI+ Window, ... If it were an exception in the program, ... > Find great Windows Forms articles in Windows Forms Tips and Tricks ...
    (microsoft.public.dotnet.languages.csharp)

Loading