2019年7月2日
摘要:
package main import ( "fmt" "strconv" "syscall" "unsafe" ) type ulong int32 type ulong_ptr uintptr type PROCESSENTRY32 struct { dwSize ulong cntUsage ulong th32Proce...
阅读全文
posted @ 2019-07-02 11:07
清明-心若淡定
阅读(5425)
推荐(1)
摘要:
输出结果: 开机时长:27h3m55.042s 当前用户:saryli@saryli-PC 当前系统:windows 系统版本:6.1 (7601) BIOS Date: 04/08/14 13:08:33 Ver: 04.06.05 Motherboard: Z97 GAMING 5 (MS-79
阅读全文
posted @ 2019-07-02 10:34
清明-心若淡定
阅读(6112)
推荐(0)
2019年7月1日
posted @ 2019-07-01 14:44
清明-心若淡定
阅读(2689)
推荐(0)
摘要:
package main import ( "fmt" "github.com/StackExchange/wmi" ) type Storage struct { Name string FileSystem string Total uint64 Free uint64 } type storageInfo struct { Name ...
阅读全文
posted @ 2019-07-01 14:40
清明-心若淡定
阅读(3500)
推荐(0)
摘要:
package main import ( "fmt" "github.com/StackExchange/wmi" ) type gpuInfo struct { Name string } func getGPUInfo() { var gpuinfo []gpuInfo err := wmi.Query("Select * from Win32_VideoControl...
阅读全文
posted @ 2019-07-01 14:37
清明-心若淡定
阅读(1252)
推荐(0)
摘要:
package main import ( "fmt" "log" "net" "strings" ) type Network struct { Name string IP string MACAddress string } type intfInfo struct { Name string MacAddress strin...
阅读全文
posted @ 2019-07-01 14:35
清明-心若淡定
阅读(1691)
推荐(0)
摘要:
输出结果: total := 17054044160 free=: 12900540416
阅读全文
posted @ 2019-07-01 14:23
清明-心若淡定
阅读(2916)
推荐(0)
2019年6月24日
posted @ 2019-06-24 11:09
清明-心若淡定
阅读(354)
推荐(0)
摘要:
客户端向服务端发起一个http请求(特殊之处,在head带了upgrade字段),告诉服务端,我想升级成websocket协议,服务端收到之后,给客户端一个握手确认(switching: 容许客户端向websocket协议转换),一旦完成这个协商,客户端与服务端底层的tcp协议是没有中断的,接下来,
阅读全文
posted @ 2019-06-24 10:32
清明-心若淡定
阅读(187)
推荐(0)
2019年6月21日
摘要:
BMP文件头定义: WORD 两个字节 16bit DWORD 四个字节 32bit 执行结果 66 77 196662 0 0 54 使用结构体方式 执行结果: 66 77 196662 0 0 54 &{40 256 256 1 24 0 196608 3100 3100 0 0}
阅读全文
posted @ 2019-06-21 15:24
清明-心若淡定
阅读(1194)
推荐(0)