title: How to find count of open file descriptors for current process in Windows and Linux?
body: <p>I want to know, how can I find number of open file descriptor in Windows OS. For Linux I know we can find it from:</p>
  
  <pre><code># cd /proc/&lt;pid of process&gt;/fd
  #ls -l | wc -l
  </code></pre>
  
  <p>But the above approach will not work for other platform like Windows.</p>
  
  <p>Is there any api which I can use in C-code, to find current open file descriptor for a process?</p>