bellportal
Newcomer
- Joined
- Oct 30, 2003
- Messages
- 5
Hi,
I have migrated from Win ME into Win XP (therefore VS 6 to VS.NET 2003 Pro.) and need some help. I only have knowledge in VB and nothing else - please help!
For a screensaver programme in VS 6, I had the following:
Public Const SPI_SCREENSAVERRUNNING = 97
Public Declare Function SystemParametersInfo Lib "user32" Alias "SystemParametersInfoA" (ByVal uAction As Long, ByVal uParam As Long, ByRef lpvParam As Any, ByVal fuWinIni As Long) As Long
'-------------------------------------------------------
'ENABLE/DISABLE CODE
'-------------------------------------------------------
'ENABLE:
'Call SystemParametersInfo(SPI_SCREENSAVERRUNNING, True, lPrev, 0)
'DISABLE:
'Call SystemParametersInfo(SPI_SCREENSAVERRUNNING, False, lPrev, 0)
In Win ME, the enable and disable code worked fine - keys like CTRL+ALT+DEL were blocked out, however, in XP, the code doesn't work! What do I need to change?
Mike
I have migrated from Win ME into Win XP (therefore VS 6 to VS.NET 2003 Pro.) and need some help. I only have knowledge in VB and nothing else - please help!
For a screensaver programme in VS 6, I had the following:
Public Const SPI_SCREENSAVERRUNNING = 97
Public Declare Function SystemParametersInfo Lib "user32" Alias "SystemParametersInfoA" (ByVal uAction As Long, ByVal uParam As Long, ByRef lpvParam As Any, ByVal fuWinIni As Long) As Long
'-------------------------------------------------------
'ENABLE/DISABLE CODE
'-------------------------------------------------------
'ENABLE:
'Call SystemParametersInfo(SPI_SCREENSAVERRUNNING, True, lPrev, 0)
'DISABLE:
'Call SystemParametersInfo(SPI_SCREENSAVERRUNNING, False, lPrev, 0)
In Win ME, the enable and disable code worked fine - keys like CTRL+ALT+DEL were blocked out, however, in XP, the code doesn't work! What do I need to change?
Mike