-
Notifications
You must be signed in to change notification settings - Fork 169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve Screenshot Detection by Modifying capture-screenshot.yml #1007
base: master
Are you sure you want to change the base?
Conversation
…nclude GDI, GDIP and DirectX API calls
Improve Screenshot Detection by Modifying capture-screenshot.yml
- and: | ||
- or: | ||
- api: "GetDC" | ||
- and: | ||
- api: "CreateDC" | ||
- optional: | ||
- string: "DISPLAY" | ||
- or: | ||
- and: | ||
- api: "SelectObject" | ||
- api: "DrawText" | ||
- and: | ||
- api: "CreateCompatibleDC" | ||
- api: "CreateCompatibleBitmap" | ||
- or: | ||
- api: "BitBlt" | ||
- api: "StretchBlt" | ||
- api: "PrintWindow" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some of this seems to be duplicated from above, right? would you please merge the logic where reasonable?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @williballenthin ,
I've tried to remove the duplicated parts of the code and committed the changes. Please let me know if further improvements are required.
adb3858
to
4cd4879
Compare
9fe63a9
to
ea56ada
Compare
Added GDI, GDIP, and DirectX API calls to improve detection accuracy for various screenshot capture methods.
This detects screenshot capture that uses GDI+ routines as well as CreateDC with other arguments along with DISPLAY. The test files include two executables that demonstrate the improved detection.
closes#981