How to programmatically disable Nvidia Image Sharpening?

I’m developing a program that looks terrible if NVIDIA Image Sharpening is turned on.

How can I programmatically turn image sharpening off?

Or, failing that, how can I detect that it is turned on (so I can tell the user how to turn it off)?

Thanks in advance.

P.S. I’m programming in C# on Windows 10, if that matters for the answer.