Beispiel #1
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));
 }
Beispiel #2
0
 public void Store()
 {
     ByteCopy.StructToByteArray(this, m_data);
 }
Beispiel #3
0
 public void Load()
 {
     ByteCopy.ByteArrayToStruct(m_data, this);
 }