IUpdateEndpointAuthProvider::GetPreferredEndpointTokenType 方法

返回服务终结点的首选身份验证令牌类型。

语法

HRESULT GetPreferredEndpointTokenType(
  [in]  GUID               serviceId,
  [in]  UpdateEndpointType endpointType,
  [in]  ULONG              ulRequestedTypes,
  [out] ULONG              *pulPreferredTokenTypes
);

参数

serviceId [in]

标识要更新的服务。

endpointType [in]

标识连接到服务所需的终结点类型。

ulRequestedTypes [in]

标识终结点支持的令牌的 ORed 集。

pulPreferredTokenTypes [out]

指定首选的身份验证令牌类型的 ORed 集。 (设置为 0 即表示不需要身份验证令牌)。

返回值

成功时返回 S_OK。 否则,返回 COM 或 Windows 错误代码。

注解

返回此方法时,WUA 将从首选令牌类型中选择一个类型,并将其传递给 GetEndpointToken 方法的 tokenType 参数。

要求

要求
最低受支持的客户端
Windows XP、带 SP3 的 Windows 2000 Professional [仅限桌面应用]
最低受支持的服务器
Windows Server 2003、带 SP3 的 Windows 2000 Server [仅限桌面应用]
Header
UpdateEndpointAuth.h
IDL
UpdateEndpointAuth.idl

UpdateEndpointAuth.lib
DLL
UpdateEndpointAuth.dll

另请参阅

IUpdateEndpointAuthProvider

GetEndpointToken