INapServerManagement::RegisterSystemHealthValidator method

Note

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

The INapServerManagement::RegisterSystemHealthValidator method registers an SHV.

Syntax

HRESULT RegisterSystemHealthValidator(
  [in] const NapComponentRegistrationInfo *validator,
  [in] const CLSID                        *validatorClsid
);

Parameters

validator [in]

A pointer to a NapComponentRegistrationInfo structure that contains the SHV registration information.

validatorClsid [in]

A pointer to the CLSID of the COM class that implements the INapSystemHealthValidator interface.

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.
NAP_E_CONFLICTING_ID
SHV id is already registered.

Requirements

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

See also

INapServerManagement