March 10th, 2011, 05:33 AM
Problem with RegisterPowerSettingNotification and USER32.dll.
When I call to the fanction RegisterPowerSettingNotification I get a runtime error:
"The procedure entry point could not be located in the dynamic link library USER32.dll."
I tried to replace user32.dll but its didnt help.
My OS is windows xp, the code is:
m_hPowerSchemeNotify = RegisterPowerSettingNotification (
if ( NULL == m_hPowerSchemeNotify )
ATLTRACE("Failed to register for notification of power scheme changes!\n");
if anyone can guid me how can I solve this problam I would be very grateful for him.
March 10th, 2011, 06:41 AM
Re: Problem with RegisterPowerSettingNotification and USER32.dll.
Never ever replace user32.DLL manually!
Check the MSDN RegisterPowerSettingNotification, it clearly says you need at least Vista or Windows Server 2008. It will not work on XP.
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.