uuid in linux vs uuid in window
You are trying to transform a string uuid into an uuid:
Use:
Under windows:
#include <rpc.h>
RPC_STATUS RPC_ENTRY UuidFromString(
unsigned char __RPC_FAR *StringUuid,
UUID __RPC_FAR *Uuid
);
Under linux:
#include <uuid/uuid.h>int uuid_parse( char *in, uuid_t uu);
DESCRIPTION
The uuid_parse function converts the UUID string given by in into the binary representation. Theinput UUID is a string of the form 1b4e28ba-2fa1-11d2-883f-b9a761bde3fb (in printf(3) format
"%08x-%04x-%04x-%04x-%012x", 36 bytes plus the trailing '\0').