Does CeRunAppAtTime work?

I have been doing this for a couple of days, and I just don't see CeRunAppAtTime working. I just want to ask if anyone ever has his job?

Can someone send a sample working code?

+3
source share
3 answers

If you look at notify.h, where CeRunAppAtTime is defined, you may notice that it is deprecated and not supported:

//
//Obsolete; provided to maintain compatibility only
//
HANDLE CeSetUserNotification (HANDLE hNotification,
                              TCHAR *pwszAppName,
                              SYSTEMTIME *lpTime,
                              PCE_USER_NOTIFICATION
                              lpUserNotification);
BOOL   CeRunAppAtTime (TCHAR *pwszAppName, SYSTEMTIME *lpTime);
BOOL   CeRunAppAtEvent(TCHAR *pwszAppName, LONG lWhichEvent);
BOOL   CeHandleAppNotifications (TCHAR *pwszAppName);

This may work even in most cases, but you are on your own.

Instead, it is recommended that you use CeSetUserNotificationEx.

+2
source

CeRunAppAtTime , , , , , . . CeSetUserNotificationEx . , . , , OEM- .

+1

It seems that the device should be set to full power on after starting your application, or it will return to "sleep". You can accomplish this by calling SetSystemPowerState, as described below here

0
source

Source: https://habr.com/ru/post/1708801/


All Articles