title: List of GetLastError() error codes for every winapi function
body: <p>Is there a list that provides error codes that are returned by <strong>given</strong> winapi function through GetLastError() ? is there any official or unofficial resource that provides such documentation ?</p>
  
  <p>for example winsock function documentation pages on MSDN provide table of possible WSAGetLastError() codes, while other winapi functions do not have such list for every possible error of given function and this is the exact problem addressed in this question, I am asking for similar documentation for every winapi function.</p>
  
  <p>What I am <strong>not</strong> asking for:</p>
  
  <ul>
  <li><a href="https://msdn.microsoft.com/en-us/library/windows/desktop/ms681381%28v=vs.85%29.aspx" rel="nofollow noreferrer">List of winapi error codes</a></li>
  <li>Advice on implementing error-handling or some library that deals with error-handling </li>
  <li>advice on usage of FormatMessage() and similar</li>
  </ul>
  
  <p>EDIT: I am aware of <a href="https://stackoverflow.com/questions/19249273/windows-createfile-possible-error-codes">this</a> question, it deals with one particular function (CreateFile) which seems to be exception because third party file systems can provide their own error codes, even if most functions fall under this case, there still should be most common/standard error codes </p>
  
  <p>thanks in advance</p>