INapComponentConfig3::SetConfigToID method

Note

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

The SetConfigToID method is implemented by system health validators (SHVs) to provide a way to set the configuration data for a specific configuration ID.

Syntax

HRESULT SetConfigToID(
  [in] UINT32 configID,
  [in] UINT16 count,
  [in] BYTE   *data
);

Parameters

configID [in]

A value that represents the configuration. ConfigID is assigned by the Network Policy Server (NPS) service and is unique within the SHV. If ConfigID is 0, the default configuration of the SHV is set.

count [in]

The size, in bytes, of the configuration data in data.

data [in]

On input, a BYTE array that contains the configuration data set to ConfigID.

Return value

Returns one of the following error codes based on the result of this operation.

Return code Description
S_OK
The operation is successful.
NAP_E_SHV_CONFIG_NOT_FOUND
ConfigID cannot be found.

Remarks

The NewConfig method must be used to allocate configuration data for ConfigID before this method can be called.

Requirements

Requirement Value
Minimum supported client
None supported
Minimum supported server
Windows Server 2008 R2 [desktop apps only]
Header
NapCommon.h
IDL
NapCommon.idl

See also

INapComponentConfig3