MCPcopy
hub / github.com/claude-code-best/claude-code / cb

Function cb

src/utils/computerUse/win32/bridge.py:177–186  ·  view source on GitHub ↗
(hwnd, _)

Source from the content-addressed store, hash-verified

175 """Enumerate all visible windows with title."""
176 windows = []
177 def cb(hwnd, _):
178 if user32.IsWindowVisible(hwnd):
179 length = user32.GetWindowTextLengthW(hwnd)
180 if length > 0:
181 buf = ctypes.create_unicode_buffer(length + 1)
182 user32.GetWindowTextW(hwnd, buf, length + 1)
183 pid = ctypes.c_uint32()
184 user32.GetWindowThreadProcessId(hwnd, ctypes.byref(pid))
185 windows.append({'hwnd': str(hwnd), 'pid': pid.value, 'title': buf.value})
186 return True
187 user32.EnumWindows(WNDENUMPROC(cb), 0)
188 return windows
189

Callers 15

onRenderMethod · 0.85
notifySelectionChangeMethod · 0.85
setTerminalFocusedFunction · 0.85
resetTerminalFocusStateFunction · 0.85
diffRowBothFunction · 0.85
diffRowRemovedFunction · 0.85
diffRowAddedFunction · 0.85
diffDifferentWidthFunction · 0.85
publishMethod · 0.85
killInProcessTeammateFunction · 0.85
runInProcessTeammateFunction · 0.85

Calls 2

strFunction · 0.85
appendMethod · 0.45

Tested by 6

_execFileImplPDFunction · 0.68
_execFileImplFunction · 0.68
setExecFileSuccessFunction · 0.68
setExecFileFailFunction · 0.68
setExecFileSequenceFunction · 0.68
_execFileImplBaseFunction · 0.68