Read data from hard drive RRS feed

  • Question

  • In c#, I open the physical drive using bellow statement, 

    IntPtr handle = CreateFile(driveName, GENERIC_READ, FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_WRITE, IntPtr.Zero, OPEN_EXISTING, 0, IntPtr.Zero);

    and reading chunk of data using ReadFile.

    once, i had copy or changes in content of Hard drive in Explorer then immediately try to Read the chunk of data (using my process) but  i had not found

    the updated contents in Hard drive for 1st time,

    2nd time i got successfully or after waiting for 1 min also got successfully,

    but this problems occurs every first time when i changes in HDD then open & read using my application


    Wednesday, March 14, 2012 7:40 AM


  • Hi,

    This forum is dedicated to questions re Microsoft Project, so chances are you will not get an answer here.

    I hope you can find a form better suited to your question.


    Wednesday, March 14, 2012 9:46 AM