thanks for your reply. I solve that propbem. as you said to me, I use that statement...like this.. int Get_Current_Media([MarshalAs(UnmanagedType.LPArray, SizeParamIndex=1)]out byte[]ar, out int len); My C++(dll) module can communicate with c# application perfectly...!!! but speed is so late. approximately spend 0.5 second. So I can't use this method in my c# application. I have a plan to remake application using c++ -_- Anyway I am really thankful to your answer.