Expand Minimize
This topic has not yet been rated - Rate this topic

SspiGetTargetHostName function

Gets the host name associated with the specified target.

Syntax


SECURITY_STATUS SspiGetTargetHostName(
  _In_   PCWSTR pszTargetName,
  _Out_  PWSTR *pszHostName
);

Parameters

pszTargetName [in]

The target for which to get the host name.

pszHostName [out]

The name of the host associated with the target specified by the pszTargetName parameter.

Return value

If the function succeeds, it returns SEC_E_OK.

If the function fails, it returns a nonzero error code.

Requirements

Minimum supported client

Windows 7 [desktop apps only]

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

Header

Sspi.h

Library

Secur32.lib

DLL

SspiCli.dll

 

 

Send comments about this topic to Microsoft

Build date: 1/2/2013

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.