title: Extracting URL from active Window (if Chrome or IE is opened ) through JNA
body: <p>I need your help to extract the Active Window URL details.</p>
  <p>I got few links to get Active Window and window title</p>
  <pre><code>char[] buffer = new char[MAX_TITLE_LENGTH * 2];
  HWND hwnd = User32.INSTANCE.GetForegroundWindow();
  User32.INSTANCE.GetWindowText(hwnd, buffer, MAX_TITLE_LENGTH);
  System.out.println(&quot;Active window title: &quot; + Native.toString(buffer)); 
  </code></pre>
  <p>If active window is Chrome How do I get what is URL currently being browsed?</p>