How to finalize dvd+r using "CDD_ATA_SendAtapiCommand"

Hi!

Anybody knows how to finalize the dvd+r using “CDD_ATA_SendAtapiCommand”.?

thanks in advance!