SystemParametersInfo problems

  • Thread starter Thread starter Toxalot
  • Start date Start date
T

Toxalot

I'm using SystemParametersInfo and get the following error

can't find dll entry point SystemParametersInfo in user32

My declare line is as follows

Declare Function SystemParametersInfo Lib "user32" _
(ByVal uAction As Long, ByVal uParam As Long, _
ByRef lpvParam As Any, ByVal fuWinIni As Long) As Long

OS is WinXP SP2

Any ideas?
 
I was missing the Alias. I added that and it works great now.

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

Jennifer
 
Back
Top