mirror of
https://github.com/Karmaz95/Snake_Apple.git
synced 2026-04-03 14:16:28 +02:00
11 lines
276 B
Python
11 lines
276 B
Python
import iokitlib
|
|
|
|
# Get service and connect
|
|
iokit = iokitlib.iokit()
|
|
conn = iokit.open_service(b"AppleJPEGDriver", 1)
|
|
print(f"Connection handle: {conn}")
|
|
|
|
# Call external method
|
|
kr = iokit.connect_call_method(conn, 0, None, None, None, None)
|
|
print(f"Method call result: {kr}")
|