Share via


AxeInitSolution function

Initializes the solution portion of the AXE core and instantiates the Solution interface.

Syntax

HRESULT AxeInitSolution(
  _Inout_opt_ Microsoft::Assessments::Hosting::SolutionParameters *pParams,
  _Out_opt_   Microsoft::Assessments::Hosting::Solution           **ppSolution
);

Parameters

pParams [in, out, optional]

A optional pointer to the SolutionParameters structure used to configure the Solution interface. If this value is NULL, the Solution interface is initialized to run assessments rather than workloads.

ppSolution [out, optional]

A double pointer to receive the instantiated pointer to the Solution interface.

Return value

If the function succeeds, the return value is S_OK.

If AXE solution support has been initialized and the single object is already in use, the return value is AXE_E_ALREADY_INIT.

If the size of the SolutionParameters structure specified by the Size member does not match the actual size, the return value is E_INVALIDARG.

If there is insufficient memory to create a Solution object , the return value is E_OUTOFMEMORY.

Remarks

Managed code uses Solution::Initialize methods.

Requirements

Minimum supported client
Windows 7 [desktop apps only]
Minimum supported server
Windows Server 2008 R2 [desktop apps only]
Header
AxeHosting.h
DLL
AxeCore.dll