Win32API SystemParametersInfo in VB.NET

  • Thread starter Thread starter Shamil Salakhetdinov
  • Start date Start date
S

Shamil Salakhetdinov

Hi All,

I did try by myself and I did search on google but I can't find any info on
how to use SystemParametersInfo Win32API in VB.NET

Any useful samples, hints, tips & tricks will be greatly appreciated!

TIA,
Shamil
 
Thank you, Herfried!

I did check the URL you posted in your answer.
Looks OK but my task is more complicated I think.
I wanted to use SystemInformation API to get NONCLIENTMETRICS and logical
fonts information like in VB6 sample here:
http://www.activevb.de/tipps/vb6tipps/tipp0211.html

The problem is that I can't make marchaling working OK with NONCLIENTMETRICS
class/structure.
Marchal.SizeOf(...) returns wrong size of this structure - 200 instead of
340 and MarchalStructureToPtr(...) doesn't work well either with
NONCLIENTMETRICS class/structure I think (I can be wrong)

So, I may need more advanced samples/hints..
System.Windows.Forms.SystemInformation misses some info from
NONCLIENTMETRICS structure....

Shamil
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top