Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

Search Results for "BlueTooth" in [All]

ipaqutil

.

static extern TODO BlueTooth(TODO);

.

Declare Function BlueTooth Lib "ipaqutil.dll" (TODO) As TODO

.
Documentation
[BlueTooth] on MSDN
.

static extern TODO iPAQGetBlueToothRadioPresent(TODO);

.

Declare Function iPAQGetBlueToothRadioPresent Lib "ipaqutil.dll" (TODO) As TODO

.

IPAQUTIL_API BOOL iPAQGetBlueToothRadioPresent(DWORD *lpdwValue);

.
Documentation
[iPAQGetBlueToothRadioPresent] on MSDN
.
Summary
Disables the iPAQ Bluetooth Radio. The BthRadio.dll equivalent works on Microsoft Bluetooth Stack, however iPAQ PDAs use the Widdcom stack.
.

static extern bool iPAQGetBlueToothRadioStatus(ref int RadioStatus);

.

Declare Function iPAQGetBlueToothRadioStatus Lib "ipaqutil.dll" (TODO) As TODO

.

IPAQUTIL_API BOOL iPAQGetBlueToothRadioStatus(DWORD *lpdwValue);

.
Documentation
[iPAQGetBlueToothRadioStatus] on MSDN
.
Summary
Turn on/off the BlueTooth radio on an iPAQ.
.

static extern bool iPAQSetBlueToothRadio(ref int status);

.

Private Shared Function iPAQSetBlueToothRadio(ByRef dwValue As Integer) As Boolean

.

IPAQUTIL_API BOOL iPAQSetBlueToothRadio(DWORD *lpdwValue);

.

    static extern bool iPAQSetBlueToothRadio(ref int status);

.

    public bool BluetoothOn()

.

      if (iPAQSetBlueToothRadio(ref ret) == false)

.
Documentation
[iPAQSetBlueToothRadio] on MSDN
.

static extern TODO iPAQSetBlueToothReset(TODO);

.

Declare Function iPAQSetBlueToothReset Lib "ipaqutil.dll" (TODO) As TODO

.

IPAQUTIL_API BOOL iPAQSetBlueToothReset();

.
Documentation
[iPAQSetBlueToothReset] on MSDN

Structures

.

public struct BluetoothDeviceInfo

.

        this.dwSize = (uint)Marshal.SizeOf(typeof(BluetoothDeviceInfo));

.

Structure BLUETOOTH_DEVICE_INFO

.
Documentation
[BLUETOOTH_DEVICE_INFO] on MSDN
.

    private struct BLUETOOTH_DEVICE_SEARCH_PARAMS

.

        this.dwSize = (uint)Marshal.SizeOf(typeof(BLUETOOTH_DEVICE_SEARCH_PARAMS));

.

Structure BLUETOOTH_DEVICE_SEARCH_PARAMS

.
Documentation
[BLUETOOTH_DEVICE_SEARCH_PARAMS] on MSDN
.

  private struct Bluetooth_Find_Radio_Params

.

             this.dwSize = (UInt32)Marshal.SizeOf(typeof(Bluetooth_Find_Radio_Params));

.

Structure BLUETOOTH_FIND_RADIO_PARAMS

.
Documentation
[BLUETOOTH_FIND_RADIO_PARAMS] on MSDN
.

    private struct BluetoothRadioInfo

.

        [MarshalAs(UnmanagedType.ByValTStr, SizeConst = BLUETOOTH_MAX_NAME_SIZE)]

.

        this.dwSize = (UInt32)Marshal.SizeOf(typeof(BluetoothRadioInfo));

.

private const int BLUETOOTH_MAX_NAME_SIZE = 248;

.

Structure BLUETOOTH_RADIO_INFO

.
Documentation
[BLUETOOTH_RADIO_INFO] on MSDN

avifil32

.

private static extern IntPtr BluetoothFindFirstRadio(ref BluetoothFindRadioParams pbtfrp, out IntPtr phRadio);

.

Declare Function BluetoothFindFirstRadio Lib "avifil32.dll" (TODO) As TODO

.
Documentation
[BluetoothFindFirstRadio] on MSDN

Constants

.

    public static readonly Guid GUID_DEVCLASS_BLUETOOTH = new Guid("{0xe0cbf06c, 0xcd8b, 0x4647, {0xbb, 0x8a, 0x26, 0x3b, 0x43, 0xf0, 0xf9, 0x74}}");

ws2_32

.

    //bluetooth RFCOMM

kernel32

.

    Bluetooth            = 0x00000041,

irprops

.
Summary
The BluetoothAuthenticateDeviceEx function sends an authentication request to a remote Bluetooth device. Additionally, this function allows for out-of-band data to be passed into the function call for the device being authenticated.
.

static extern uint BluetoothAuthenticateDeviceEx(IntPtr hwndParentIn, IntPtr hRadioIn, ref BLUETOOTH_DEVICE_INFO pbtdiInout, BLUETOOTH_OOB_DATA pbtOobData, uint authenticationRequirement);

.

Declare Function BluetoothAuthenticateDeviceEx Lib "irprops.dll" (TODO) As TODO

.
Documentation
[BluetoothAuthenticateDeviceEx] on MSDN
.
Summary
The BluetoothAuthenticateDeviceEx function sends an authentication request to a remote Bluetooth device. Additionally, this function allows for out-of-band data to be passed into the function call for the device being authenticated.
.

static extern uint BluetoothAuthenticateDeviceEx(IntPtr hwndParentIn, IntPtr hRadioIn, ref BLUETOOTH_DEVICE_INFO pbtdiInout, BLUETOOTH_OOB_DATA pbtOobData, uint authenticationRequirement);

.

Declare Function BluetoothAuthenticateDeviceEx Lib "irprops.dll" (TODO) As TODO

.
Documentation
[BluetoothAuthenticateDeviceEx] on MSDN
.

    [DllImportAttribute("irprops.cpl", EntryPoint="BluetoothEnableDiscovery", SetLastError=true)]

.

    public static extern  bool BluetoothEnableDiscovery(

.

    Private Shared Function BluetoothEnableDiscovery( _

.

See the BluetoothAPIs.h file in the platform SDK.

.
Documentation
[BluetoothEnableDiscovery] on MSDN
.
Summary
modifies whether a local Bluetooth radio accepts incoming connections.
.

static extern bool BluetoothEnableIncomingConnections(IntPtr hRadio,bool fEnabled);

.

    Private Shared Function BluetoothEnableIncomingConnections( _

.

See the BluetoothAPIs.h file in the platform SDK.

.
Documentation
[BluetoothEnableIncomingConnections] on MSDN
.

private static extern uint BluetoothEnumerateInstalledServices(IntPtr hRadio, ref Bluetooth_Device_Info pbtdi, ref uint pcServices,  Guid[] pGuidServices);

.

Declare Function BluetoothEnumerateInstalledServices Lib "irprops.dll" (TODO) As TODO

.

Bluetooth_Device_Info

.
Documentation
[BluetoothEnumerateInstalledServices] on MSDN
.

static extern bool BluetoothFindDeviceClose(IntPtr hFind);

.

    Private Shared Function BluetoothFindDeviceClose( _

.

Install the platform SDK for the help files and the BluetoothAPIs.h file.

.
Documentation
[BluetoothFindDeviceClose] on MSDN
.
Summary
Gets the first Bluetooth device visible to a local radio.
.

static extern IntPtr BluetoothFindFirstDevice(ref BLUETOOTH_DEVICE_SEARCH_PARAMS searchParams, ref BLUETOOTH_DEVICE_INFO deviceInfo);

.

BLUETOOTH_DEVICE_INFO

.

BLUETOOTH_DEVICE_SEARCH_PARAMS

.

const BLUETOOTH_MAX_NAME_SIZE = 248;

.

    Private Shared Function BluetoothFindFirstDevice( _

.

    <[In]()> ByRef searchParams As BluetoothDeviceSearchParams, _

.

    ByRef deviceInfo As BluetoothDeviceInfo) As IntPtr

.

    Private Const BLUETOOTH_MAX_NAME_SIZE = 248

.

    Private Structure BluetoothDeviceSearchParams

.

    Private Structure BluetoothDeviceInfo

.

        Public address As BluetoothAddress

.

        <MarshalAs(UnmanagedType.ByValTStr, SizeConst:=BLUETOOTH_MAX_NAME_SIZE)> _

.

            Me.name = New String("*"c, BLUETOOTH_MAX_NAME_SIZE)

.

    Private Structure BluetoothAddress

.

See the BluetoothAPIs.h file in the platform SDK.

.
Documentation
[BluetoothFindFirstDevice] on MSDN
.
Summary
Start enumerating local bluetooth radios (i.e. the devices plugged into the computer).
.

static extern IntPtr BluetoothFindFirstRadio(ref Bluetooth_Find_Radio_Params pbtfrp,out IntPtr phRadio );

.

Bluetooth_Find_Radio_Params

.

    Private Shared Function BluetoothFindFirstRadio( _

.

    <[In]()> ByRef findRadioParams As BluetoothFindRadioParams, _

.

    Private Structure BluetoothFindRadioParams

.

                Me.size = Marshal.SizeOf(GetType(BluetoothFindRadioParams))

.

See the BluetoothAPIs.h file in the platform SDK.

.

  class Bluetooth

.

    public Bluetooth()

.

        BLUETOOTH_FIND_RADIO_PARAM parameters = new BLUETOOTH_FIND_RADIO_PARAM();

.

        nextRadio = BluetoothFindFirstRadio(ref parameters, out firstRadio);

.

        //work with bluetooth

.

    /// The BLUETOOTH_FIND_RADIO_PARAMS structure facilitates enumerating installed Bluetooth radios.

.

    private struct BLUETOOTH_FIND_RADIO_PARAM

.

        this.dwSize = (UInt32)Marshal.SizeOf(typeof(BLUETOOTH_FIND_RADIO_PARAM));

.

    /// Finds the first bluetooth radio present in device manager

.

    /// <param name="pbtfrp">Pointer to a BLUETOOTH_FIND_RADIO_PARAMS structure</param>

.

    /// <returns>In addition to the handle indicated by phRadio, calling this function will also create a HBLUETOOTH_RADIO_FIND handle for use with the BluetoothFindNextRadio function.

.

    /// When this handle is no longer needed, it must be closed via the BluetoothFindRadioClose.

.

    static extern IntPtr BluetoothFindFirstRadio(ref BLUETOOTH_FIND_RADIO_PARAM pbtfrp, out IntPtr phRadio);

.
Documentation
[BluetoothFindFirstRadio] on MSDN
.
Summary
Find the next bluetooth device.
.

static extern bool BluetoothFindNextDevice(IntPtr hFind, ref BLUETOOTH_DEVICE_INFO pbtdi);

.

    Private Shared Function BluetoothFindNextDevice( _

.

    ByRef pbtdi As BluetoothDeviceInfo) As Integer

.

BLUETOOTH_DEVICE_INFO

.

see BluetoothFindFirstDevice

.

First get a handle to a radio (the radio is the local bluetooth device attached to the computer)

.

Then get the first device (the device is a remote bluetooth device visible to the radio), you also get a hFind.

.

See the BluetoothAPIs.h file in the platform SDK.

.
Documentation
[BluetoothFindNextDevice] on MSDN
.
Summary
The BluetoothFindNextRadio function finds the next Bluetooth radio.
.

static extern bool BluetoothFindNextRadio(IntPtr hFind, out IntPtr phRadio);

.

Declare Function BluetoothFindNextRadio Lib "irprops.dll" (TODO) As TODO

.
Documentation
[BluetoothFindNextRadio] on MSDN
.
Summary
closes the enumeration handle associated with finding Bluetooth radios.
.

private static extern bool BluetoothFindRadioClose(ref IntPtr hFind);

.

    Private Shared Function BluetoothFindRadioClose(ByVal hFind As IntPtr) As Integer

.

See the BluetoothAPIs.h file in the platform SDK.

.
Documentation
[BluetoothFindRadioClose] on MSDN
.

private static extern uint BluetoothGetDeviceInfo(IntPtr hRadio,ref BLUETOOTH_DEVICE_INFO pbtdi);

.

Declare Function BluetoothGetDeviceInfo Lib "irprops.dll" (TODO) As TODO

.

BLUETOOTH_DEVICE_INFO

.
Documentation
[BluetoothGetDeviceInfo] on MSDN
.

private static extern UInt32 BluetoothGetRadioInfo(IntPtr hRadio, ref Bluetooth_Radio_Info pRadioInfo);

.

Bluetooth_Radio_Info

.

    Private Shared Function BluetoothGetRadioInfo( _

.

    ByRef pRadioInfo As BluetoothRadioInfo) As UInteger

.

    Private Const BLUETOOTH_MAX_NAME_SIZE = 248

.

    Friend Structure BluetoothRadioInfo

.

    <MarshalAs(UnmanagedType.ByValTStr, SizeConst:=BLUETOOTH_MAX_NAME_SIZE)> _

.

See the BluetoothAPIs.h file in the platform SDK.

.

static extern bool BluetoothIsConnectable(IntPtr hRadio);

.

    Private Shared Function BluetoothIsConnectable(ByVal hRadio As IntPtr) As Integer

.

See the BluetoothAPIs.h file in the platform SDK.

.
Documentation
[BluetoothIsConnectable] on MSDN
.

static extern bool BluetoothIsDiscoverable(IntPtr hRadio);

.

    Private Shared Function BluetoothIsDiscoverable(ByVal hRadio As IntPtr) As Integer

.

See the BluetoothAPIs.h file in the platform SDK.

.
Documentation
[BluetoothIsDiscoverable] on MSDN
.

private static extern uint BluetoothRemoveDevice(ref  UInt64 pAddress);

.

Declare Function BluetoothRemoveDevice Lib "irprops.dll" (TODO) As TODO

.
Documentation
[BluetoothRemoveDevice] on MSDN
.

private static extern uint BluetoothSetServiceState(IntPtr hRadio, ref BLUETOOTH_DEVICE_INFO pbtdi, ref   Guid pGuidService, DwServiceFlags dwServiceFlags);

.

Declare Function BluetoothSetServiceState Lib "irprops.dll" (TODO) As TODO

.

BLUETOOTH_DEVICE_INFO

.
Documentation
[BluetoothSetServiceState] on MSDN
.

private static extern uint BluetoothUpdateDeviceRecord(ref BLUETOOTH_DEVICE_INFO pbtdi);

.

Declare Function BluetoothUpdateDeviceRecord Lib "irprops.dll" (TODO) As TODO

.

BLUETOOTH_DEVICE_INFO

.
Documentation
[BluetoothUpdateDeviceRecord] on MSDN
.
Description

Enums

.

    FILE_DEVICE_BLUETOOTH = 0x41,

.

    FILE_DEVICE_BLUETOOTH = &H41


 
Access PInvoke.net directly from VS: