Compartilhar via


AxeInitAssessment function

Initializes the assessment portion of the AXE core and instantiates the Support interface in C++.

Syntax

HRESULT WINAPI AxeInitAssessment(
  _Inout_opt_ LPVOID                                  pReserved,
  _Out_       Microsoft::Assessment::Runtime::Support **ppSupport
);

Parameters

pReserved [in, out, optional]

This optional parameter is reserved.

ppSupport [out]

A double pointer to receive the instantiated Support pointer.

Return value

If the function succeeds, the return value is S_OK.

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

If AXE assessment support could not be initialized, the return value is AXE_E_INIT_FAILED.

If ppSupport is NULL, the return value is E_POINTER.

Remarks

This function is supported on Windows 7, Windows Server 2008 R2, Windows 8, and Windows Server 2012.

This function provides the solution with the primary interface or object in the AXE support. It increments the reference count on the Support interface before returning the interface or object to the assessment.

It is the assessment's responsibility to call Release on the interface when the solution is done using the interface.

In managed code, this function is a static method of the AssessmentSupport object.

Requirements

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