The SimConnect_EnumerateInputEventParams function is used to retrieve a list of all parameters from an input event.

Syntax
HRESULT SimConnect_EnumerateInputEventParams(
    HANDLE hSimConnect,
    UINT64 Hash
)
Parameters
ParameterDescriptionType
hSimConnectHandle to a SimConnect object.Integer
HashHash ID that identifies the input event whose parameters are to be listed. You can get the hashes for the available input events using SimConnect_EnumerateInputEvents.Integer
Return Values

The function returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return valueDescription
S_OKThe function succeeded.
E_FAILThe function failed.
Remarks

This function generates a SIMCONNECT_RECV_ENUMERATE_INPUT_EVENT_PARAMS response where the Value member will contain a string. The string will contain a list of associated input event parameters separated by a semi-colon “;”.

Example

The following basic example of use is from the DA62, for the AS1000_MID_COM_1_Mic_Position instrument, with the HashID “11675888408130357189”:

SIMCONNECT_RECV_ENUMERATE_INPUT_EVENT_PARAMS:
{
Hash = 11675888408130357189;
Value = ";FLOAT64"
}

If an instrument has two arguments (in this example a FLOAT64 and a STRING) then you would have to do the following:

SIMCONNECT_RECV_ENUMERATE_INPUT_EVENT_PARAMS:
{
Hash = <Hash>;
Value = ";FLOAT64;char[256]"
}

Then you would use the SimConnect_SetInputEvent function as follows:

unsigned char byteValues[2048] = "";
// Create your value
value = "<myFloatValueInBytes><myStringValueInBytes>;"
m_simConnectObject.SetInputEvent(<Hash>, value);

0/255