用户模式下的 WDA_MONITOR/WDA_EXCLUDEFROMCAPTURE 绕过器,使用未文档化的Windows函数和C#绑定。
主要特性:
安装包:
dotnet add thirdeye
截取屏幕截图,揭露任何隐藏窗口:
using ThirdEye;
using var session = new ThirdEyeSession()
session.CaptureToFile("screenshot.png");
可用的选项:
using var session = new ThirdEyeSession();
var options = new ThirdEyeOptions(
format: ThirdeyeFormat.Jpeg,
quality: 90,
bypassProtection: true
);
session.CaptureToFile("screenshot.jpeg", options);
如果需要,可以将截图存储在内存中:
using var session = new ThirdEyeSession()
byte[] bufferData = session.CaptureToBuffer();
#include "thirdeye_core.h"
ThirdeyeContext* ctx = nullptr;
if (Thirdeye_CreateContext(&ctx) == THIRDEYE_OK) {
Thirdeye_CaptureToFile(ctx, L"screenshot.jpg", nullptr);
Thirdeye_DestroyContext(ctx);
}