SystemParametersInfo doesn't work in vc.net !!

K

kenwhale

hi, all.
In my computer(windows2000 professional), I found this code doesn't
work!


SystemParametersInfo(0x2000/*SPI_GETFOREGROUNDLOCKTIMEOUT*/,0,&dwTimeOut,0))
;

The value of dwTimeOut always equals to Zero.But the same code in VC++
6.0 works well! Why ?? What things I should do for query the right value in
vc.net?? Thanks for any help!
 
D

David Lowndes

In my computer(windows2000 professional), I found this code doesn't
work!

SystemParametersInfo(0x2000/*SPI_GETFOREGROUNDLOCKTIMEOUT*/,0,&dwTimeOut,0))
;
The value of dwTimeOut always equals to Zero.But the same code in VC++
6.0 works well!

This is an OS API function, the choice of compiler has no bearing on
this code. Therefore I don't see how this is a VC6 vs .Net compiler
issue. Are the machine's different?

Dave
 

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

Top