How to modify Solidworks options using Visual C#

I created a standalone application with Visual C# to modify the settings in Solidworks (I couldn't create a macro with Solidworks because it did not give me the option to save a macro as c#). I referenced both Sldworks and SwConst and called them in my application but it still doesn't modify any of the settings. Is there anything else I need to do in order for it to work?

SolidworksApi macros