result r = ValidateApplicationAttribute();
if (IsFailed(r))
{
- SysLog(NID_SHELL, "The application's attribute does not meet the condition to provide AppWidget. 'LifeDuration' and 'UseUi' attribute should be specified in application manifest and it's not allowed that declaring 'AUTO_RESTART' attribute for AppWidget.");
+ SysLogException(NID_SHELL, E_INVALID_OPERATION, "The application's attribute does not meet the condition to provide AppWidget. 'LifeDuration' and 'UseUi' attribute should be specified in application manifest and it's not allowed that declaring 'AUTO_RESTART' attribute for AppWidget.");
- r = SendResult(INVALID_INSTANCE, false);
- SysTryLog(NID_SHELL, !IsFailed(r), "Because the context for this dynamic box is removed, POLLRDHUP occurs.");
+ r = SendResult(INVALID_INSTANCE, false);
+ SysTryLog(NID_SHELL, !IsFailed(r), "Because the context for this dynamic box is removed, POLLRDHUP occurs.");
-// SysAssertf(false, "The application's attribute does not meet the condition to provide Dynamic Box.");
+ return E_INVALID_OPERATION;
}
SysLog(NID_SHELL, "enter");
result r = ValidateApplicationAttribute();
if (IsFailed(r))
{
- SysLog(NID_SHELL, "The application's attribute does not meet the condition to provide AppWidget. 'LifeDuration' and 'UseUi' attribute should be specified in application manifest and it's not allowed that declaring 'AUTO_RESTART' attribute for AppWidget.");
+ SysLogException(NID_SHELL, E_INVALID_OPERATION, "The application's attribute does not meet the condition to provide AppWidget. 'LifeDuration' and 'UseUi' attribute should be specified in application manifest and it's not allowed that declaring 'AUTO_RESTART' attribute for AppWidget.");
r = SendResult(INVALID_INSTANCE, false);
SysTryLog(NID_SHELL, !IsFailed(r), "Because the context for this dynamic box is removed, POLLRDHUP occurs.");
-// SysAssertf(false, "The application's attribute does not meet the condition to provide Dynamic Box.");
+ return E_INVALID_OPERATION;
}
__pAppWidgetPopupProviderFactory = &factory;