Did I find the right examples for you? yes no

All Samples(28)  |  Call(26)  |  Derive(0)  |  Import(2)

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()

src/s/e/segvault-HEAD/cacaphp/tools.py   segvault(Download)
 
if platform == 'win32':
    from win32process import (GetCurrentProcess, SetPriorityClass,
        BELOW_NORMAL_PRIORITY_CLASS)
 
    def beNice():
        process = GetCurrentProcess()

src/m/a/main-HEAD/External.LCA_RESTRICTED/Languages/IronPython/27/Lib/site-packages/win32/Demos/security/setuserobjectsecurity.py   main(Download)
info=win32security.OWNER_SECURITY_INFORMATION|win32security.GROUP_SECURITY_INFORMATION|win32security.DACL_SECURITY_INFORMATION
 
ph=win32process.GetCurrentProcess()
th = win32security.OpenProcessToken(ph,win32security.TOKEN_ALL_ACCESS)  ##win32con.TOKEN_ADJUST_PRIVILEGES)
win32security.AdjustTokenPrivileges(th,0,new_privs)

src/t/r/TrustRouter-HEAD/client/packaging/Windows/Python32/Lib/site-packages/win32/Demos/security/setuserobjectsecurity.py   TrustRouter(Download)
info=win32security.OWNER_SECURITY_INFORMATION|win32security.GROUP_SECURITY_INFORMATION|win32security.DACL_SECURITY_INFORMATION
 
ph=win32process.GetCurrentProcess()
th = win32security.OpenProcessToken(ph,win32security.TOKEN_ALL_ACCESS)  ##win32con.TOKEN_ADJUST_PRIVILEGES)
win32security.AdjustTokenPrivileges(th,0,new_privs)

src/e/i/einstein-HEAD/Python25Einstein/Lib/site-packages/win32/Demos/security/setuserobjectsecurity.py   einstein(Download)
info=win32security.OWNER_SECURITY_INFORMATION|win32security.GROUP_SECURITY_INFORMATION|win32security.DACL_SECURITY_INFORMATION
 
ph=win32process.GetCurrentProcess()
th = win32security.OpenProcessToken(ph,win32security.TOKEN_ALL_ACCESS)  ##win32con.TOKEN_ADJUST_PRIVILEGES)
win32security.AdjustTokenPrivileges(th,0,new_privs)

src/s/u/SublimeSpeech-HEAD/lib/pywin64bit/win32/Demos/security/setuserobjectsecurity.py   SublimeSpeech(Download)
info=win32security.OWNER_SECURITY_INFORMATION|win32security.GROUP_SECURITY_INFORMATION|win32security.DACL_SECURITY_INFORMATION
 
ph=win32process.GetCurrentProcess()
th = win32security.OpenProcessToken(ph,win32security.TOKEN_ALL_ACCESS)  ##win32con.TOKEN_ADJUST_PRIVILEGES)
win32security.AdjustTokenPrivileges(th,0,new_privs)

src/s/u/SublimeSpeech-HEAD/lib/pywin32bit/win32/Demos/security/setuserobjectsecurity.py   SublimeSpeech(Download)
info=win32security.OWNER_SECURITY_INFORMATION|win32security.GROUP_SECURITY_INFORMATION|win32security.DACL_SECURITY_INFORMATION
 
ph=win32process.GetCurrentProcess()
th = win32security.OpenProcessToken(ph,win32security.TOKEN_ALL_ACCESS)  ##win32con.TOKEN_ADJUST_PRIVILEGES)
win32security.AdjustTokenPrivileges(th,0,new_privs)

src/a/f/affinity-0.1.0/affinity/__init__.py   affinity(Download)
    def _get_handle_for_pid(pid, ro=True):
        if pid == 0:
            pHandle = win32process.GetCurrentProcess()
        else:
            flags = win32con.PROCESS_QUERY_INFORMATION

src/i/n/IncPy-HEAD/Tools/pybench/systimes.py   IncPy(Download)
def win32process_getprocesstimes_systimes():
    d = win32process.GetProcessTimes(win32process.GetCurrentProcess())
    return (d['UserTime'] / WIN32_PROCESS_TIMES_TICKS_PER_SECOND,
            d['KernelTime'] / WIN32_PROCESS_TIMES_TICKS_PER_SECOND)
 

src/s/l/SlopPy-HEAD/Tools/pybench/systimes.py   SlopPy(Download)
def win32process_getprocesstimes_systimes():
    d = win32process.GetProcessTimes(win32process.GetCurrentProcess())
    return (d['UserTime'] / WIN32_PROCESS_TIMES_TICKS_PER_SECOND,
            d['KernelTime'] / WIN32_PROCESS_TIMES_TICKS_PER_SECOND)
 

  1 | 2 | 3  Next