The MASM Forum Archive 2004 to 2012

General Forums => The Workshop => Topic started by: dedndave on July 28, 2011, 04:45:01 PM

Title: NONCLIENTMETRICS Structure Size
Post by: dedndave on July 28, 2011, 04:45:01 PM
MSDN tells us that vista and win 7 have an additional member in NONCLIENTMETRICS
what they don't tell us is whether or not the old size structure will work in newer OS's

here's what i get with XP MCE 2005 SP3...
OS Version: 5.1.2600 Service Pack 3
Structure Size: 340  SPI Status: 00000001
Structure Size: 344  SPI Status: 00000000


i am interested to see what it does under vista and win 7
Title: Re: NONCLIENTMETRICS Structure Size
Post by: dedndave on July 28, 2011, 05:56:03 PM
anyone ????? (bump)
Title: Re: NONCLIENTMETRICS Structure Size
Post by: qWord on July 28, 2011, 06:45:05 PM
windows is mostly backwards compatible - for me it works  :P
Title: Re: NONCLIENTMETRICS Structure Size
Post by: dedndave on July 28, 2011, 07:15:52 PM
it returns nonzero for both sizes ???
what OS ?
could you copy/paste, please
Title: Re: NONCLIENTMETRICS Structure Size
Post by: qWord on July 28, 2011, 07:40:42 PM
Win7, x86-64
Quote---------------------------
NONCLIENTMETRICS Structure Size Test
---------------------------
OS Version: 6.1.7601 Service Pack 1
Structure Size: 340  SPI Status: 00000001
Structure Size: 344  SPI Status: 00000001

(Use Ctrl-Insert to Copy to ClipBoard)
---------------------------
OK   
---------------------------
Title: Re: NONCLIENTMETRICS Structure Size
Post by: dedndave on July 28, 2011, 08:09:05 PM
thanks   :U
Title: Re: NONCLIENTMETRICS Structure Size
Post by: Bill Cravener on July 28, 2011, 08:11:35 PM
Here ya be Dave. Vista Home Premium.

---------------------------
NONCLIENTMETRICS Structure Size Test
---------------------------
OS Version: 6.0.6002 Service Pack 2
Structure Size: 340  SPI Status: 00000001
Structure Size: 344  SPI Status: 00000001

(Use Ctrl-Insert to Copy to ClipBoard)
---------------------------
OK   
---------------------------
Title: Re: NONCLIENTMETRICS Structure Size
Post by: dedndave on July 28, 2011, 08:17:23 PM
thanks, Bill
now that i think about it, it was a stupid question   :lol
of course, it will work !!!!! (DOH!)
Title: Re: NONCLIENTMETRICS Structure Size
Post by: Bill Cravener on July 29, 2011, 12:18:18 PM
Glad to buddy, regardless if it works or not I always enjoy reading the code of others. To an asm loving geek like me its better reading then a good book. :bg
Title: Re: NONCLIENTMETRICS Structure Size
Post by: dedndave on July 29, 2011, 12:43:40 PM
hope you found something interesting, Bill   :bg