INapComponentConfig::SetConfig method

Note

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

The SetConfig method sets the system health validator (SHV) component configuration.

Syntax

HRESULT SetConfig(
  [in] UINT16 bCount,
  [in] BYTE   *data
);

Parameters

bCount [in]

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

data [in]

A pointer to the SHV component configuration data.

Note

Configuration data exported from an x86 machine using the GetConfig method may be imported onto an x64 machine using the SetConfig method, and vice versa. Therefore, configuration data must be in an architecture-agnostic format such as XML. Using XML instead of a byte stream makes it easier to use configuration data on different architectures. The XML elements used in the configuration data are determined by the implementer.

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.
E_ACCESSDENIED
Permissions error, access denied.
E_OUTOFMEMORY
System resource limit, could not perform the operation.

Remarks

Component versioning information should be included in the data configuration blob. The versioning information may be used when migrating from one SHV version to another.

Requirements

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

See also

INapComponentConfig

INapConponentConfig::GetConfig