Just a thought - the snapshot API requires the profiled process to be started by the profiler - it's not enough for them to run at the same time.
Start ANTS Memory Profiler.
Set up ANTS Memory Profiler to profile your application in the normal way.
When you click [startprofilingbutton] your application starts.
Snapshots are taken automatically at the trigger points you defined in your code.
I got a COM unregistered exception when I tried for the first time.
That's odd, because the memory profiler's installer should have registered the COM object. Were there any problems running the installer?
return codes for this method are undocumented
There aren't any return codes as such, it either works (returns true), or fails (returns false), or throws an exception when the snapshot rate limiting is exceeded (5 in 30 seconds).