Expand patterns.txt for Windows API and display terms

Added regex patterns to detect Windows API constants (COINIT, EOAC, WINNT, UPDATEREGISTRY), display interface terms (HDMI, DVI, DisplayPort), and 2D region struct names. Improves recognition of technical terms related to Windows APIs and display hardware.
This commit is contained in:
Yu Leng
2025-12-27 02:40:25 +08:00
parent 8f80c92aee
commit af062088bd

View File

@@ -273,3 +273,16 @@ St&yle
# Usernames with numbers
# 0x6f677548 is user name but user folder causes a flag
\bx6f677548\b
# Windows API constants and hardware interface terms
\bCOINIT[_A-Z]*\b
\bEOAC[_A-Z]*\b
\b(?:RPC_C_AUTHN_)?WINNT\b
\bUPDATEREGISTRY\b
\b(?:CDS_)?UPDATEREGISTRY\b
# Display interface terms (HDMI, DVI, DisplayPort)
\b(?:HDMI|DVI|DisplayPort)(?:-\d+)?\b
# 2D Region struct names
\bDisplayConfig2?D?Region\b