Programming Microsoft Windows Ce Net 3Rd [Electronic resources] نسخه متنی

اینجــــا یک کتابخانه دیجیتالی است

با بیش از 100000 منبع الکترونیکی رایگان به زبان فارسی ، عربی و انگلیسی

Programming Microsoft Windows Ce Net 3Rd [Electronic resources] - نسخه متنی

| نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
بیشتر
تنظیمات قلم

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
بیشتر
لیست موضوعات
توضیحات
افزودن یادداشت جدید






Timer Event Notifications

To run an application at a given time without user intervention, use a timer event notification. To schedule a timer event notification, use CeSetUserNotificationEx just as you do for the user notification but pass a NULL value in the pceun parameter, as you see on the followjng page.

CE_NOTIFICATION_TRIGGER cnt;
TCHAR szArgs[] = TEXT ("This is a timer notification.");
TCHAR szExeName[MAX_PATH];
memset (&nt, 0, sizeof (CE_NOTIFICATION_TRIGGER));
nt.dwSize = sizeof (CE_NOTIFICATION_TRIGGER);
nt.dwType = CNT_TIME;
nt.lpszApplication = szExeName;
nt.lpszArguments = szArgs;
nt.stStartTime = st;
GetModuleFileName (hInst, szExeName, sizeof (szExeName));
hNotify = CeSetUserNotificationEx (0, &nt, NULL);

When the timer notification is activated, the system powers on, if currently off, and launches the application with a command line parameter specified in the lpszArguments field of the notification trigger structure. As with the user notification, if the application is started, it should check to see whether another instance of the application is running and pass the notification on if one is running. Also, an application should be careful about creating a window and taking control of the machine during a timer event. The user might object to having his game of solitaire interrupted by another application popping up because of a timer notification.

/ 169