일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
Tags
- SSH
- 2FA
- openssl
- Nodejs
- 앱스토어
- MYSQL
- git
- 인증
- apple
- MSYS2
- 안드로이드
- WebAuthn
- Xcode
- 애플
- css
- fido
- SSL
- albumbook
- FIDO2
- appres
- OTP
- Android
- SwiftUI
- 앨범북
- MFA
- SWIFT
- OSX
- 앱리소스
- kmip
- otpkey
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