Skip to content

Instantly share code, notes, and snippets.

View 400-17's full-sized avatar

17 400-17

  • Japan
View GitHub Profile
@400-17
400-17 / check_bluetooth.cpp
Last active February 3, 2023 20:23
check bluetooth_radio and bluetooth_device (windows)
#include "stdafx.h"
#include<windows.h>
#include<bluetoothapis.h>
#include<iostream>
#pragma comment(lib,"Bthprops")
int check_device(BLUETOOTH_DEVICE_SEARCH_PARAMS p_dev, BLUETOOTH_DEVICE_INFO i_dev,int count) {
int check_count = 0;
HBLUETOOTH_DEVICE_FIND f_dev = BluetoothFindFirstDevice(&p_dev, &i_dev);
@400-17
400-17 / cortanacommand.cpp
Last active October 27, 2016 00:13
cortana command (for cmd)
#include "stdafx.h"
#include<windows.h>
int main()
{
INPUT key;
LPINPUT lpkey = &key;
WORD wkey;