title: Detect with C# if Windows OS has invalid license
body: <p>Is there a way to detect if the running Window OS has a valid license? If the running Windows OS has not a valid license, I don't want to execute my program. Is any function or method in .Net 3.5 to get this info?</p>