Search code examples
windowsvolumerandom-access

How to read and write data directly from disk partition on Windows with random access?


I can open a disk, and do some reads and writes (described here: How do I read a disk directly with .Net?), but I don't know how to seek.


Solution

  • The API function you are looking for is SetFilePointerEx.