Use ZeroMemory on more places instead of {0,0}
Fix NULL handle passed as parameter.