Use the _countof macro instead of hardcoded numbers.
Use ZeroMemory on more places instead of {0,0}