static public UInt32 Unpair(UInt64 Address) { BLUETOOTH_ADDRESS Addr = new BLUETOOTH_ADDRESS(); Addr.ullLong = Address; UInt32 result = BluetoothRemoveDevice(ref Addr); return(result); //https://msdn.microsoft.com/en-us/library/cc231199.aspx?f=255&MSPPError=-2147217396 }
public extern static UInt32 MyBluetoothRemoveDevice(ref BLUETOOTH_ADDRESS address);
static extern uint BluetoothRemoveDevice(ref BLUETOOTH_ADDRESS Address);
static extern UInt32 BluetoothRemoveDevice([param: In, Out] ref BLUETOOTH_ADDRESS pAddress);