Specifications

Application Event Source
HRESULT_SendEvent
HRESULT_SendEvent causes events to be sent to the AR agent.
HRESULT IARAppEventSink::SendEvent(BSTR eventName, BSTR eventArgs)
Parameters
BSTR eventName – [in] Pointer to a NULL terminated string in UNICODE
format.
BSTR eventArgs – [in] Pointer to a NULL terminated string in UNICODE format.
Multiple arguments are allowed, using spaces as delimiters. A maximum of
2048 bytes is allowed.
Return Values
Returns TRUE if the event was sent to the AR agent; otherwise it returns
FALSE.
Remarks
The BSTR eventArgs parameter holds a list of parameter pairs. The pairs are
delimited with spaces and are of the form:
EventParameter=EventParameterValue
Foo=Bar
Foo=1234
To list multiple parameter pairs, delimit them with a space:
EventParameter=EventParameterValue EventParameter=EventParameterValue
EventParameter may not contain spaces, or any other characters disallowed by
eHealth. EventParameterValue may contain spaces. If it does, you must
double quote the value:
Foo=”Bar Bar Bar”
An EventParameterValue that starts with the digits 0-9 is treated as an
integer, unless it is double quoted:
Integer Example
Foo=1234
String Example
BT Language Reference 221