Any way to pass structures in/out of DLLs in MQL4?

 

I am trying to write code to obtain the state of a toolbar button of terminal.exe.

It appears that because terminal.exe uses the MFC libraries for its controls/toolbars that I need to do something like this:

int tbbutton[10];
ArrayInitialize(tbbutton, 0);
SendMessageA(hwndToolbar, TB_GETBUTTON, 33020, tbbutton[0]);

This won't compile - I want to pass in a reference to an integer array big enough to read the structure information passed back to me.

 

Try?

SendMessageA(hwndToolbar, TB_GETBUTTON, 33020, tbbutton);