判断windows版本 [toc] 接口说明 在windows操作系统上,判断系统版本号一般都是使用 GetVersionEx 函数,但是该函数 windows8.1 以后被启用了,尽管可以通过添加宏来忽略 4996 的错误。在新的API中提供了新的接口以供判断操作系统版本: Versionhelpers.h 标头 - Win32 apps | Microsoft Learn 声明的宏 本文介绍如何使用 IsWin 2023-10-27 A_OS > Windows > 查询系统信息 #OS #Windows
【windows】查看进程启动参数命令行 Windows 查看进程启动参数命令行 使用wmic查看 1wmic process where caption="【进程名】" get caption,commandline /value 也可以通过打印所有的命令行参数 1wmic process get caption,commandline /value | findstr "【进程名,特征字符串等】&qu 2023-10-27 A_OS > Windows > API #Windows/cmd
【权限与会话】降权 阅读这篇文章你可以了解: 降权操作,Windows服务进程中以低权限创建进程 [toc] 【权限与会话】 Service降权启动进程 【权限与会话】提权工具 【权限与会话】提权 背景说明 在服务程序中调用了某一个程序的安装程序,由于权限的问题,这个安装程序也继承了服务的 SYSTEM 权限,导致安装程序与预期不符合。 解决方案 最终实现的目标就是在服务中以普通用户的权限去启动安装程 2023-10-27 A_OS > Windows > 权限与会话 #提权 #Windows/权限 #降权
【Windows】服务中以管理员\普通权限启动进程 概述:windows 服务中以管理员或普通权限启动进程 2023-10-27 A_OS > Windows > 权限与会话 #Windows #Windows/权限 #会话 #权限与会话
【Windows】权限(Privilege Constants) 阅读这篇文章你可以了解: Constants 是什么 windows 提权时常用的 Constants 微软官方文档:Privilege Constants (Winnt.h) - Win32 apps | Microsoft Learn 2023-10-27 A_OS > Windows > 权限与会话 #Windows #权限与会话
【服务】修改windows服务的启动等待时间 概述:修改windows服务启动等待时间 2023-10-27 A_OS > Windows > 服务 #Windows #Windows/服务 #Windows/service
【服务】windows 创建服务 概述:windows操作系统创建服务实例 说明 调用的相关系统API: CreateService StartServiceCtrlDispatcher RegisterServiceCtrlHandlerEx 代码 使用时进需要修改 MyServiceName 即可。 1234567891011121314151617181920212223242526272829303132333 2023-10-27 A_OS > Windows > 服务