//拨打
private void call()
{
if (this.numText.Text == "")
{
MessageBox.Show("号码不能为空");
return;
}
if (flag != 0)
{
close();
}
long ret = -1;
UInt32 dw = 0;
UInt32 ver = 0x00020000;
line.dwTotalSize = (uint)Marshal.SizeOf(line);
line.dwOptions = 0x00000002;
ret = lineInitializeEx(out h, IntPtr.Zero, IntPtr.Zero, "Tapi", out dw, ref ver, ref line);
if (ret != 0)
{
MessageBox.Show("初始化失败");
return;
}
LINEEXTENSIONID lineext;
UInt32 dwCallbackIns