Copy Screenshot To Clipboard Windows Jun 2026

The application must not delete hBitmap after calling SetClipboardData , as ownership transfers to the system.

Find the toggle that says Turn it On .

Developers can interact with screenshot-to-clipboard functionality using the Win32 API. Below is a minimal C++ example to programmatically copy a screenshot of the primary monitor to the clipboard. copy screenshot to clipboard windows

HBITMAP hBitmap = CreateCompatibleBitmap(hdcScreen, width, height); SelectObject(hdcMem, hBitmap); BitBlt(hdcMem, 0, 0, width, height, hdcScreen, 0, 0, SRCCOPY); The application must not delete hBitmap after calling