Windows API category
Spying
Input capture and screen/clipboard reads. Hooks and polling loops are the usual mechanisms. Legitimate uses include accessibility tools, remote support, screenshot utilities and clipboard managers.
Capturing keystrokes, clipboard data, windows, screens or audio. This category contains 64 APIs.
Open Spying in the interactive atlasSpying APIs
Last reviewed or generated: .
-
AttachThreadInput
Attaches the input processing of one thread to another.
-
BitBlt
Copies pixels between device contexts, the core call for screen capture.
-
BlockInput
Blocks keyboard and mouse input for the session.
-
CallNextHookEx
Passes the current hook notification to the next procedure in the hook chain.
-
ClipCursor
Confines the cursor to a rectangle, a common annoyance tactic.
-
CloseClipboard
Closes the clipboard.
-
CreateCompatibleBitmap
Creates a bitmap compatible with a device context.
-
CreateCompatibleDC
Creates a memory device context compatible with another DC.
-
CreateFontW
Creates a logical font for GDI text rendering from a family name and size.
-
EmptyClipboard
Empties the clipboard and frees its handles.
-
EnumClipboardFormats
Enumerates the formats currently available on the clipboard.
-
EnumDisplayMonitors
Enumerates display monitors attached to the desktop.
-
GetActiveWindow
Returns the active window of the calling thread.
-
GetAsyncKeyState
Retrieves the status of a virtual key, including whether it is currently down and whether it was pressed since the previous call.
-
GetClientRect
Returns the client area rectangle of a window.
-
GetClipboardData
Retrieves clipboard data in a requested format.
-
GetClipboardSequenceNumber
Returns the clipboard change counter, ideal for cheap polling loops.
-
GetCursorPos
Retrieves the cursor position in screen coordinates.
-
GetDC
Retrieves a device context for a window or the entire screen.
-
GetDesktopWindow
Returns the desktop window handle.
-
GetDIBits
Copies bitmap bits into a DIB buffer for saving or exfiltration.
-
GetForegroundWindow
Returns a handle to the window currently receiving user input.
-
GetKeyboardState
Copies the status of all 256 virtual keys into a buffer.
-
GetKeyState
Returns the state of a specific virtual key for the calling thread queue.
-
GetMessageW
Retrieves messages from the calling thread message queue.
-
GetMonitorInfoW
Returns the bounds and work area of a monitor.
-
GetShellWindow
Returns the shell desktop window handle.
-
GetWindowDC
Retrieves a DC for an entire window including non-client area.
-
GetWindowRect
Returns the bounding rectangle of a window in screen coordinates.
-
GetWindowTextW
Copies the title of a window or control into a buffer.
-
IsClipboardFormatAvailable
Checks whether a clipboard format is present.
-
IsWindowVisible
Reports whether a window is visible.
-
keybd_event
Synthesises a keyboard event; deprecated but still used.
-
MapVirtualKeyW
Translates between virtual-key codes, scan codes and characters.
-
mouse_event
Synthesises a mouse event; deprecated in favour of SendInput.
-
OpenClipboard
Opens the clipboard for inspection or modification.
-
OpenInputDesktop
Opens the current input desktop handle, a step towards capturing or injecting into the user session.
-
PeekMessageW
Checks the message queue without blocking.
-
PostMessageW
Posts a message to a window message queue without waiting.
-
PrintWindow
Asks a window to render itself into a device context, even when partially obscured.
-
RegisterHotKey
Registers a system-wide hotkey.
-
SelectObject
Selects a GDI object into a device context.
-
SendInput
Synthesises keyboard and mouse input at the system level.
-
SendMessageW
Sends a message to a window procedure and waits for it to return.
-
SetActiveWindow
Activates a window within the calling thread.
-
SetClipboardData
Places data in the clipboard in the specified format; the clipboard must be open.
-
SetCursorPos
Moves the cursor to absolute screen coordinates.
-
SetForegroundWindow
Brings a window to the foreground and gives it focus.
-
SetKeyboardState
Sets the keyboard state array for the calling thread.
-
SetWindowLongPtrW
Changes a window attribute such as its window procedure or user data.
-
SetWindowPos
Changes a window size, position and z-order, sometimes to hide UI.
-
SetWindowsHookExA
ANSI variant of SetWindowsHookEx.
-
SetWindowsHookExW
Installs an application-defined hook procedure into a hook chain to monitor messages, keyboard or mouse input for a thread or all threads on a desktop.
-
SetWinEventHook
Subscribes to UI accessibility events such as focus or window changes.
-
ShowWindow
Sets the show state of a window.
-
StretchBlt
Copies and scales pixels between device contexts.
-
ToUnicodeEx
Translates keystrokes into Unicode characters, common in keyloggers.
-
UnhookWindowsHookEx
Removes a hook procedure installed by SetWindowsHookEx.
-
VkKeyScanW
Maps a character to a virtual-key code and shift state.
-
waveInAddBuffer
Queues a buffer to receive recorded audio.
-
waveInClose
Closes a waveform input device.
-
waveInOpen
Opens a waveform audio input device such as the microphone.
-
waveInPrepareHeader
Prepares an audio buffer header before recording.
-
waveInStart
Starts recording from an opened waveform input device.