MappingFreeServices function (elscore.h)

Frees memory and resources allocated for the application to interact with one or more ELS services. The memory and resources are allocated in an application call to MappingGetServices.

Syntax

HRESULT MappingFreeServices(
  [in] PMAPPING_SERVICE_INFO pServiceInfo
);

Parameters

[in] pServiceInfo

Pointer to an array of MAPPING_SERVICE_INFO structures containing service descriptions retrieved by a prior call to MappingGetServices. This parameter cannot be set to NULL.

Return value

Returns S_OK if successful. The function returns an error HRESULT value if it does not succeed.

Remarks

Caution  Services should not be freed before freeing the property bags produced by those services.
 
Since all services currently run in the application process, the ELS platform does not unload the service DLLs when the services are released. The operating system unloads the DLLs automatically when the application terminates.

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 R2 [desktop apps | UWP apps]
Target Platform Windows
Header elscore.h
Library Elscore.lib
DLL Elscore.dll

See also

Enumerating and Freeing Services

Extended Linguistic Services

Extended Linguistic Services Functions

MAPPING_SERVICE_INFO

MappingGetServices