Re: Help with SystemParametersInfo call
- Posted by CChris <christian.cuvier at agric?lture.g?uv.fr> Nov 07, 2007
- 634 views
There is an inconsistency on MSDN indeed ( http://msdn2.microsoft.com/en-us/library/ms724506.aspx ). The descriotion of the members wrongly refers to them as pointers to LOGFONT structures, but the list in the grey rectangle mentions LOGFONT type parameters, which is correct. By the way, in win32lib 0.70.1 and later: you can say:
-- define a structure member as a LOGFONT structure someStruct_myLogFont = w32allot(ID_LOGFONT) -- define a structure member as an array of LOGFONT structures someStruct_myLogFont = w32allot({3,ID_LOGFONT}) -- nested fields can be specified like this w32store(addr,{someStruct_myLogFont,lfHeight},120)
w32constants.ew has quite a few definitions like this. Check out the docs for further ways to deal with variable size members, or arrays which are counted, or whose ends have a specific marker (some Windows structures are like that :( ). Unions are supported too. CChris