Michael Van Canneyt wrote: > > It is not a big problem for me but > > in this case Lazarus (Win32 interface) will contain some redefinitions of > > this structures or will assign some magic constants into the cbSize > > parameters. > > I think the latter would be best. > > We can always insert the constants directly in the windows unit, so everyone > benefits.
Agreed. According to http://blogs.msdn.com/oldnewthing/archive/2003/12/12/56061.aspx cbSize is basically used as a magic number which has to be correct, rather than simply the size of the structure with some elements ignored by the OS. I'm sure I've come across cases where there was a list of sizes AKA magic numbers for use rather than a simple sizeof(), but I can't say which compiler or API family. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] _________________________________________________________________ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
