def process_set_priority(process, priority):
ret = AUTO_IT.AU3_ProcessSetPriority(LPCWSTR(process), INT(priority))<EOL>if ret == <NUM_LIT:0>:<EOL><INDENT>if error() == <NUM_LIT:1>:<EOL><INDENT>raise AutoItError("<STR_LIT>")<EOL><DEDENT>elif error() == <NUM_LIT:2>:<EOL><INDENT>raise AutoItError("<STR_LIT>")<EOL><DEDENT><DEDENT>return ret<EOL>
Changes the priority of a process
:param process: The name or PID of the process to check.
:param priority:A flag which determines what priority to set
    0 - Idle/Low
    1 - Below Normal (Not supported on Windows 95/98/ME)
    2 - Normal
    3 - Above Normal (Not supported on Windows 95/98/ME)
    4 - High
    5 - Realtime (Use with caution, may make the system unstable)
:return: