Convert a method from Java to C#
<p>I have follow methods in Java:</p>

<pre><code>public abstract int AMRecoveryModeDeviceSetAutoBoot(am_recovery_device paramam_recovery_device, byte paramByte);

public abstract int AMRecoveryModeDeviceReboot(am_recovery_device paramam_recovery_device);`
</code></pre>

<p>Both are imported from a DLL.</p>

<p>How to use it in C#.net?</p>

<p>I tried it with:</p>

<pre><code>[DllImport(DLLPath, CallingConvention = CallingConvention.Cdecl)]
unsafe public extern static void AMRecoveryModeDeviceSetAutoBoot(AMRecoveryDevice device, byte paramByte);
</code></pre>

<p>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.</p>
