Desktop Functions: Smart Device Functions:
|
Search Results for "BlueTooth" in [All]ipaqutil1: BlueTooth
static extern TODO iPAQGetBlueToothRadioPresent(TODO);
Declare Function iPAQGetBlueToothRadioPresent Lib "ipaqutil.dll" (TODO) As TODO IPAQUTIL_API BOOL iPAQGetBlueToothRadioPresent(DWORD *lpdwValue);
static extern bool iPAQGetBlueToothRadioStatus(ref int RadioStatus);
Declare Function iPAQGetBlueToothRadioStatus Lib "ipaqutil.dll" (TODO) As TODO IPAQUTIL_API BOOL iPAQGetBlueToothRadioStatus(DWORD *lpdwValue);
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)
static extern TODO iPAQSetBlueToothReset(TODO);
Declare Function iPAQSetBlueToothReset Lib "ipaqutil.dll" (TODO) As TODO IPAQUTIL_API BOOL iPAQSetBlueToothReset(); Structures
public struct BluetoothDeviceInfo
this.dwSize = (uint)Marshal.SizeOf(typeof(BluetoothDeviceInfo));
Structure BLUETOOTH_DEVICE_INFO
private struct BLUETOOTH_DEVICE_SEARCH_PARAMS
this.dwSize = (uint)Marshal.SizeOf(typeof(BLUETOOTH_DEVICE_SEARCH_PARAMS));
Structure BLUETOOTH_DEVICE_SEARCH_PARAMS
private struct Bluetooth_Find_Radio_Params
this.dwSize = (UInt32)Marshal.SizeOf(typeof(Bluetooth_Find_Radio_Params));
Structure BLUETOOTH_FIND_RADIO_PARAMS
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 avifil32
private static extern IntPtr BluetoothFindFirstRadio(ref BluetoothFindRadioParams pbtfrp, out IntPtr phRadio);
Declare Function BluetoothFindFirstRadio Lib "avifil32.dll" (TODO) As TODO Constants13: GUID_DEVCLASS
public static readonly Guid GUID_DEVCLASS_BLUETOOTH = new Guid("{0xe0cbf06c, 0xcd8b, 0x4647, {0xbb, 0x8a, 0x26, 0x3b, 0x43, 0xf0, 0xf9, 0x74}}"); ws2_3214: PROTOCOL
//bluetooth RFCOMM kernel3215: DeviceIoControl
Bluetooth = 0x00000041, irprops
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
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
[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.
static extern bool BluetoothEnableIncomingConnections(IntPtr hRadio,bool fEnabled);
Private Shared Function BluetoothEnableIncomingConnections( _ See the BluetoothAPIs.h file in the platform SDK.
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
static extern bool BluetoothFindDeviceClose(IntPtr hFind);
Private Shared Function BluetoothFindDeviceClose( _ Install the platform SDK for the help files and the BluetoothAPIs.h file.
static extern IntPtr BluetoothFindFirstDevice(ref BLUETOOTH_DEVICE_SEARCH_PARAMS searchParams, ref BLUETOOTH_DEVICE_INFO deviceInfo); 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.
static extern IntPtr BluetoothFindFirstRadio(ref Bluetooth_Find_Radio_Params pbtfrp,out IntPtr phRadio );
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);
static extern bool BluetoothFindNextDevice(IntPtr hFind, ref BLUETOOTH_DEVICE_INFO pbtdi);
Private Shared Function BluetoothFindNextDevice( _
ByRef pbtdi As BluetoothDeviceInfo) As Integer 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.
static extern bool BluetoothFindNextRadio(IntPtr hFind, out IntPtr phRadio);
Declare Function BluetoothFindNextRadio Lib "irprops.dll" (TODO) As TODO
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.
private static extern uint BluetoothGetDeviceInfo(IntPtr hRadio,ref BLUETOOTH_DEVICE_INFO pbtdi);
Declare Function BluetoothGetDeviceInfo Lib "irprops.dll" (TODO) As TODO
private static extern UInt32 BluetoothGetRadioInfo(IntPtr hRadio, ref Bluetooth_Radio_Info pRadioInfo);
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.
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.
private static extern uint BluetoothRemoveDevice(ref UInt64 pAddress);
Declare Function BluetoothRemoveDevice Lib "irprops.dll" (TODO) As TODO
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
private static extern uint BluetoothUpdateDeviceRecord(ref BLUETOOTH_DEVICE_INFO pbtdi);
Declare Function BluetoothUpdateDeviceRecord Lib "irprops.dll" (TODO) As TODO Enums35: DEVICE_TYPE
FILE_DEVICE_BLUETOOTH = 0x41,
FILE_DEVICE_BLUETOOTH = &H41 |