I have a MIDI controller with several knobs. Is it possible to query state of all values, which these knobs have, when I connect to the device using midiInOpen
function without physically moving each of them?
There is no standard MIDI message to inquire about the current state of a controller; messages are sent only when something changes.
Unless your controller has a vendor-specific extension that does exactly what you want, this is not possible.