SystemParametersInfo doesn't work in vc.net !!

  • Thread starter Thread starter kenwhale
  • Start date Start date
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!
 
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
 
Back
Top