I'm using SystemParametersInfo to get NONCLIENTMETRICS, as demonstrated here
It is working for me in XP, but I suspect it might have problems in Vista. (I hope to test this soon).
According to this msdn page
, \"int iPaddedBorderWidth\" has been added to the structure for Vista and later.
So, MS suggests using \"#if (WINVER >= 0x0600)\" within the struct.
But in C# I can't use a preprocessor conditional with >=.
How do I work around this?
Thanks for any help.