Did I find the right examples for you? yes no

All Samples(18)  |  Call(17)  |  Derive(0)  |  Import(1)

src/m/a/main-HEAD/External.LCA_RESTRICTED/Languages/IronPython/27/Lib/site-packages/win32/Demos/winprocess.py   main(Download)
        owned by this process.
        """
        TId, PId = win32process.GetWindowThreadProcessId(hwnd)
        if PId == self.PId:
            win32gui.PostMessage(hwnd, win32con.WM_CLOSE, 0, 0)

src/t/r/TrustRouter-HEAD/client/packaging/Windows/Python32/Lib/site-packages/win32/Demos/winprocess.py   TrustRouter(Download)
        owned by this process.
        """
        TId, PId = win32process.GetWindowThreadProcessId(hwnd)
        if PId == self.PId:
            win32gui.PostMessage(hwnd, win32con.WM_CLOSE, 0, 0)

src/e/i/einstein-HEAD/Python25Einstein/Lib/site-packages/win32/Demos/winprocess.py   einstein(Download)
        owned by this process.
        """
        TId, PId = win32process.GetWindowThreadProcessId(hwnd)
        if PId == self.PId:
            win32gui.PostMessage(hwnd, win32con.WM_CLOSE, 0, 0)

src/s/u/SublimeSpeech-HEAD/lib/pywin64bit/win32/Demos/winprocess.py   SublimeSpeech(Download)
        owned by this process.
        """
        TId, PId = win32process.GetWindowThreadProcessId(hwnd)
        if PId == self.PId:
            win32gui.PostMessage(hwnd, win32con.WM_CLOSE, 0, 0)

src/s/u/SublimeSpeech-HEAD/lib/pywin32bit/win32/Demos/winprocess.py   SublimeSpeech(Download)
        owned by this process.
        """
        TId, PId = win32process.GetWindowThreadProcessId(hwnd)
        if PId == self.PId:
            win32gui.PostMessage(hwnd, win32con.WM_CLOSE, 0, 0)

src/s/u/superpy-1.2.6/superpy/utils/winprocess.py   superpy(Download)
        owned by this process.
        """
        _TId, PId = win32process.GetWindowThreadProcessId(hwnd)
        if PId == self.PId:
            win32gui.PostMessage(hwnd, win32con.WM_CLOSE, 0, 0)

src/v/i/VistA-HEAD/Python/Pexpect/winpexpect.py   VistA(Download)
                      CloseHandle, GetCurrentThread, STD_INPUT_HANDLE)
from win32pipe import CreateNamedPipe, ConnectNamedPipe
from win32process import (STARTUPINFO, CreateProcess, CreateProcessAsUser,
			  GetExitCodeProcess, TerminateProcess, ExitProcess,
                          GetWindowThreadProcessId)
        def cb_comparewnd (hwnd, lparam):
            _, pid = GetWindowThreadProcessId(hwnd)
            if pid == self.pid:
                find_hwnds.append(hwnd)
            return True

src/e/n/enso-portable-HEAD/enso/commands/go.py   enso-portable(Download)
 
            # Get PID so we can get process name
            _, process_id = win32process.GetWindowThreadProcessId(found_win)
            process = ""
            try:

src/l/i/Lightningbeam-HEAD/GUI/Win32/Application.py   Lightningbeam(Download)
        hwin = gui.GetWindow(htop, wc.GW_CHILD)
        while hwin:
            wpid = wp.GetWindowThreadProcessId(hwin)[1]
            if wpid == apid:
                #print "... hwin", hwin ###

src/f/p/fpdb-sql-HEAD/pyfpdb/WinTables.py   fpdb-sql(Download)
 
        # Open the process, and query it's filename
        processid = win32process.GetWindowThreadProcessId(hwnd)
        pshandle = win32api.OpenProcess(win32con.PROCESS_QUERY_INFORMATION | win32con.PROCESS_VM_READ, False, processid[1])
        exename = win32process.GetModuleFileNameEx(pshandle, 0)

  1 | 2  Next