08 2020 档案

http 基本代理 C++实现(极简)
摘要:1 // ProxySvr.cpp : This file contains the 'main' function. Program execution begins and ends there. 2 // 3 #define _WINSOCK_DEPRECATED_NO_WARNINGS 1 4 #include 5 #include 6 #include 7 #inc... 阅读全文

posted @ 2020-08-25 14:33 thinkinc999 阅读(967) 评论(0) 推荐(0)

获取内存大小、CPU大小、硬盘大小及使用率
摘要:1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 #include 10 #include 11 #include 12 13 using namespace std; 14 #pragma comment(lib, "Psa... 阅读全文

posted @ 2020-08-21 15:14 thinkinc999 阅读(395) 评论(0) 推荐(0)

winsock2.h 编译冲突的终极解决办法
摘要:将所有的 #include 换成 #include 解决!!! 阅读全文

posted @ 2020-08-19 16:37 thinkinc999 阅读(416) 评论(0) 推荐(0)

获取本机IP
摘要:1 // ConsoleApplication12.cpp : This file contains the 'main' function. Program execution begins and ends there. 2 // 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include ... 阅读全文

posted @ 2020-08-07 20:11 thinkinc999 阅读(135) 评论(0) 推荐(0)

windows C++捕获CMD命令输出
摘要:1 #include "windows.h" 2 #include "stdio.h" 3 #include 4 #include 5 6 HANDLE hReadPipeCmd = NULL; 7 HANDLE hWritePipeCmd = NULL; 8 HANDLE hReadPipeShell = NULL; 9 HANDLE hWritePipeShell =... 阅读全文

posted @ 2020-08-01 16:57 thinkinc999 阅读(641) 评论(0) 推荐(0)

导航