일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
Tags
- openssl
- appres
- SWIFT
- MFA
- SwiftUI
- albumbook
- git
- SSL
- OTP
- FIDO2
- kmip
- 인증
- MYSQL
- 안드로이드
- 2FA
- Nodejs
- otpkey
- 앱리소스
- WebAuthn
- 앱스토어
- css
- Xcode
- 앨범북
- SSH
- Android
- fido
- 애플
- OSX
- apple
- MSYS2
Archives
- Today
- Total
목록shutdown (1)
인디노트
Mac에서 Objective-C를 사용하여 시스템을 종료하는 코드
// import 필요 #import // ... // 시스템 종료 함수 void ShutDown() { // 예약된 종료 요청을 만듭니다 AuthorizationRef authorizationRef; AuthorizationCreate(NULL, kAuthorizationEmptyEnvironment, kAuthorizationFlagDefaults, &authorizationRef); const char *tool = "/sbin/shutdown"; char *argv[3] = { "-h", "now", NULL }; FILE *pipe = NULL; OSStatus status = AuthorizationExecuteWithPrivileges(authorizationRef, tool, kAuthor..
소스 팁/Objective C, Swift, iOS, macOS
2023. 3. 29. 14:49