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. Visual Basic
  4. Prevent other app's I/O

Prevent other app's I/O

Scheduled Pinned Locked Moved Visual Basic
questionjson
2 Posts 2 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.
  • T Offline
    T Offline
    The real M
    wrote on last edited by
    #1

    Hi My program should prevent certain processes' IO operations, and only perform them if the user clicks Yes in a Yes/No dialog. Can this be done? And anyway how can I check wether those processes are running? Probably there is an API or sg for that, but I'm new to this part of programming. Much thanks in advance :)

    L 1 Reply Last reply
    0
    • T The real M

      Hi My program should prevent certain processes' IO operations, and only perform them if the user clicks Yes in a Yes/No dialog. Can this be done? And anyway how can I check wether those processes are running? Probably there is an API or sg for that, but I'm new to this part of programming. Much thanks in advance :)

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

      The real $M@ wrote:

      Can this be done?

      Not that I'm aware of. You could try and modify the security-attributes of the file, taking away or granting the read/write rights. You'd have to know in advance what file is going to be edited.

      The real $M@ wrote:

      And anyway how can I check wether those processes are running?

      Process.GetProcesses()

      (Source[^])

      I are troll :)

      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