private void button2_Click(object sender, EventArgs e) { stu_ETFileInfo stu = new stu_ETFileInfo(); bool result = ETGetMediaFileInfo(this.textBox1.Text, ref stu); if (result == true) { this.textBox2.Text = (stu.ToString()); } else { this.textBox2.Text = "the result is false"; } }
public static extern bool ETGetMediaFileInfo(string lpszFileName, ref stu_ETFileInfo lpFileInfo);