IWCNDevice::GetIntegerAttribute method (wcndevice.h)

The GetIntegerAttribute method gets a cached attribute from the device as an integer.

Syntax

HRESULT GetIntegerAttribute(
  [in]  WCN_ATTRIBUTE_TYPE AttributeType,
  [out] UINT               *puInteger
);

Parameters

[in] AttributeType

A WCN_ATTRIBUTE_TYPE value that represents a specific attribute value (for example, WCN_PASSWORD_TYPE).

[out] puInteger

Pointer to an unsigned-integer that represents the retrieved attribute value.

Return value

This method can return one of these values.

Return code Description
S_OK
The attribute was retrieved successfully.
HRESULT_FROM_WIN32(ERROR_NOT_FOUND)
The attribute specified is not available.
HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER)
The buffer specified by pbBuffer is not large enough to contain the returned attribute value.
HRESULT_FROM_WIN32(ERROR_INVALID_DATATYPE)
This attribute cannot be expressed as an integer. For example, if it is a string.

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server None supported
Target Platform Windows
Header wcndevice.h

See also

IWCNDevice

WCN_ATTRIBUTE_TYPE