Skip to content

Instantly share code, notes, and snippets.

@netmindz
netmindz / gist:853267
Created March 3, 2011 18:49
Buffer JNA issue
// C++ header
extern "C" __declspec(dllexport) int __stdcall API_USBMF_Request(
HANDLE commHandle, int DeviceAddress,
unsigned char inf_mode, unsigned char *Buffer);
// Java - Returns a single byte, which I think is a valid result