View Full Version : CreateFile fails when write on DVD/CDRom


rajani
12-03-2005, 06:05 AM
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

Jochen Kalmbach [MVP]
12-05-2005, 08:44 AM
Hi rajani!

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

You need to use "Image Mastering API":
http://msdn.microsoft.com/library/en-us/devio/base/image_mastering_api.asp

--
Greetings
Jochen

My blog about Win32 and .NET
http://blog.kalmbachnet.de/

Jochen Kalmbach [MVP]
12-05-2005, 08:44 AM
Hi rajani!

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

You need to use "Image Mastering API":
http://msdn.microsoft.com/library/en-us/devio/base/image_mastering_api.asp

--
Greetings
Jochen

My blog about Win32 and .NET
http://blog.kalmbachnet.de/

Jochen Kalmbach [MVP]
12-05-2005, 08:44 AM
Hi rajani!

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

You need to use "Image Mastering API":
http://msdn.microsoft.com/library/en-us/devio/base/image_mastering_api.asp

--
Greetings
Jochen

My blog about Win32 and .NET
http://blog.kalmbachnet.de/