RtfwModifyScheduledProcess
RtfwModifyScheduledProcess modifies an existing scheduled process.
Syntax
bool RtfwModifyScheduledProcess( const RTFW_SCHEDULED_PROCESS * ScheduledProcess; int* reserved );
Parameters
ScheduledProcess
Pointer to the PRTFW_SCHEDULED_PROCESS structure that will be modified through this function. ScheduledID field is used to determine what scheduled process to modify.
Return Value
The function returns true if it succeeds. Otherwise, it returns false. Call GetLastError for additional error information.
Possible error codes:
Error Code | Meaning |
---|---|
RT_ERROR_INVALID_AFFINITY_MASK | An invalid affinity mask was specified. |
RT_ERROR_INVALID_IDEAL_PROCESSOR | An invalid ideal processor was specified. |
ERROR_INVALID_PARAMETER | One of the parameters of this function is NULL, or a field within the structure is invalid. |
RT_ERROR_STRUCTURE_TOO_SMALL | The Size member of a structure is too small. |
RT_ERROR_SCHEDULED_PROCESS_NOT_FOUND | Failed to find a scheduled process that matches the specified ScheduledID. |
Remarks
This function cannot be used to change the order of scheduled processes. To reorder the list of scheduled processes, delete and then insert the Scheduled Process into its new position.
Requirements
Minimum Required Version | RTX64 3.5 |
Header | RtfwAPI.h |
Library | RtfwAPI.lib |
See Also: