Problem with RegisterPowerSettingNotification and USER32.dll.
-
Hello, 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: HPOWERNOTIFY m_hPowerSchemeNotify; m_hPowerSchemeNotify = RegisterPowerSettingNotification ( NULL, &GUID_POWERSCHEME_PERSONALITY, DEVICE_NOTIFY_WINDOW_HANDLE ); 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. thanks
-
Hello, 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: HPOWERNOTIFY m_hPowerSchemeNotify; m_hPowerSchemeNotify = RegisterPowerSettingNotification ( NULL, &GUID_POWERSCHEME_PERSONALITY, DEVICE_NOTIFY_WINDOW_HANDLE ); 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. thanks
-
-
OK, according to MSDN, the minimum Windows version for this function is Vista. That means anything before Vista (like XP) won't have this function.
Best wishes, Hans
-
OK, according to MSDN, the minimum Windows version for this function is Vista. That means anything before Vista (like XP) won't have this function.
Best wishes, Hans