随笔分类 -  Windows编程

各种Windows下的知识
摘要:[TOC] ### upd [官方文档](https://git-scm.com/book/zh/v2/Git-%E5%86%85%E9%83%A8%E5%8E%9F%E7%90%86-%E5%BA%95%E5%B1%82%E5%91%BD%E4%BB%A4%E4%B8%8E%E4%B8%8A%E5 阅读全文
posted @ 2021-12-30 08:18 XDU18清欢 阅读(106) 评论(0) 推荐(0)
摘要:说明 bat脚本的升级,比bat好用很多 cmd中键入powershell即可进入 bat脚本规则 微软官方教程 PowerShell脚本怎么运行 1.修改脚本执行权限 以管理员权限打开PowerShell set-ExecutionPolicy Unrestricted get-Execution 阅读全文
posted @ 2021-10-25 12:14 XDU18清欢 阅读(145) 评论(0) 推荐(0)
摘要:说明 PE结构好文 windows下的各种类型定义 对pe文件头的解析 各种数据结构的定义都在 Winnt.h中 DOS头 typedef struct _IMAGE_DOS_HEADER { WORD e_magic; // MZ头 WORD e_cblp; WORD e_cp; WORD e_c 阅读全文
posted @ 2021-10-16 21:23 XDU18清欢 阅读(137) 评论(0) 推荐(0)
摘要:upd 老掉牙的玩意,powershell是windows下更好的脚本语言 建议右转powershell 每一个命令实际上是某个系统文件夹下的 .exe 文件 利用PATH环境变量,可以配置这些命令,配置之后即可在cmd调用 说明 用来提高工作效率 cmd里面help findstr啥用法都出来了 阅读全文
posted @ 2021-10-13 14:27 XDU18清欢 阅读(795) 评论(0) 推荐(0)
摘要:说明 《黑客编程揭秘与探索》 GetLastError()返回值意义 获取时间 string get_current_time() { tm t; time_t now; time(&now); localtime_s(&t, &now); //获取当地日期和时间 char buf[100]; sp 阅读全文
posted @ 2021-10-10 23:05 XDU18清欢 阅读(79) 评论(0) 推荐(0)