bernard wrote:
1st question. I want to ask, how to get disc total space and total size from disc?
To get total size of the disc you need to get FreeLBs and size in LogicalBlock of each track. But it will not work for closed disc, because it will report FreeLBs =0.
bernard wrote:
2nd question.
Alexey wrote:
Yes, you can. Just create the FileSystem.
can you explain more, what do you mean with FileSystem?
are you pointing to StarBurn_ISO9660JolietFileTree_add.
which one ? l__PVOID__Root or else?
It's creation of the filesystem:
Code:
//
// Try to construct Joliet file tree and pass callback function address, callback parameter and flag that we
// wish to ignore invalid kids
//
l__EXCEPTION_NUMBER =
StarBurn_ISO9660JolietFileTree_Create(
&l__PVOID__ISO9660JolietFileTree,
( PCHAR )( &l__CHAR__ExceptionText ),
sizeof( l__CHAR__ExceptionText ),
&l__ULONG__Status,
( PCALLBACK )( Callback ),
( PVOID )( &g__LONG__TreeNodes ),
TRUE,
FALSE, // No locked files - do not keep all the handles opened all the time
TRUE, // Use Level2 for ISO9660 names generation
FILE_TREE_JOLIET
//FILE_TREE_ISO9660
);
Than importing track:
Code:
//
// Try to import first track of the disk
//
l__EXCEPTION_NUMBER =
StarBurn_ISO9660JolietFileTree_ImportTrack(
l__PVOID__CdvdBurnerGrabber,
l__PVOID__ISO9660JolietFileTree,
l__UCHAR__TrackNumber,
TRUE, // TRUE - Joliet // FALSE - ISO
( PCHAR )( &l__CHAR__ExceptionText ),
sizeof( l__CHAR__ExceptionText ),
&l__ULONG__Status
);
Then add any files to the imported session:
Code:
//
// Try to add the directory to already created file tree
//
l__EXCEPTION_NUMBER =
StarBurn_ISO9660JolietFileTree_Add(
l__PVOID__ISO9660JolietFileTree,
( PCHAR )( &l__CHAR__ExceptionText ),
sizeof( l__CHAR__ExceptionText ),
&l__ULONG__Status,
p__PCHAR__Argv[ 5 ],
l__CHAR__NewRootName,
FILE_TIME_LAST_WRITE,
&l__PVOID__Root
);
bernard wrote:
3rd question.
is it true ?, if I give last parameter of trackatoncefromtreewithimport from TOC_INFORMATION.m__UCHAR__NumberOfTracks, there will be no missing folder from any previous session.
Yes, it's true.
bernard wrote:
I dont know how to get first 1mb, soI compressed the folder into 84MB.
http://mbone.petra.ac.id/~guile/tk.rar
Thanks.