DsMapSchemaGuidsA function

The DsMapSchemaGuids function converts GUIDs of directory service schema objects to their display names.

Syntax

NTDSAPI DWORD DsMapSchemaGuidsA(
  HANDLE              hDs,
  DWORD               cGuids,
  GUID                *rGuids,
  DS_SCHEMA_GUID_MAPA **ppGuidMap
);

Parameters

hDs

Contains a directory service handle obtained from either the DSBind or DSBindWithCred function.

cGuids

Indicates the number of elements in rGuids.

rGuids

Pointer to an array of GUID values for the objects to be mapped.

ppGuidMap

Pointer to a variable that receives a pointer to an array of DS_SCHEMA_GUID_MAP structures that contain the display names of the objects in rGuids. This array must be deallocated using DsFreeSchemaGuidMap.

Return value

Returns a standard error code that includes the following values.

Requirements

   
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header ntdsapi.h
Library Ntdsapi.lib
DLL Ntdsapi.dll

See also

DS_SCHEMA_GUID_MAP

Domain Controller and Replication Management Functions

DsFreeSchemaGuidMap