Call the MQCreateProperties function to get a handle to a newly created properties object
Call a function to set one of the connection properties listed in Table 4–2.
Which function you call depends on the type of the property you want to set; for example, to set an MQString property, you call the MQSetStringProperty function; to set a MQBool property, you call the MQSetBoolProperty function; and so on. Each function that sets a property requires that you pass a key name (constant) and value; these are listed and described in Table 4–2.
When you have set all the properties you want to define for the connection, you can then create the connection, by calling the MQCreateConnection function.
The runtime library sets the connection properties that specify the name and version of the Message Queue product; you can retrieve these using the MQGetMetaData function. These properties are described at the end of Table 4–2, starting with MQ_NAME_PROPERTY.