The standard Printer DEVMODE structure should be used to carry out these tasks. Further information is available in the development tools help file and at the MSDN website.
You can contact us by phone, email or our social media accounts — we are here to assist you.