I noticed that every GetSaveFileName/GetOpenFileName example on the web uses the ZeroMemory macro after initializing the OPENFILENAME structure, like this:
Code:
OPENFILENAME ofn;
ZeroMemory(&ofn,sizeof(ofn));
My question is why?
Why do I need to fill my structure with zeros?
What is OPENFILENAME any different from any other WinAPI structure I initialized before and didn't use ZeroMemory?