IAzClientContext::get_UserDnsSamCompat method (azroles.h)

The UserDnsSamCompat property retrieves the name of the current client in a DNS format compatible with Windows Security Account Manager (SAM).

This property is read-only.

Syntax

HRESULT get_UserDnsSamCompat(
  BSTR *pbstrProp
);

Parameters

pbstrProp

Return value

None

Remarks

The SAM-compatible DNS client name is retrieved by impersonating the client token and calling the GetUserNameEx function with NameDnsDomain specified for the NameFormat parameter.

An example of a client name in SAM-compatible DNS format is "example.fourthcoffee.com\Username".

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header azroles.h
Library Azroles.lib
DLL Azroles.dll
Redistributable Windows Server 2003 Administration Tools Pack on Windows XP