title: (FASM) How to call properly a WinAPI like FindFirstFile and FindNextFile without use invoke?
body: <p>My problem is the following: I have a program that looking for in the current directory for a specific file extension. The code works if I use invoke macro included in FASM. But I need call winAPI using the call instruction directly, and pushing their parameters in the stack.</p>
  
  <p>I have tried this, but don't works and crashes my program:</p>
  
  <pre><code>;Push parameters for the function
  push FIND_STRUCT     ;Put in the stack the address of FIND_STRUCT
  push file_extension  ;File extension
  call FindFirstFile   ; find the first *.fly
  </code></pre>
  
  <p>Please, Can somebody explain me how to call properly a WinAPI like FindFirstFile and FindNextFile??? Thanks for your answers.</p>