mirror of
https://github.com/inthehand/32feet.git
synced 2026-10-23 01:15:07 +08:00
34 lines
931 B
C#
34 lines
931 B
C#
// 32feet.NET - Personal Area Networking for .NET
|
|
//
|
|
// InTheHand.Windows.Forms.NativeMethods
|
|
//
|
|
// Copyright (c) 2003-2011 In The Hand Ltd, All rights reserved.
|
|
// This source code is licensed under the Microsoft Public License (Ms-PL) - see License.txt
|
|
|
|
#if ! NO_WINFORMS
|
|
#region Using directives
|
|
|
|
using System;
|
|
using System.Runtime.InteropServices;
|
|
using InTheHand.Net.Bluetooth;
|
|
|
|
#endregion
|
|
|
|
#if WinXP
|
|
|
|
namespace InTheHand.Windows.Forms
|
|
{
|
|
internal static class NativeMethods
|
|
{
|
|
[DllImport("Irprops.cpl", SetLastError = true)]
|
|
[return: MarshalAs(UnmanagedType.Bool)]
|
|
internal static extern bool BluetoothSelectDevices(ref BLUETOOTH_SELECT_DEVICE_PARAMS pbtsdp);
|
|
|
|
[DllImport("Irprops.cpl", SetLastError = true)]
|
|
[return: MarshalAs(UnmanagedType.Bool)]
|
|
internal static extern bool BluetoothSelectDevicesFree(ref BLUETOOTH_SELECT_DEVICE_PARAMS pbtsdp);
|
|
}
|
|
}
|
|
|
|
#endif
|
|
#endif |