INapSoHProcessor::GetAttribute method

Note

The Network Access Protection platform is not available starting with Windows 10

The INapSoHProcessor::GetAttribute method retrieves the attribute type and value, given the attribute location.

Syntax

HRESULT GetAttribute(
  [in]  UINT16            attributeLocation,
  [out] SoHAttributeType  *type,
  [out] SoHAttributeValue **value
);

Parameters

attributeLocation [in]

The location (index) of the attribute whose type and value are to be retrieved. The value of attributeLocation is returned from a prior call to INapSoHProcessor::FindNextAttribute.

type [out]

A pointer to an SoHAttributeType structure that specifies the attribute's type in value.

value [out]

A pointer to a pointer to a SoHAttributeValue structure that contains the attribute's value as defined by type.

Return value

Other COM-specific error codes also may be returned.

Return code Description
S_OK
Operation succeeded.
E_ACCESSDENIED
Permissions error, access denied.
E_OUTOFMEMORY
System resource limit, could not perform the operation.

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2008 [desktop apps only]
Header
NapProtocol.h
IDL
NapProtocol.idl
DLL
Qutil.dll

See also

INapSoHProcessor