Ejemplo n.º 1
0
 private static extern int psoFolderGetNext( 
     IntPtr          objectHandle,
     ref FolderEntry pEntry);
Ejemplo n.º 2
0
        // --+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--
        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;
        }