EapHostPeerInitialize (Compact 2013)

3/26/2014

Initializes an EAPHost authentication session.

This function must be called before any other peer or supplicant function is called. If the EapHostPeerInitialize function fails, do not call any other EAPHost run-time API.

Note

The other EAPHost configuration APIs are not affected by the failure of EAPHostPeerInitialize.

Syntax

DWORD WINAPI.EapHostPeerInitialize(void);

Parameters

This function has no parameters.

Remarks

EapHostPeerInitialize and EapHostPeerUninitialize are always thread safe.

The following call occurs within the EapHostPeerInitialize function:

CoInitializeEx(NULL, COINIT_MULTITHREADED);

The client should not initialize a conflicting COM environment. If different COM environment (such as a single-threaded apartment) is required, the client should call CoInitializeEx directly, and not call EapHostPeerInitialize. If CoInitializeEx is called directly, the client must call CoUninitialize to uninitialize the session. In addition, the client must use COM functions (and not EAPHost supplicant functions) to allocate and free memory.

See Also

Reference

EAPHost Supplicant Run-time Functions
EapHostPeerUninitialize