Skip to content

Instantly share code, notes, and snippets.

@Yannicked
Yannicked / GlobalKeypress.cpp
Last active Mar 16, 2016
Sample windows keyboard capturing
View GlobalKeypress.cpp
// 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);
View beacon.java
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) {
You can’t perform that action at this time.