CreateFile fails when write on DVD/CDRom

  • Thread starter Thread starter rajani
  • Start date Start date
R

rajani

Hello,

I'm writing an application to Burn to DVD using Windows Platform SDK API.

Write failed in both of the given sequences --

First Sequence is as follows:
1. Used CreateFile () function for opening a file that resides on DVD in
write mode with OPEN_EXISTING flag.
2. I am able to get the handle.
3. When I try to write data on file it gives error ERROR_ACCESS_DENIED.

Second Sequence is as follows:
1. Used CreateFile () function for creating a file on DVD with CREATE_NEW OR
CREATE_ALWAYS flag.
2. CreateFile returns error and error code is ERROR_ACCESS_DENIED.

Please suggest what I should do to make it work?

Operating System : Windows XP professional

Thanks
Rajani
 
Back
Top