title: Easiest way to get the OpenGL Version with C#
body: <p>I use an external C++ DLL which useses OpenGL. But the external DLL chrashes when there is no OpenGL on the running system. I tried to catch the exception from the dll in my C# code, but it seems like I can not catch it, because the exception is raised in the c++ dll.</p>
  
  <p>So my next idea is it to implement a simple function that checks, which version of OpenGL is installed. </p>
  
  <p>I have absolute no idea of OpenGL and how it works, but someone told me I need to create a context to get the version of it.
  Is there a simple way to implement a function that does that in C#? I do not want to import a heavy dll like OpenTK just to get the version.</p>
  
  <p>Can I directly call the opengl32.dll and create a context to get the version?</p>
  
  <p>e.g.</p>
  
  <pre><code>[DllImport("opengl32.dll")]
  public static extern string glGetString(string glVersion);
  </code></pre>
  
  <p>I know that this snippet won't work, but what does it need to make it work?
  How can I create such a context, because if that won't work I might already know that there is no OpenGL and my problem would be solved if I can catch that.</p>