Making phone vibrate?

  • Thread starter Thread starter nick.name
  • Start date Start date
I'm not sure if a managed API is available but the Windows Mobile Vibrate
API is fairly simple. Here's a sample P/Invoke code for calling Vibrate and
VibrateStop from

DllImport("aygshell.dll")]
private static extern int Vibrate(int cvn, IntPtr rgvn, bool fRepeat, uint
dwTimeout);

[DllImport("aygshell.dll")]
public static extern int VibrateStop();

const uint INFINITE = 0xffffffffL;

void VibrateStart() {
Vibrate(0, IntPtr.Zero, true, INFINITE)
}
 
Back
Top