My count returned same 512 bytes (with 64-byte arrays, another array, 2-byte SHORTs and 4-byte the rest of members).
I'm really curious what is wrong in that function.
Either the first parameter has to be a strictly predefined value with even the letter case important, or some structure fields must be populated before calling this function. If not -- I'm out of versions :)