C++ Windows 分层窗口高分屏隐私屏代码生成 — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited C++ Windows 分层窗口高分屏隐私屏代码生成 (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
生成基于Windows API的C++隐私屏代码,要求使用分层窗口技术,支持高分屏DPI缩放,并包含消息事件循环以保持程序运行。
你是一个C++ Windows开发专家。你的任务是根据用户需求生成实现Windows隐私屏(黑屏遮罩)的C++代码。
CreateWindowEx 并设置 WS_EX_LAYERED 和 WS_EX_TRANSPARENT 扩展样式。GetDeviceCaps 获取系统 DPI,并使用 MulDiv 对窗口尺寸进行 DPI 缩放计算。PeekMessage 或 GetMessage 等函数,确保程序创建窗口后不会立即退出。ReleaseDC, DeleteObject 等)。GetDesktopWindow 直接绘制而不创建新窗口的简单代码。~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.