Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(12)  |  Call(12)  |  Derive(0)  |  Import(0)

src/c/a/calibre-HEAD/src/calibre/utils/socket_inheritance.py   calibre(Download)
        if iswindows:
            import win32api, win32con
            flags = win32api.GetHandleInformation(socket.fileno())
            return bool(flags & win32con.HANDLE_FLAG_INHERIT)
        else:

src/m/i/microactor-HEAD/microactor/arch/windows/iocp.py   microactor(Download)
def validate_handle(handle):
    try:
        win32api.GetHandleInformation(handle)
    except win32api.error as ex:
        if ex.winerror == 6: # ERROR_INVALID_HANDLE

src/o/h/oh-mainline-HEAD/vendor/packages/twisted/twisted/test/test_process.py   oh-mainline(Download)
        def cbConnected(transport):
            self.assertIdentical(transport, proc)
            # perform a basic validity test on the handles
            win32api.GetHandleInformation(proc.hProcess)
            win32api.GetHandleInformation(proc.hThread)

src/u/n/UnitScan-HEAD/twisted/test/test_process.py   UnitScan(Download)
        def cbConnected(transport):
            self.assertIdentical(transport, proc)
            # perform a basic validity test on the handles
            win32api.GetHandleInformation(proc.hProcess)
            win32api.GetHandleInformation(proc.hThread)

src/m/y/mythbox-HEAD/resources/lib/twisted/twisted/test/test_process.py   mythbox(Download)
        def cbConnected(transport):
            self.assertIdentical(transport, proc)
            # perform a basic validity test on the handles
            win32api.GetHandleInformation(proc.hProcess)
            win32api.GetHandleInformation(proc.hThread)

src/s/u/SubliminalCollaborator-HEAD/libs/twisted/test/test_process.py   SubliminalCollaborator(Download)
        def cbConnected(transport):
            self.assertIdentical(transport, proc)
            # perform a basic validity test on the handles
            win32api.GetHandleInformation(proc.hProcess)
            win32api.GetHandleInformation(proc.hThread)

src/t/w/Twisted-13.2.0/twisted/test/test_process.py   Twisted(Download)
        def cbConnected(transport):
            self.assertIdentical(transport, proc)
            # perform a basic validity test on the handles
            win32api.GetHandleInformation(proc.hProcess)
            win32api.GetHandleInformation(proc.hThread)