Beispiel #1
0
 extern static public int lineOpen(IntPtr m_hLineApp,
                                   int dwDeviceID,
                                   out IntPtr lphLine,
                                   int dwAPIVersion,
                                   int dwExtVersion,
                                   IntPtr dwCallbackInstance,
                                   LINECALLPRIVILEGE dwPrivileges,
                                   LINEMEDIAMODE dwMediaModes,
                                   LINECALLPARAMS lpCallParams);
Beispiel #2
0
 public Call MakeCall(string Destination, int CountryCode, bool SupressCallerID)
 {
     byte[] Params = null;
     if (SupressCallerID)
     {
         // If we want to supress caller ID, we need to prepare LINECALLPARAMS
         LINECALLPARAMS lp = new LINECALLPARAMS(Marshal.SizeOf(typeof(LINECALLPARAMS)) + Marshal.SizeOf(typeof(LINECALLPARAMSDEVSPECIFIC)));
         lp.dwDevSpecificOffset = Marshal.SizeOf(typeof(LINECALLPARAMS));
         lp.dwDevSpecificSize   = Marshal.SizeOf(typeof(LINECALLPARAMSDEVSPECIFIC));
         lp.Store();
         LINECALLPARAMSDEVSPECIFIC lcpds = new LINECALLPARAMSDEVSPECIFIC();
         lcpds.cidoOptions = CALLER_ID_OPTIONS.BLOCK;
         int index = lp.dwDevSpecificOffset;
         ByteCopy.StructToByteArray(lcpds, ref index, lp.Data);
         Params = lp.Data;
     }
     return(MakeCall(Destination, CountryCode, Params));
 }