How to programmatically check and fix asf files like asfcheck.exe

From: Justin Engelman (GlobNews_at_adelphia.net)
Date: 04/28/04


Date: Tue, 27 Apr 2004 19:40:17 -0700

Hello,
How can I programmatically (preferrably from VB.NET) check for wma or wmv
file corruption and try to fix errors like the WMTools ASFCheck command line
utility does? Ideally I think it would be done using the Encoder SDK since
that has an interface I can use from VB, unlike the Format SDK which
requires some complex C++ (and I still have a lot to learn about C++ and the
Windows SDK). Is this possible?

Also, if anyone knows what exactly the ASFCheck utility is looking for to
see if a file is corrupt and how it tries to fix the problem, could you
please explain? I can't find any detailed documentation on MSDN or anywhere
else online for ASFCheck.

Note, this message is crossposted to microsoft.public.windowsmedia.encoder,
sdk, & tools.

Thank you in advance for any help you can give me.
Justin