Guest User

Untitled

a guest
Nov 17th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. using namespace Windows::Devices::Bluetooth;
  2.  
  3. __declspec(dllexport) void CloseBleDeviceUnmanaged(BluetoothLEDevice device)
  4. {
  5. if (device.ConnectionStatus == BluetoothConnectionStatus::Connected) //no complaints for a property
  6. {
  7. device.GetDeviceSelector(); //no complaints for a method either
  8. device.Close(); //Error C2039 | 'Close': is not a member of 'Windows::Devices::Bluetooth::BluetoothLEDevice'
  9. }
  10.  
  11. return;
  12. }
Add Comment
Please, Sign In to add comment