Friend is trying to replace an active-x control with some calls to 'native' 
windows stuff for backing up data to a multi-session CD or DVD.

If anyone here has some nifty python code that does something similar, it might 
help.

In case it matters, Here are some references he is looking at:
http://msdn2.microsoft.com/en-us/library/aa366443.aspx

And the VFP code he is trying to use that is failing:

oDiscMaster2 = CREATEOBJECT("IMAPI2.MsftDiscMaster2")
oDiscRecorder2 = CreateObject("IMAPI2.MsftDiscRecorder2")
oFileSystemImage = CREATEOBJECT("IMAPI2FS.MsftFileSystemImage")
oDiscFormat2Data = CREATEOBJECT("IMAPI2.MsftDiscFormat2Data")
oDiscRecorder2.InitializeDiscRecorder(oDiscMaster2.Item(0))
oDiscFormat2Data.Recorder = oDiscRecorder2
oFileSystemImage.FreeMediaBlocks = oDiscFormat2Data.FreeSectorsOnMedia
IF oDiscFormat2Data.NextWritableAddress > 0
    oFileSystemImage.MultisessionInterfaces = 
oDiscFormat2Data.MultisessionInterfaces
    oFileSystemImage.ImportFileSystem()
ENDIF

Carl K
_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to