[DllImport("coredll.dll", SetLastError = true)]
public static extern int lineOpen(
IntPtr hLineApp,
int dwDeviceID,
out IntPtr phLine,
int dwAPIVersion,
int dwExtVersion,
int dwCallbackInstance,
int dwPrivileges,
int dwMediaModes,
ref LINECALLPARAMS lpCallParams
);