Lazarus
Programming => Operating Systems => Windows => Topic started by: eldonfsr on June 03, 2022, 03:26:31 pm
-
Hi it's possible from app create schedule and add this schedules to taskmanager...
I know i can create that on task manager....
-
I believe the API is exposed in Windows unit, or one of the winunits-xxx packages. Unfortunately, unless someone else already does so, you have to read and understand in C++ as that's what MS used in their documentation. Starting page is here (https://docs.microsoft.com/en-us/windows/win32/taskschd/task-scheduler-start-page), while an example is here (https://docs.microsoft.com/en-us/windows/win32/taskschd/time-trigger-example--c---), you can just replace the notepad with whatever you want and change the schedule accordingly.
-
C++
No it is plain C.
-
https://forum.lazarus.freepascal.org/index.php?topic=40821.0
or create XML files for task scheduler and register the task:
https://docs.microsoft.com/en-us/windows/win32/taskschd/time-trigger-example--xml-
-
C++
No it is plain C.
No, it's a C compliant C++. That's the reason why the documentation mentions C++ consistently instead of C or even C/C++ (well, this one still appears sometimes, but maybe an overlook or old writing).