- 博客(4)
- 资源 (14)
- 收藏
- 关注
原创 VC++ 判断Server系统
BOOL IsWindowsServer(){ OSVERSIONINFOEXW osvi = { sizeof(osvi), 0, 0, 0, 0, {0}, 0, 0, 0, VER_NT_WORKSTATION }; DWORDLONG const dwlConditionMask = VerSetConditionMask( 0, VER_PRODUCT_TYPE, VER_EQUAL ); return !VerifyVersionInfoW(&o...
2020-12-01 20:51:22 254
原创 双击powershell脚本直接运行
打开注册表编辑器 regedit.exeHKEY_CLASSES_ROOT\Microsoft.PowerShellScript.1\Shell\修改默认为以下三个值中的一个:0 可双击和cmd执行。Edit 使用powershell_ise.exe打开。Open 使用记事本打开。
2020-07-20 16:34:27 1364
原创 VC++ 根据窗口句柄获取进程名和进程ID
CString GetProcessExeName(HWND hWnd){ CString strProcess; unsigned long dwPid = 0; ::GetWindowThreadProcessId(hWnd, &dwPid); HANDLE hProcess = OpenProcess(PROCESS_QUERY_INFORMATIO...
2020-05-08 16:33:08 3190
原创 c++判断当前登录账户是否在域环境内
判断当前是否在域环境的代码,找了很久总算找到了#include <Windows.h>#include <DSRole.h>#pragma comment(lib, "netapi32.lib")#include <stdio.h>int main(int argc, char ** argv){ DSROLE_PRIMARY_DOMAIN_INFO_BA...
2018-04-08 09:47:53 2538
Procmon.zip
2019-08-03
procexp.zip
2019-08-03
WINDOWS核心编程第五版 pdf (非扫描版 内附代码)
2017-08-03
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人