BluetoothSetServiceState

[DllImport("Irprops.dll", SetLastError = true)]
public static extern uint BluetoothSetServiceState(
   IntPtr hRadio,
   ref BLUETOOTH_DEVICE_INFO pbtdi,
   ref Guid pGuidService,
   uint dwServiceFlags
);

Microsoft documentation: Link

Last updated