Initializing a struct
Sunday, May 15th, 2005Just saw something in some of Raymond Chen’s sample code that made me go "Wha…?!?" in a good way. It’s a line where he initializes a classic Windows struct, MONITORINFO, which like a lot of windows structs starts with a cbSize value [to hold the structures byte size— used as a kind of version/error […]