title: ruby win32api question related to export and return values
body: <p>I am  trying out the win32api of ruby. I am facing two issues:- </p>
  
  <ol>
  <li><p>I understand the basic concept, trying to work it with Ruby. I get segmentation fault sometimes. Is it because the parameter type(that I specify in the new) does not match actual the function definition? It certainly corresponds to that observation, but I am not sure. Wanted confirmation from someone.</p></li>
  <li><p>The API I am trying is from wlanapi.dll(http://msdn.microsoft.com/en-us/library/ms706759%28v=vs.85%29.aspx) . I need to automate wifi connections from my windows machine for testing. As you can see, the function has both _out parameters and a return value. I wanted to know which of these corresponds to the "export" of the win32api new function definition(http://www.rubycentral.com/pickaxe/lib_windows.html) . I thought it is the actual return value i.e. success or one of the error messages. In that case, how do I get the other _out params like the handle, I need to use this handle for the other functions. </p></li>
  </ol>
  
  <p>Thanks and Regards</p>