INapComponentConfig::GetConfig method
Note
The Network Access Protection platform is not available starting with Windows 10
The GetConfig method retrieves the system health validator (SHV) component configuration.
Syntax
HRESULT GetConfig(
[out] UINT16 *bCount,
[out] BYTE **data
) const;
Parameters
-
bCount [out]
-
The size, in bytes, of the data configuration blob.
-
data [out]
-
A pointer to the address of 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 |
---|---|
|
The operation is successful. |
|
Permissions error, access denied. |
|
System resource limit, could not perform the operation. |
Remarks
The data parameter must be allocated by the callee (component implementor) using CoTaskMemAlloc and freed by the caller using CoTaskMemFree.
Requirements
Requirement | Value |
---|---|
Minimum supported client |
None supported |
Minimum supported server |
Windows Server 2008 [desktop apps only] |
Header |
|
IDL |
|