title: Using Windows functions to make a window modal
body: <p>I m using c# and I want to make a window a modal one and I want to use methods from Windows API for that.
  The SetWindowPos function can make a window a top most one, but I couldn t find a way to make it modal...</p>
  
  <p>Is there a way to do so with SetWindowPos or if not, is there any other windows function to do so?</p>