Files
MemRelay/projects/ea207d36-693c-4349-b3c8-7c40c8c889f5/WinUnLock 项目定位:本机定时自动解锁.md
T

24 lines
1.7 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: WinUnLock 项目定位:本机定时自动解锁
type: prd
permalink: main/projects/ea207d36-693c-4349-b3c8-7c40c8c889f5/win-un-lock-项目定位本机定时自动解锁
stable_id: 0882a1ad-94c0-4a20-9e3b-f65210c0f8b1
scope: project
project_id: ea207d36-693c-4349-b3c8-7c40c8c889f5
memory_type: prd
status: active
revision: 1
restored_from_commit: 6a6a895eafcca6052e81a14fca103a42635dd1c2
created_at: '2026-09-23T15:12:05.448115+00:00'
updated_at: '2026-09-23T15:12:05.448170+00:00'
---
目标:在用户自己拥有的 Windows 电脑上,用用户自行提供的账号密码,实现定时自动解锁本机锁屏(例如每天固定时间解锁)。
合规前提(用户明确确认):完全在本地运行、机器归用户所有、凭据由用户本人提供,因此属于合法合规的本机自动化,不涉及绕过他人设备或未授权访问。
技术路线(沿用前序调研结论 01a017af 会话):Rust 实现 Windows Service + Credential Provider。锁定会话无法用 SendInput/模拟键盘可靠解锁,需走 Credential Provider DLL -> LogonUI 提交凭据的正规路径。关键 API:Credential Provider COM 接口、CPUS_UNLOCK_WORKSTATION、GetCredentialCount()、GetSerialization()、CredPackAuthenticationBufferW。建议用账户文本密码而非 Windows Hello PIN。
可参考现成项目:吾爱破解帖 https://www.52pojie.cn/thread-2083713-1-1.html 对应 Gitee 仓库 https://gitee.com/lieranhuasha/winlogon.git(Rust CredentialProvider,命名管道接收账号密码,教学原型级);GitHub PsyChip/hodor(C++,工程更完整,处理了管道权限/远程拒绝/密码清零/卸载脚本)。
当前状态:E:\code\WinUnLock 目录仅有 AGENTS.md,尚未落任何代码,也非 git 仓库。