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#
  4. Read data directly from harddrive

Read data directly from harddrive

Scheduled Pinned Locked Moved C#
csharpc++question
3 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.
  • L Offline
    L Offline
    lindan
    wrote on last edited by
    #1

    I am programming in C# and I want to get direct access to the harddrive to read data and maybe later also write data. I have looked at msdn but I dont really know what to search for. Maybe someone know what native functions I should call?, or point me in the right direction. Thanks! // Anders ------------------------------ http://www.anderslinder.se

    P 1 Reply Last reply
    0
    • L lindan

      I am programming in C# and I want to get direct access to the harddrive to read data and maybe later also write data. I have looked at msdn but I dont really know what to search for. Maybe someone know what native functions I should call?, or point me in the right direction. Thanks! // Anders ------------------------------ http://www.anderslinder.se

      P Offline
      P Offline
      Paul Ingles
      wrote on last edited by
      #2

      It's not accessing the hard drive directly, but you could call functions from the Win32 API. The page below covers the functions you can use. If you go to http://www.pinvoke.net/ you ought to be able to find the P/Invoke signatures to let you use them. Alternatively, you could created a class wrapper in Managed C++ that called the functions directly, and then consume that within your C# app. http://jan.netcomp.monash.edu.au/ssw/files/win32.html[^] -- Paul "Put the key of despair into the lock of apathy. Turn the knob of mediocrity slowly and open the gates of despondency - welcome to a day in the average office." - David Brent, from "The Office" MS Messenger: paul@oobaloo.co.uk Download my PGP public key

      L 1 Reply Last reply
      0
      • P Paul Ingles

        It's not accessing the hard drive directly, but you could call functions from the Win32 API. The page below covers the functions you can use. If you go to http://www.pinvoke.net/ you ought to be able to find the P/Invoke signatures to let you use them. Alternatively, you could created a class wrapper in Managed C++ that called the functions directly, and then consume that within your C# app. http://jan.netcomp.monash.edu.au/ssw/files/win32.html[^] -- Paul "Put the key of despair into the lock of apathy. Turn the knob of mediocrity slowly and open the gates of despondency - welcome to a day in the average office." - David Brent, from "The Office" MS Messenger: paul@oobaloo.co.uk Download my PGP public key

        L Offline
        L Offline
        lindan
        wrote on last edited by
        #3

        Thanks for the fast answer. I think I know what I should do now. // Anders ------------------------------ http://www.anderslinder.se

        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