Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Enumerating open handle

Enumerating open handle

Scheduled Pinned Locked Moved C / C++ / MFC
comtutorialquestion
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    Hi! I saw something really cool on sysinterals.com. A program which could enumerate the open file handles of a process. Anyone who knows how to do that?

    I F 2 Replies Last reply
    0
    • L Lost User

      Hi! I saw something really cool on sysinterals.com. A program which could enumerate the open file handles of a process. Anyone who knows how to do that?

      I Offline
      I Offline
      Igor Sukhov
      wrote on last edited by
      #2

      Take a look at the CodePile.COM ... in the "Tricks" section. Best regards, ----------- Igor Soukhov (Brainbench/Tekmetrics ID:50759) igor@soukhov.com | ICQ:57404554 | http://soukhov.com

      L 1 Reply Last reply
      0
      • I Igor Sukhov

        Take a look at the CodePile.COM ... in the "Tricks" section. Best regards, ----------- Igor Soukhov (Brainbench/Tekmetrics ID:50759) igor@soukhov.com | ICQ:57404554 | http://soukhov.com

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        That's good, but my project isn't limited to 95/98...

        1 Reply Last reply
        0
        • L Lost User

          Hi! I saw something really cool on sysinterals.com. A program which could enumerate the open file handles of a process. Anyone who knows how to do that?

          F Offline
          F Offline
          Focht
          wrote on last edited by
          #4

          Hi, the mechanism that sysinternals and other commercial/freeware apps use is covered in an article at http://www.codeguru.com/files/FileObjectInfo.shtml . Of course it is not limited to process file handles only. You could enumerate all types of system handles that way. It works for NT-based systems only as far as i know. For Win XX there are some special deviceIo requests to get that information. Cheers, A.Focht.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups