uuid in linux vs uuid in window[Parser]

来源:互联网 发布:单片机编程工具 编辑:程序博客网 时间:2024/05/29 18:47

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. The 
input 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').