Exemplo n.º 1
0
        /// <summary>
        /// Initiates a search that ends at a given entry in a call log.
        /// </summary>
        /// <param name="seek">Location within the call log where the search will begin.</param>
        /// <param name="iRecord">The zero-based index value of an entry in the call log, starting at the beginning of the log if seek is CallLogSeek.Beginning and at the end if seek = CallLogSeek.End. </param>
        /// <returns>zero-based index value from the beginning of the seek pointer after the search is completed.</returns>
        public int Seek(CallLogSeek seek, int iRecord)
        {
            if (m_handle != 0)
            {
                int precord = 0;

                int hresult = PhoneSeekCallLog(m_handle, seek, iRecord, ref precord);

                //if(hresult != 0)
                //{
                //	throw new ExternalException("Error seeking Call Log");
                //}

                return(precord);
            }
            else
            {
                throw new ObjectDisposedException("Call Log closed");
            }
        }
Exemplo n.º 2
0
		private static extern int PhoneSeekCallLog(
			int handle,
			CallLogSeek seek,
			int iRecord,
			ref int piRecord );
Exemplo n.º 3
0
 private static extern int PhoneSeekCallLog(
     int handle,
     CallLogSeek seek,
     int iRecord,
     ref int piRecord);
Exemplo n.º 4
0
		/// <summary>
		/// Initiates a search that ends at a given entry in a call log.
		/// </summary>
		/// <param name="seek">Location within the call log where the search will begin.</param>
		/// <param name="iRecord">The zero-based index value of an entry in the call log, starting at the beginning of the log if seek is CallLogSeek.Beginning and at the end if seek = CallLogSeek.End. </param>
		/// <returns>zero-based index value from the beginning of the seek pointer after the search is completed.</returns>
		public int Seek(CallLogSeek seek, int iRecord)
		{
			if(m_handle != 0)
			{
				int precord = 0;

				int hresult = PhoneSeekCallLog(m_handle, seek, iRecord, ref precord);
			
				//if(hresult != 0)
				//{
				//	throw new ExternalException("Error seeking Call Log");
				//}

				return precord;
			}
			else
			{
				throw new ObjectDisposedException("Call Log closed");
			}
		}