I don’t see anything in the message metadata that might help. Maybe there’s some way to use msiGetStatSample, but it’s not obvious how.
I believe I could do this rather easily if I wanted to write all my own I/O routines. But I don’t.
Thanks in advance for any light you may be able to shed on this!