title: DLL use in Python 2.7 with ctypes
body: <p>I have a problem about using DLL file. The code I used is below. In handbook of DLL it writes the signiture of function. I'm using Python 2.7</p>
  
  <pre><code>from ctypes import *
  mtrs= windll.LoadLibrary("mtrs.dll")
  mtrs.sw_Open("SystemWorks", 0, c_ulong( 0x100 | 0x10000), None, None)
  0
  </code></pre>
  
  <p>In handbook of DLL it writes the signature of function.</p>
  
  <pre><code>DLLINOUT BOOL WINAPI sw_Open(LPCSTR DeviceName, ULONG DeviceNumber, ULONG OpenFlags, void * Arg1, void * Arg2 );
  </code></pre>
  
  <p>Function returns false if device is not opened.</p>
  
  <p>Is there any error in parameters?</p>