一键关闭屏幕并锁定

2011-05-12 22:48:16

不废话能死。
很多东西要写。
Plurk的api还扔在那,又勾搭上小螃和开开,都要试一下。
还有诸多微博的API,申请中。
我不是疯了吗?

0点起来忙,上午睡一会,前半夜如果有空睡一会。
闹死了。

正文。
不是黑屏,是彻底关闭屏幕电源。
本来在屏保设置里可以有“退出屏保时输入密码”,
可这只是个执行文件而已,改成的SCR扩展名。
所以在有的机器上,“退出屏保时输入密码”不好使。
于是另外在注册表想办法。

关闭屏幕电源的文件下载:
http://file.13jl.com/1305239995.html
解出来的文件按下面的路径放。

下面的代码存成inf文件,导入。
会在桌面上形成一个图标,
直接点是关闭屏幕。
右键选“屏保锁定”,关闭屏幕并锁定。

[Version]
Signature=”$Chicago$”

[DefaultInstall]
Addreg=AddRegData

[AddRegData]
hklm,softwareMicrosoftWindowsCurrentVersionExplorerDesktopNameSpace{00000000-0000-0000-0000-000000001300}

hkcr,CLSID{00000000-0000-0000-0000-000000001300},,0,”关闭屏幕”
hkcr,CLSID{00000000-0000-0000-0000-000000001300},”SortOrderIndex”,1,10
hkcr,CLSID{00000000-0000-0000-0000-000000001300}DefaultIcon,,0,”c:windowssystem32CloseScr.关闭屏幕电源.scr,-0″
hkcr,CLSID{00000000-0000-0000-0000-000000001300}InProcServer32,”NeverShowExt”
hkcr,CLSID{00000000-0000-0000-0000-000000001300}InProcServer32,”ThreadingModel”,0,”ApartMent”
hkcr,CLSID{00000000-0000-0000-0000-000000001300}InProcServer32,,0,”Shell32.dll”
hkcr,CLSID{00000000-0000-0000-0000-000000001300}ShellFolder,”Attributes”,1,00,00,00,00

hkcr,CLSID{00000000-0000-0000-0000-000000001300}Shell,,0,”1000″

hkcr,CLSID{00000000-0000-0000-0000-000000001300}Shell@0,,0,”关闭屏幕(&C)”
hkcr,CLSID{00000000-0000-0000-0000-000000001300}Shell@0command,,0,”c:windowssystem32CloseScr.关闭屏幕电源.scr”

hkcr,CLSID{00000000-0000-0000-0000-000000001300}Shell@1,,0,”屏保锁定(&L)”
hkcr,CLSID{00000000-0000-0000-0000-000000001300}Shell@1command,,0,”c:windowssystem32cmd.exe /c c:windowssystem32CloseScr.关闭屏幕电源.scr /s&&c:windowssystem32
undll32.exe user32.dll,LockWorkStation”

吃了好几天饼,想白米饭。

Permalink : http://13jl.com/1165647.html

1 Comment so far

  • 小 妞儿 (2011-05-13 01:34:47)

    (通过 WAP 发布)
    太深奥,太阳。
    Re:
    没文化

Post A Comment:

(*)

(*)

By submitting a comment here you grant 地狱十九重 a perpetual license to reproduce your words and name/web site in attribution. Inappropriate comments will be removed at admin\'s discretion.