Golang sysproxy

使用 WindowsAPI 修改 系统的代理配置

使用 wininet.dll 配置系统代理

相关资料: 使用 Windows API 设置 IE 代理

golang wininet 调用示例

golang 测试 windows 系统是否连网

rasapi32.dll 获取网络

golang 通过系统调用调用window上的dll

Window Map Go basic type

type (
	BOOL          uint32
	BOOLEAN       byte
	BYTE          byte
	DWORD         uint32
	DWORD64       uint64
	HANDLE        uintptr
	HLOCAL        uintptr
	LARGE_INTEGER int64
	LONG          int32
	LPVOID        uintptr
	SIZE_T        uintptr
	UINT          uint32
	ULONG_PTR     uintptr
	ULONGLONG     uint64
	WORD          uint16
)

Window 代码风格,变量函数、别名前缀

PrefixDescription
aArray
bBOOL (int)
cChar
cbCount of bytes
crColor reference value
cxCount of x (short)
dwDWORD (unsigned long)
fFlags (usually multiple bit values)
fnFunction
g_Global
hHandle
iInteger
lLong
lpLong pointer
m_Data member of a class
nShort int
pPointer
sString
szZero terminated String
tmText metric
uUnsigned int
ulUnsigned long (ULONG)
wWORD (unsigned short)
x,y x, ycoordinates (short)
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值