creating desktop notificator

This commit is contained in:
jakani24
2024-11-09 09:42:18 +01:00
parent d262a1dbac
commit 694ffd9ddf
18 changed files with 544 additions and 0 deletions

View File

@@ -148,6 +148,20 @@ int create_task()
return 1;
}
hr = pSettings->put_StopIfGoingOnBatteries(VARIANT_FALSE);
pSettings->Release();
if (FAILED(hr))
{
cout << "Cannot set dont stop on batteries: " << hex << hr << endl;
pRootFolder->Release();
pTask->Release();
CoUninitialize();
return 1;
}
ITriggerCollection* pTriggerCollection = NULL;
hr = pTask->get_Triggers(&pTriggerCollection);
if (FAILED(hr))