I have follow methods in Java:
public abstract int AMRecoveryModeDeviceSetAutoBoot(am_recovery_device paramam_recovery_device, byte paramByte);
public abstract int AMRecoveryModeDeviceReboot(am_recovery_device paramam_recovery_device);`
Both are imported from a DLL.
How to use it in C#.net?
I tried it with:
[DllImport(DLLPath, CallingConvention = CallingConvention.Cdecl)]
unsafe public extern static void AMRecoveryModeDeviceSetAutoBoot(AMRecoveryDevice device, byte paramByte);
It didn't throw an error, but nothing happens (the USB Device, a iPhone, should be restart, in the Java Application with these 2 lines it workes, here not.