title: win32 API calls from cython
body: <p>Hi i'm trying to call the CreateFileA win32 function from a pyx file (cython file)(windows.h is already included from the pxd file), but it doesn't work ... does anyone ever tried to do so... needs help please</p>
  
  <p>More informations:
  i got no errors when compiling with Mingw, but at the execution i get -1 as return value..</p>
  
  <p><strong>illustration :</strong></p>
  
  <p><strong>myfile.pxd</strong></p>
  
  <pre><code>cdef extern from "ftd2xx.h":
  
     stuff....
  
     # CreateFileA declaration
  
     HANDLE **CreateFileA***(LPCSTR lpFileName, DWORD dwDesiredAccess, 
         DWORD dwShareMode, LPSECURITY_ATTRIBUTES lpSecurityAttributes, 
         DWORD dwCreationDisposition, DWORD dwFlagsAndAttributes, 
         HANDLE hTemplateFile)*
  </code></pre>
  
  <p><strong>myfile.pyx</strong></p>
  
  <pre><code>cimport myfile.pxd
  
  def somefuction()
  HANDLE a = myfile.**CreateFileA**(......)
  </code></pre>
  
  <p>at the execution <strong>i get -1</strong> </p>