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. Managed C++/CLI
  4. Monitor open files on a share

Monitor open files on a share

Scheduled Pinned Locked Moved Managed C++/CLI
comalgorithmsquestion
2 Posts 1 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.
  • V Offline
    V Offline
    Vadim Tabakman
    wrote on last edited by
    #1

    Hi all, I've hunted around, but can't seem to find anything on this. I could be searching for the wrong keywords. What I'd need to do, is monitor all the shares on the local pc, and take note of open files, and which user has the files open. So far I can use NetSession enum to get some info, but it gives me "[::1]" in the sesi2_cname field. It doesn't tell me what files are open though for the user it tells me about. Does anyone have any recommendations? Cheers Jubjub

    "If you're too careful, your whole life can become a f---in' grind." - Mike McD (Rounders)

    V 1 Reply Last reply
    0
    • V Vadim Tabakman

      Hi all, I've hunted around, but can't seem to find anything on this. I could be searching for the wrong keywords. What I'd need to do, is monitor all the shares on the local pc, and take note of open files, and which user has the files open. So far I can use NetSession enum to get some info, but it gives me "[::1]" in the sesi2_cname field. It doesn't tell me what files are open though for the user it tells me about. Does anyone have any recommendations? Cheers Jubjub

      "If you're too careful, your whole life can become a f---in' grind." - Mike McD (Rounders)

      V Offline
      V Offline
      Vadim Tabakman
      wrote on last edited by
      #2

      Finally found what I needed. Use NetFileEnum.

      "If you're too careful, your whole life can become a f---in' grind." - Mike McD (Rounders)

      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