Regards,
Brooks
Optical Platform Discussion
Hi Brooks,
Thank you for your suggestion.
The question of what sources go into the SDK is never an easy one. The IMAPIv1 shim works, but due to its history is not code that I would recommend basing any other samples upon. In particular, it has to deal with the IMAPIv1 property bags, IStorage, and lots of junk that are just removed (with simplified alternatives) for IMAPIv2. imapi2sample is, I believe, based on unit test code that we run on builds of IMAPIv2, and shows the use of quite a few of the interfaces.
hope that helps,
1. IMAPIv1 does not support DVDs period. Whether it is using the original IMAPIv1 on XP or the shim on top of Vista's IMAPIv2. We assume IMAPIv1 applications were developped without DVD in mind thus introducing DVD underneath them with the shim would be risking regressions in these applications.
2. SetActiveDiscRecorder will validate it can write to the disc by testing if either it is blank or if an import file system succeeds. If both fail, it is not a disc that may be mastered. You should be able to easily do the same in your application. Then for writing using Live File System, you may simply use regular file access api from Win32 api.