SetContextPropertyValue function (recapis.h)
Adds a property to the recognizer context.
If a property already exists, its value is modified.
Syntax
HRESULT SetContextPropertyValue(
HRECOCONTEXT hrc,
GUID *pGuid,
ULONG cbSize,
BYTE *pProperty
);
Parameters
hrc
The handle to the recognizer context.
pGuid
The property to set. Specify a predefined property globally unique identifier (GUID) or application-defined property GUID. For a list of predefined properties, see the recognition Property GUIDs.
cbSize
The size, in bytes, of the pProperty buffer.
pProperty
The buffer that contains the property value.
Return value
This function can return one of these values.
Return code | Description |
---|---|
|
Success. |
|
An unspecified error occurred. |
|
pGUID is invalid or cbSize has been set to a very large, invalid value. |
|
pGUID is invalid. |
|
cbSize is invalid. |
|
Returned when an attempt is made to set a property value when it has already been enabled. |
Remarks
The SetContextPropertyValue function is optional.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows XP Tablet PC Edition [desktop apps only] |
Minimum supported server | None supported |
Target Platform | Windows |
Header | recapis.h |
DLL | inkobjcore.dll |