Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using namespace Windows::Devices::Bluetooth;
- __declspec(dllexport) void CloseBleDeviceUnmanaged(BluetoothLEDevice device)
- {
- if (device.ConnectionStatus == BluetoothConnectionStatus::Connected) //no complaints for a property
- {
- device.GetDeviceSelector(); //no complaints for a method either
- device.Close(); //Error C2039 | 'Close': is not a member of 'Windows::Devices::Bluetooth::BluetoothLEDevice'
- }
- return;
- }
Add Comment
Please, Sign In to add comment