#include <stdio.h>
#include <windows.h>
int main(int argc, char **argv)
{
int i;
unsigned char buf[8];
if (argc != 2) {
printf("Usage: read_customer_data channel\n");
exit(1);
}
if (hnd < 0) {
printf("Cannot open channel %s, error code %d\n", argv[1], hnd);
exit(1);
}
100 ,
0,
buf, sizeof(buf));
printf("kvReadDeviceCustomerData returned error code %d\n", stat);
exit(1);
}
printf("User data: ");
for (i=0; i<(signed)sizeof(buf); i++) {
printf("%02x ", buf[i]);
}
printf("\n");
return 0;
}