title: InternetGetCookie error 259 ERROR_NO_MORE_ITMES c++
body: <p>I've to check/get cookies of one site because i cannot, i've always got error 259 ERROR_NO_MORE_ITEMS with InternetGetCookies function</p>
  
  <p>(exemple: check/get cookie of "<a href="http://www.google.fr" rel="nofollow">http://www.google.fr</a>" url doesn't run, i have Error 259.</p>
  
  <pre><code>wchar_t wchCookiesData[4096]; 
  unsigned long ulCookiesDataLength = 0; 
  bool bRet = InternetGetCookie(L"http://www.google.fr", NULL, out_pwchCookiesData, &amp;ulCookiesDataLength ); 
  </code></pre>
  
  <p>That is my code just for my first test, and InternetGetCookie function return false (getlasterror() return 259) </p>
  
  <p>Where InterentGetCookie get cookies??? i think is in <code>"C:\Users\username\AppData\Roaming\Microsoft\Windows"</code>, but here i don't have Cookies folder. I can see some cookies in  <code>"C:\Users\username\AppData\Local\Microsoft\Windows\INetCookies"</code></p>
  
  <p>Anyone has solution??</p>
  
  <p>Thanks</p>