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. .NET (Core and Framework)
  4. Low level operations to devices

Low level operations to devices

Scheduled Pinned Locked Moved .NET (Core and Framework)
csharpc++dotnetjson
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.
  • F Offline
    F Offline
    fvalerin
    wrote on last edited by
    #1

    I wanna know if there is a way to make low-level operations to devices (mainly the hard disk) in .Net Framework ????? (Vb.net, c++.net or c#.net) By ways I mean maybe a class or a Windows standard API library (doesnt matter if its not managed code) Specific things I want to know are (mostly consultations) : - the beginning/ending number of cluster and track of files, - the beginning/ending number of cluster and track of folders - the size in clusters of files - the volume serial number - the size in clusters and tracks of a hard disk, etc - can I do "interrupts" ??? Let me know the class or the Api library and the documentation, if there is it. thanks, fvalerin

    D 1 Reply Last reply
    0
    • F fvalerin

      I wanna know if there is a way to make low-level operations to devices (mainly the hard disk) in .Net Framework ????? (Vb.net, c++.net or c#.net) By ways I mean maybe a class or a Windows standard API library (doesnt matter if its not managed code) Specific things I want to know are (mostly consultations) : - the beginning/ending number of cluster and track of files, - the beginning/ending number of cluster and track of folders - the size in clusters of files - the volume serial number - the size in clusters and tracks of a hard disk, etc - can I do "interrupts" ??? Let me know the class or the Api library and the documentation, if there is it. thanks, fvalerin

      D Offline
      D Offline
      Dan Neely
      wrote on last edited by
      #2

      You can call any C/C++ API from .net. That said, actaully writing any sort of kernel level code (I assume interrupts would qualify here) in .net is a bad idea. There's a performance hit with every call across the managed boundary, and with low level code you're going to have to do that very frequently. Secondly if you modify any system code that's loaded by other system apps you're injecting the version of hte .net framework you use into every one of them, and if they need a different version to work, you've just broken them. If you just want to get the values there's no harm, but modifying anything at that level is a job for C/C++. PS you're more likely to get the API names asking in the c++ forum.

      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