Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion collection/screenshot/capture-screenshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,24 @@ rule:
- api: user32.GetDC
- and:
- api: gdi32.CreateDC
- string: "DISPLAY"
- string: /^DISPLAY.*$/i # Regex exp. to match "DISPLAY", "DISPLAY1", "DISPLAYVGA", etc.
- or:
- api: gdi32.BitBlt
- api: gdi32.GetDIBits
- api: gdi32.StretchBlt
- api: user32.PrintWindow
- api: gdi32.CreateCompatibleDC
- api: gdi32.CreateCompatibleBitmap
- optional:
- or:
- api: user32.GetSystemMetrics = fetch screen dimensions
- api: user32.GetDesktopWindow = get entire desktop
# GDI+ Screen capture
- and:
- api: GdipCreateBitmapFromScan0
- api: GdipGetImageGraphicsContext
- api: GdipGetDC

- basic block:
- and:
- api: BitBlt
Expand Down