This one would be the official API: http://msdn.microsoft.com/en-us/library/windows/desktop/bb288384(v=vs.85).aspx However I found nothing on exporting either.
http://avisynth.nl/index.php/Main_Page Looks like a powerful alternative though (my guess is you don't mind being stuck on windows anyway in this case).