Did I find the right examples for you? yes no

All Samples(25)  |  Call(21)  |  Derive(0)  |  Import(4)

src/p/y/python_toolbox-0.6.11/source_py3/python_toolbox/process_priority.py   python_toolbox(Download)
        pid = win32api.GetCurrentProcessId()
    handle = win32api.OpenProcess(win32con.PROCESS_ALL_ACCESS, True, pid)
    win32process.SetPriorityClass(handle, priorityclasses[priority])

src/p/y/python_toolbox-0.6.11/source_py2/python_toolbox/process_priority.py   python_toolbox(Download)
        pid = win32api.GetCurrentProcessId()
    handle = win32api.OpenProcess(win32con.PROCESS_ALL_ACCESS, True, pid)
    win32process.SetPriorityClass(handle, priorityclasses[priority])

src/p/y/python_toolbox-HEAD/source_py3/python_toolbox/process_priority.py   python_toolbox(Download)
        pid = win32api.GetCurrentProcessId()
    handle = win32api.OpenProcess(win32con.PROCESS_ALL_ACCESS, True, pid)
    win32process.SetPriorityClass(handle, priorityclasses[priority])

src/p/y/python_toolbox-HEAD/source_py2/python_toolbox/process_priority.py   python_toolbox(Download)
        pid = win32api.GetCurrentProcessId()
    handle = win32api.OpenProcess(win32con.PROCESS_ALL_ACCESS, True, pid)
    win32process.SetPriorityClass(handle, priorityclasses[priority])

src/g/a/GarlicSim-HEAD/garlicsim/garlicsim/general_misc/process_priority.py   GarlicSim(Download)
        pid = win32api.GetCurrentProcessId()
    handle = win32api.OpenProcess(win32con.PROCESS_ALL_ACCESS, True, pid)
    win32process.SetPriorityClass(handle, priorityclasses[priority])

src/g/a/garlicsim_py3-0.6.3/garlicsim/general_misc/process_priority.py   garlicsim_py3(Download)
        pid = win32api.GetCurrentProcessId()
    handle = win32api.OpenProcess(win32con.PROCESS_ALL_ACCESS, True, pid)
    win32process.SetPriorityClass(handle, priorityclasses[priority])

src/g/a/garlicsim-0.6.3/garlicsim/general_misc/process_priority.py   garlicsim(Download)
        pid = win32api.GetCurrentProcessId()
    handle = win32api.OpenProcess(win32con.PROCESS_ALL_ACCESS, True, pid)
    win32process.SetPriorityClass(handle, priorityclasses[priority])

src/c/o/cookbook-2.2.25/python/cookbook/process_priority.py   cookbook(Download)
        pid = win32api.GetCurrentProcessId()
    handle = win32api.OpenProcess(win32con.PROCESS_ALL_ACCESS, True, pid)
    win32process.SetPriorityClass(handle, priorityclasses[priority])
 
def make_current_process_nice():

src/d/e/Devede-HEAD/devede_executor.py   Devede(Download)
			pid=self.pid
		handle = win32api.OpenProcess(win32con.PROCESS_ALL_ACCESS, True, pid)
		win32process.SetPriorityClass(handle, priority_classes[priority])
 

src/s/e/segvault-HEAD/hachoir/hachoir-tools/fuzzer/tools.py   segvault(Download)
from sys import platform
 
if platform == 'win32':
    from win32process import (GetCurrentProcess, SetPriorityClass,
        BELOW_NORMAL_PRIORITY_CLASS)
    def beNice():
        process = GetCurrentProcess()
        # FIXME: Not supported on Windows 95/98/Me/NT: ignore error?
        # which error?
        SetPriorityClass(process, BELOW_NORMAL_PRIORITY_CLASS)

  1 | 2 | 3  Next