objectGuid to immutableid conversion

In adsi c++ i want to convert objectGuid retrieved from on premise AD to immutableId string. (Office 365 ImmutableId attribute). How to do it in c++?

[
in c# this can be done through:

Guid guid = new Guid(guidStr);
String immutableIdStr = Convert.ToBase64String(guid.ToByteArray());

]


Source: c++

Leave a Reply