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.
The code uses some Windows functions: GetAdaptersInfo 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.
My question is: are these functions supposed to change the buffer length?
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.