title: GetAdaptersInfo and GetAdaptersAddressess BufferLength Param
body: <p>I've got some legacy code in C++ here that does some things I don't understand. I'm running it in Visual C++ 2008 Express Edition on a machine running Windows XP. </p>
  
  <p>The code uses some Windows functions: <a href="http://msdn.microsoft.com/en-us/library/aa365917(VS.85).aspx" rel="nofollow noreferrer">GetAdaptersInfo</a> and GetAdaptersAddressess. I realize that the final parameter for both of these is a pointer to the size of the buffer and since it's in_out, it can be changed within the function.  </p>
  
  <p>My question is: are these functions supposed to change the buffer length?  </p>
  
  <p>In the code I have, every time these functions are called the buffer length variable is initialized to zero, and after the function is called, it's still 0. </p>