If you want to know the real nuts and bolts to control it via COM then this is a good book to start with

https://www.amazon.co.uk/Microsoft-O.../dp/1555583466