7,655
社区成员
发帖
与我相关
我的任务
分享
BOOL NotifyChange()
{
//Gets the handle to the power manager reload activity timeout event
HANDLE hevReloadActivityTimeouts=OpenEvent(EVENT_ALL_ACCESS, FALSE, _T("PowerManager/ReloadActivityTimeouts"));
//If we got valid one then invoke the event
if (hevReloadActivityTimeouts) {
SetEvent(hevReloadActivityTimeouts); //Set the state of the event to Signal
CloseHandle(hevReloadActivityTimeouts); //close the handle of the event
return TRUE;
}
return FALSE;
}