Get order id in mtapi.dll

 
hello,
I have the mtapi.dll wrapper and use it in .net , i can connect,login ,send order and close order,
but I want to close and modify an orders ,i can't get the id for the ticket order,
any body know how i can get the id for an open order.
 
Compare previous list of trades with new list. This is only one way.
 
Compare previous list of trades with new list. This is only one way.

the sendorder method take one parameter which is the orderinfo and take this parameter by reference
then it must but the real ticket numberin this parameter.
if you use the sendorder method please help me.
thanks
Reason: