Visual Studio下载地址

VS下载链接地址 https://aka.ms/vs/15/release/vs_community.exe 15指2017,可以替换为16(2019),17(2022) community可以替换为Enterprise和Professional VS2017企业版 https://aka.ms/v


Windows程序使用管理员权限运行

1、获取rsrc go install github.com/akavel/rsrc@latest 在项目根目录中创建*.manifest文件(文件名没有过多局限,不过按照要求来也没错) <?xml version="1.0" encoding="UTF-8" standalone="yes"?>


Windows关闭、唤醒屏幕

// 打开显示器 SendMessage(FindWindow(0, 0), WM_SYSCOMMAND, SC_MONITORPOWER, -1); mouse_event(MOUSEEVENTF_MOVE, 0, 1, 0,


Windows通过代码调用wmi

Windows通过代码调用wmi c++ - How to get system serial number? - Stack Overflow Example: Getting WMI Data from the Local Computer - Win32 apps | Microsoft Le


Windows下强制激活窗口

Windows下强制激活Qt窗口 #ifdef _WIN32 #include <QtPlatformHeaders/QWindowsWindowFunctions> #endif int main(int argc, char *argv[]) { QApplication a(argc, a


Windows映射webdav路径

Windows映射webdav路径 修改注册表 Win+R regedit 修改 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WebClient\Parameters 将 BasicAuthLevel 设置为 2 (允许http和htt


WSL自启动ssh

WSL自启动ssh服务 打开计算机管理 选择启动程序 程序路径:%windir%\System32\bash.exe 参数:-c "echo 密码|sudo -S service ssh start" 找到刚刚创建的任务,点击属性</


Windows添加右键菜单

Windows添加右键菜单 鼠标右键桌面 HKEY_CLASSES_ROOT\DesktopBackground\Shell 鼠标右键空白 HKEY_CLASSES_ROOT\Directory\Background\shell\ContextMenuHandlers HKEY_CLASSES_R


查看系统共享内存

查看系统共享内存 Windows 下载 AccessChk AccessChk - Windows Sysinternals | Microsoft Docs 管理员权限执行命令 accesschk.exe -osv > objects.txt 打开 objects.txt 文件 搜索 Type:


go重定向输出崩溃堆栈

go重定向输出崩溃堆栈 windows // +build windows package log import ( "os" "syscall" "github.com/sirupsen/logrus" ) var ( crashFile *os.File kern


Linux挂载Windows共享路径

挂载Windows共享路径 安装 nfs-utils yum install nfs-utils -y 挂载路径 mount -t cifs -o username='Gwkang',password='passwd' //192.168.0.100/Work ~/work


WSL配置

WSL配置 旧版 WSL 的手动安装步骤 | Microsoft Docs WSL 中的高级设置配置 | Microsoft Docs 修改安装路径 停止运行 wsl --shutdown 查看已安装的linux发行版本 wsl -l


Goland中使用Makefile

Windows Goland使用Makefile 安装Chocolatey 管理员打开powershell 执行Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityPr


windows开放和关闭防火墙端口

windows开放和关闭防火墙端口 删除记录 netsh advfirewall firewall delete rule name=USBNetworkGate1 protocol=TCP localport=5473 netsh advfirewall firewall delete rule


Windows端口转发

Windows端口转发 显示当前所有规则 netsh interface portproxy show v4tov4 添加 netsh interface portproxy add v4tov4 listenport=8088 connectaddress=192.168.88.128 conne


查询Windows下的dll exe所依赖的文件

查询Windows下的dll/exe所依赖的文件 dumpbin -dependents your-file 如果有Image has the following delay load dependencies,列出的为运行时动态加载的dll。 如果有Image has the following


程序设置开机自启

程序设置开机自启 Windows // "Key" 是自启名称 // "Value" 程序路径 // 添加注册表 reg add HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Run /v "Key" /d "Val


NSIS 单实例运行安装包

NSIS 单实例运行安装包 Function .onInit ;uac提权 !insertmacro UAC_RunElevated # 禁止多个安装程序实例 Begin System::Call 'kernel32::CreateMutexA(i 0, i 0, t "Raysync C