How to TranslateName API

How to use TranslateName API function in a Windows 2000 advanced server.
I wants to convert a GUID of an object to FQDN format.
[136 byte] By [S.L.Swamy] at [2007-11-18 1:56:15]
# 1 Re: How to TranslateName API
Here is a mini sample for converting GUID to FQDN:

char szFQDN[1024];
ULONG ulSize = 1024;

if ( !TranslateName( myGUIDString, NameUniqueGuid, NameFullyQualifiedDN, szFQDN, &ulSize) )
{
// there was an error. call GetLastError to get error code
}
else
{
// szFQDN contains a NULL-terminated string with the Fully Qualified DN.
}

Hope that helps!

- Robert
RobAnd at 2007-11-10 3:39:18 >