Results 1 to 4 of 4

Thread: Accessing harddisk directly

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 1999
    Location
    Prague, Czech Republic
    Posts
    350

    Accessing harddisk directly

    How could I read and write individual sectors in C#?

  2. #2
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    This seems like a typical thing for C++/ASM, but maybe you could do it by using the unsafe keyword of C# too... never done it though, but C++ or ASM seems to be a better language to do this kinda low-level things..
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 1999
    Location
    Prague, Czech Republic
    Posts
    350
    I think it can be done using CreateFile API function on NT based systems, so I was just wondering if it is possible to use similar way in .NET

  4. #4
    Lively Member
    Join Date
    Aug 1999
    Location
    Amsterdam
    Posts
    117
    No, only through PInvoking the appropriate Win32 API's.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width