MAPPING_ENUM_OPTIONS structure (elscore.h)
Contains options used by the MappingGetServices function to enumerate ELS services.
Syntax
typedef struct _MAPPING_ENUM_OPTIONS {
size_t Size;
LPWSTR pszCategory;
LPWSTR pszInputLanguage;
LPWSTR pszOutputLanguage;
LPWSTR pszInputScript;
LPWSTR pszOutputScript;
LPWSTR pszInputContentType;
LPWSTR pszOutputContentType;
GUID *pGuid;
unsigned OnlineService : 2;
unsigned ServiceType : 2;
} MAPPING_ENUM_OPTIONS, *PMAPPING_ENUM_OPTIONS;
Members
Size
Size of the structure, used to validate the structure version. This value is required.
pszCategory
Optional. Pointer to a service category, for example, "Language Detection". The application must set this member to NULL if the service category is not a search criterion.
pszInputLanguage
Optional. Pointer to an input language string, following the IETF naming convention, that identifies the input language that services should accept. The application can set this member to NULL if the supported input language is not a search criterion.
pszOutputLanguage
Optional. Pointer to an output language string, following the IETF naming convention, that identifies the output language that services use to retrieve results. The application can set this member to NULL if the output language is not a search criterion.
pszInputScript
Optional. Pointer to a standard Unicode script name that can be accepted by services. The application set this member to NULL if the input script is not a search criterion.
pszOutputScript
Optional. Pointer to a standard Unicode script name used by services. The application can set this member to NULL if the output script is not a search criterion.
pszInputContentType
Optional. Pointer to a string, following the format of the MIME content types, that identifies the format that the services should be able to interpret when the application passes data. Examples of content types are "text/plain", "text/html", and "text/css". The application can set this member to NULL if the input content type is not a search criterion.
pszOutputContentType
Optional. Pointer to a string, following the format of the MIME content types, that identifies the format in which the services retrieve data. The application can set this member to NULL if the output content type is not a search criterion.
pGuid
Optional. Pointer to a globally unique identifier (GUID) structure for a specific service. The application must set this member to NULL if the GUID is not a search criterion.
OnlineService
Reserved for future use. Must be set to 0.
ServiceType
Reserved for future use. Must be set to 0.
Remarks
The Size member is the only required member of this structure. All the other members are optional. The application can set any of the members that it needs for search criteria.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 7 [desktop apps | UWP apps] |
Minimum supported server | Windows Server 2008 R2 [desktop apps | UWP apps] |
Header | elscore.h |