/// <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"); } }
private static extern int PhoneSeekCallLog( int handle, CallLogSeek seek, int iRecord, ref int piRecord );
private static extern int PhoneSeekCallLog( int handle, CallLogSeek seek, int iRecord, ref int piRecord);
/// <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"); } }