Why do some structs want to know there size. For example WNDCLASSEX has a parameter cbSize which is filled out cbSize= sizeof(WNDCLASSEX), now why would that be important?
To determine what version of the struct you''re passing it. Future versions may have a few extra members added to the end, so the size will signal that you''re using an older version.
With your permission, GameDev.net uses analytics cookies to understand how people use the platform.
You can accept analytics or continue with necessary cookies only.
Learn more