Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View Yannicked's full-sized avatar

Yannick de Jong Yannicked

  • iotspot
  • Eindhoven
View GitHub Profile
@Yannicked
Yannicked / GlobalKeypress.cpp
Last active May 28, 2023 03:49
Sample windows keyboard capturing
// GlobalKeypress.cpp : Defines the exported functions for the DLL application.
//
#include "stdafx.h"
#include "GlobalKeypress.h"
#include <iostream>
void CALLBACK dllcallback(DWORD keycode);
typedef void CALLBACK CallbackFunc(DWORD);
public class RangingActivity extends Activity implements BeaconConsumer {
protected static final String TAG = "RangingActivity";
private BeaconManager beaconManager;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_ranging);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {