Hi there,
Could I ask a question about StarBurn_ISO9660JolietFileTree_AddW? I encounter two problems when I try to use this function:
1. It returns error 5 if p__PWCHAR__RootDirectoryOrFileAbsolutePathAndName actually contains any non-ANSI characters (and reports a WIN32 error code of 123). My understanding is that filenames are (or can be) stored on Joliet discs as Unicode so why should this be?
2. The p__PWCHAR__RootDirectoryOrFileNewName parameter seems to be ignored. Files on the CD end up with the same names as the input files, which is not what I want. Calling StarBurn_ISO9660JolietFileTree_Add (without the W) works correctly. I am passing a filename, rather than a directory name, as input.
So it seems like AddW is broken, which is a shame as I would like to get Unicode filenames onto my Joliet CDs. Or am I missing something?
[Edit]
It's the Unicode *input* filename it's objecting to. The exception text reads:
CStarBurn_DiskFile::CStarBurn_DiskFile(): CreateFile( 'g:\temp\playtime\My Collection\A-ha - Stay On These Roads\01 - ?-ho! - Stay On These Roads.mp3' ) failed, status 123!!!
The '?' in the filename was passed in as a valid Unicode character. Looks like youse guys are converting the filename to ANSI before trying to open it, which is a problem for people trying to burn such a file (which is a perfectly valid file as far as Windows is concerned) to CD.
Tested on Tomohawk, 20081220.
OK, found a fix for this one: pass the source filename through GetShortPathName (). That seems to work. Still can't get a Unicode name onto the CD though.
[/Edit]
[Edit 2]
IMAPI (on Windows XP) can handle the Unicode filename on input and manages to burn it correctly to the CD (preserving the Unicode characters in the filename), so it can be done.
[/Edit 2]
[Edit 3]
StarBurn_ISO9660JolietFileTree_ImportTrack falls over (with an exception somewhere inside starburn.dll) if you try to import a session containing a filename with unicode characters in it (as burned by IMAPI). It's not looking good for Unicode filenames
[/Edit 3]
Regards,