예제 #1
0
 private static extern int psoFolderGetNext( 
     IntPtr          objectHandle,
     ref FolderEntry pEntry);
예제 #2
0
파일: Folder.cs 프로젝트: dprevost/newpso
        // --+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--
        public int GetNext(ref FolderEntry entry )
        {
            int rc;

            if (sessionHandle == (IntPtr)0 || handle == (IntPtr)0)
            {
                rc = (int)PhotonErrors.NULL_HANDLE;
                throw new PhotonException(PhotonException.PrepareException("Folder.GetNext", rc), rc);
            }

            rc = psoFolderGetNext(handle, ref entry);
            if (rc != 0 && rc != (int)PhotonErrors.REACHED_THE_END)
            {
                throw new PhotonException(PhotonException.PrepareException(sessionHandle, "Folder.GetNext"), rc);
            }

            return rc;
        }