C# 通过USB在iOS设备上运行命令
我正在尝试通过USB在iOS设备上运行一个简单的命令,而不是通过SSH。 该设备也被越狱。 iTunesMobileDevice.dll文件有一个名为C# 通过USB在iOS设备上运行命令,c#,ios,C#,Ios,我正在尝试通过USB在iOS设备上运行一个简单的命令,而不是通过SSH。 该设备也被越狱。 iTunesMobileDevice.dll文件有一个名为sendCommandToDevice()的函数, 它是私有的,所以很遗憾我无法通过DllImport访问它。 顺便说一下,我正在使用移动设备建立USB连接 更准确地说: 我想编写一个C#应用程序,在用户单击按钮(例如,killall Safari)后在连接的iDevice上运行命令 有人知道这是怎么回事吗 sendCommandToDevice代
sendCommandToDevice()
的函数,
它是私有的,所以很遗憾我无法通过DllImport访问它。
顺便说一下,我正在使用移动设备建立USB连接
更准确地说:
我想编写一个C#应用程序,在用户单击按钮(例如,killall Safari
)后在连接的iDevice上运行命令
有人知道这是怎么回事吗
sendCommandToDevice代码不工作:
[DllImport("iTunesMobileDevice.dll", CallingConvention = CallingConvention.Cdecl)]
public static extern unsafe int sendCommandToDevice(void* conn, void* command);
public unsafe void sendCommandToDevice(string Command)
{
MobileDevice.sendCommandToDevice(this.iPhoneHandle, MobileDevice.__CFStringMakeConstantString(MobileDevice.StringToCFString(Command)));
}
投掷
“System.EntryPointNotFoundException”过程入口点
在动态链接库中找不到sendCommandToDevice
iTunesMobileDevice.dll