windows live writer Snipped Image Plugin on X64 system

简介:

最近有一些排错记录,想把过程更新上来,原来虽然使用live writer 写日志,但是截图都是用的其他工具,感觉不是太方便,而最近又发现了一个叫snipped image 的插件(写了很久了),可以用win7及后续版本中带的SnippingTool来截图。项目地址在这里,用编译好的dll安装后,一直提示剪贴板中没有内容。不过还好有源代码提供,看了下源码发现它的原理就是调用snippingtool,然后等待该程序结束,然后从剪贴板中找是否有图片,如果有就插入到live writer的博客内容中,没有就报错。

但是代码没有什么错误啊?

捕获

后来我加了两行代码,用来test snippingtool.exe 是否存在,结果测试返回false,很纳闷,google 搜索,结果stackoverflow.com 有个文章和我的问题有点像,我搜索sysnative目录的解释,因为x64位上找不到这个目录?这是什么鬼?

捕获

https://msdn.microsoft.com/en-us/library/aa384187(VS.85).aspx 给出了解释,当32位应用程序访问%windir%\system32目录时,X64系统上会被重定向到%windir%\SysWOW64目录,如果希望访问%windir%\system32而不被重定向,需要访问%windir%\sysnative。我们知道live writer的plugin 在X64系统上也是以32位dll编译的(按64位进行编译后,无法加载插件)

让我们验证下:

捕获

好的,到现在问题解决,简单修改下代码,以让插件适合x64以及X86系统。

 

https://github.com/yoke88/LiveWriterSnippingPluginSource



本文转自 yoke88 51CTO博客,原文链接:http://blog.51cto.com/yoke88/1683371

相关文章
|
安全 虚拟化 Windows
Windows x64内核下注入DLL姿势之一
讲述了Windows x64内核下注入DLL的思路与流程
|
10天前
|
安全 物联网 API
Windows 11 24H2 中文版、英文版 (x64、ARM64) 下载 (2025 年 9 月更新)
Windows 11 24H2 中文版、英文版 (x64、ARM64) 下载 (2025 年 9 月更新)
211 1
Windows 11 24H2 中文版、英文版 (x64、ARM64) 下载 (2025 年 9 月更新)
|
6月前
|
虚拟化 Windows
Windows 11 24H2 中文版、英文版 (x64、ARM64) 下载 (2025 年 3 月更新)
Windows 11 24H2 中文版、英文版 (x64、ARM64) 下载 (2025 年 3 月更新)
313 3
Windows 11 24H2 中文版、英文版 (x64、ARM64) 下载 (2025 年 3 月更新)
|
2月前
|
自然语言处理 监控 安全
Magnet Axiom 9.0 Windows x64 Multilingual - 数字取证与分析
Magnet Axiom 9.0 Windows x64 Multilingual - 数字取证与分析
62 0
Magnet Axiom 9.0 Windows x64 Multilingual - 数字取证与分析
|
2月前
|
监控 Windows
Veeam Backup & Replication 12.3.2 Windows x64 - 备份和恢复
Veeam Backup & Replication 12.3.2 Windows x64 - 备份和恢复
157 1
|
4月前
|
人工智能 安全 网络安全
Burp Suite Professional 2025.5 for Windows x64 - 领先的 Web 渗透测试软件
Burp Suite Professional 2025.5 for Windows x64 - 领先的 Web 渗透测试软件
232 4
Burp Suite Professional 2025.5 for Windows x64 - 领先的 Web 渗透测试软件
|
虚拟化 Windows
Windows 11 24H2 中文版、英文版 (x64、ARM64) 下载 (2025 年 6 月更新)
Windows 11 24H2 中文版、英文版 (x64、ARM64) 下载 (2025 年 6 月更新)
319 0
|
5月前
|
XML 安全 网络安全
Nipper 3.7.0 Windows x64 - 网络设备漏洞评估
Nipper 3.7.0 Windows x64 - 网络设备漏洞评估
116 0
Nipper 3.7.0 Windows x64 - 网络设备漏洞评估
|
5月前
|
存储 监控 数据中心
Microsoft System Center 2025 version 2503 Multilanguage - Windows 服务器管理软件
Microsoft System Center 2025 version 2503 Multilanguage - Windows 服务器管理软件
126 0
|
7月前
|
虚拟化 Windows
Windows 11 24H2 中文版、英文版 (x64、ARM64) 下载 (2025 年 2 月更新)
Windows 11 24H2 中文版、英文版 (x64、ARM64) 下载 (2025 年 2 月更新)
199 4
Windows 11 24H2 中文版、英文版 (x64、ARM64) 下载 (2025 年 2 月更新)

热门文章

最新文章