eairjhioaegnh

eairjhioaegnh

V2EX 第 488443 号会员,加入于 2020-05-08 22:51:29 +08:00
根据 eairjhioaegnh 的设置,主题列表被隐藏
二手交易 相关的信息,包括已关闭的交易,不会被隐藏
eairjhioaegnh 最近回复了
18 小时 42 分钟前
回复了 tg11 创建的主题 macOS mac 浏览器 ua 不显示 m 系芯片了,下载软件默认全是 intel 版
而且 macOS 版本也一直是 10.xxx ,不知道为什么不更
18 小时 43 分钟前
回复了 tg11 创建的主题 macOS mac 浏览器 ua 不显示 m 系芯片了,下载软件默认全是 intel 版
ua 一直是 intel 吧
2 天前
回复了 xgdgsc 创建的主题 Apple 软件质量下降引起热议
是啊,应该停下来修修补补了
没遇到过,可能是因为我不会这么长时间不重启吧,苹果软件质量越来越拉,还是得定期重启,我觉得最少得一周一次
7 天前
回复了 chunkingName 创建的主题 macOS Mac 盒盖休眠问题请教
@labdum 开启盒盖不休眠: sudo pmset disablesleep 1 后盒盖会继续亮的,不信你试试
哈哈哈贪吃蛇
发出来让大佬们逆向一下
103 天前
回复了 qdwang 创建的主题 macOS 请教一下,目前 mac 玩 win 游戏的最佳姿势
建议放弃
这个项目有 Wi-Fi 相关操作: https://github.com/digital-pers0n/Aerodrome/
我提取了断开操作,我自己测试是可以的:

//main.m

#import <Foundation/Foundation.h>

struct Apple80211;
typedef struct Apple80211 *Apple80211Ref;

int Apple80211Disassociate(Apple80211Ref wref);

int Apple80211Open(Apple80211Ref *handle);

int Apple80211Close(Apple80211Ref handle);

int Apple80211BindToInterface(Apple80211Ref handle, CFStringRef interface);


int main() {
int error;
Apple80211Ref ref;
error = Apple80211Open(&ref);
Apple80211BindToInterface(ref, CFSTR("en0"));

if (error == 0) {
Apple80211Disassociate(ref);
} else {
printf("%d\n", error);
}
Apple80211Close(ref);
return 0;
}
// clang main.m -o main -O3 -F /System/Library/PrivateFrameworks -framework Apple80211 -framework Foundation && ./main
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3626 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 11ms · UTC 00:50 · PVG 08:50 · LAX 16:50 · JFK 19:50
Developed with CodeLauncher
♥ Do have faith in what you're doing.