On Thu Jan 25 21:04:53 2024 +0000, Aida Jonikienė wrote:
`sizeof(MIB_ANYCASTIPADDRESS_TABLE)` would be a better size calculation (also maybe use `heap_alloc_zero` for safety)
Again I took inspiration from existing function GetUnicastIpAddressTable(). Basically the new code is supposed to return a structure that has member "NumEntries" and that member says how many structures of type MIB_ANYCASTIPADDRESS_ROW follow. Since I'm going to return zero rows, then the array of rows is zero-length. Of course I can allocate one row (rather then zero) that will not be used/populated with any data. Is that acceptable?