iPAQSetBlueToothRadio (ipaqutil)
Last changed: BK-66.46.213.4

.
Summary
Turn on/off the BlueTooth radio on an iPAQ.

C# Signature:

[DllImport("ipaqutil.dll", SetLastError = true)]
static extern bool iPAQSetBlueToothRadio(ref int status);

VB Signature:

<DllImport("ipaqutil")> _
Private Shared Function iPAQSetBlueToothRadio(ByRef dwValue As Integer) As Boolean
End Function

User-Defined Types:

None.

Alternative Managed API:

Do you know one? Please contribute it!

Notes:

IPAQUTIL_API BOOL iPAQSetBlueToothRadio(DWORD *lpdwValue);

According to http://www.high-point.com/RadioControl.htm

Tips & Tricks:

Please add some!

Sample Code:

  public class iPAQ
  {
    [DllImport("ipaqutil.dll", SetLastError = true)]
    static extern bool iPAQSetBlueToothRadio(ref int status);

    public iPAQ()
    {

    }

    public bool BluetoothOn()
    {
      int ret = Convert.ToInt32(true);

      if (iPAQSetBlueToothRadio(ref ret) == false)
      {
    return false;
      }
      return true;
    }
  }

Documentation