//+---------------------------------------------------------------------------
        //
        //  function:   EnumOutbox
        //
        //  Synopsis:   Displays the jobs present in the Outbox Folder
        //
        //  Arguments:  [objFaxFolders] - Fax Folders object
        //
        //  Returns:    bool - true if the function was successful
        //
        //----------------------------------------------------------------------------
        static bool EnumOutbox(IFaxAccountFolders objFaxFolders)
        {
            //check for NULL
            if (objFaxFolders == null)
            {
                System.Console.WriteLine("EnumOutbox: Parameter passed is NULL");
                return(false);
            }
            IFaxAccountOutgoingQueue objFaxOutgoingQueue;

            objFaxOutgoingQueue = objFaxFolders.OutgoingQueue;

            IFaxOutgoingJobs objFaxOutgoingJobs;

            objFaxOutgoingJobs = objFaxOutgoingQueue.GetJobs();
            if (EnumerateFaxOutgoingJobs(objFaxOutgoingJobs) == false)
            {
                System.Console.WriteLine("Failed to enumerate ");
                return(false);
            }
            return(true);
        }
        //+---------------------------------------------------------------------------
        //
        //  function:   EnumSentItems
        //
        //  Synopsis:   Displays the messages present in the Sent Items
        //
        //  Arguments:  [objFaxFolders] - Fax Folders object
        //
        //  Returns:    bool - true if the function was successful
        //
        //----------------------------------------------------------------------------

        static bool EnumSentItems(IFaxAccountFolders objFaxFolders)
        {
            //check for NULL
            if (objFaxFolders == null)
            {
                System.Console.WriteLine("EnumSentItems: Parameter passed is NULL");
                return(false);
            }
            IFaxAccountOutgoingArchive objFaxOutbox;

            objFaxOutbox = objFaxFolders.OutgoingArchive;

            IFaxOutgoingMessageIterator objOutgoingMsgIterator;

            objOutgoingMsgIterator = objFaxOutbox.GetMessages(100);
            if (EnumerateFaxSentItemMessages(objOutgoingMsgIterator) == false)
            {
                System.Console.WriteLine("Failed to enumerate ");
                return(false);
            }
            return(true);
        }
Exemplo n.º 3
0
        //+---------------------------------------------------------------------------
        //
        //  function:   EnumSentItems
        //
        //  Synopsis:   Displays the messages present in the Sent Items
        //
        //  Arguments:  [objFaxFolders] - Fax Folders object
        //
        //  Returns:    bool - true if the function was successful
        //
        //----------------------------------------------------------------------------
        static bool EnumSentItems(IFaxAccountFolders objFaxFolders)
        {
            //check for NULL
                        if (objFaxFolders == null)
                        {
                                System.Console.WriteLine("EnumSentItems: Parameter passed is NULL");
                                return false;
                        }
                        IFaxAccountOutgoingArchive objFaxOutbox;
                        objFaxOutbox = objFaxFolders.OutgoingArchive;

                        IFaxOutgoingMessageIterator objOutgoingMsgIterator;
                        objOutgoingMsgIterator = objFaxOutbox.GetMessages(100);
                        if (EnumerateFaxSentItemMessages(objOutgoingMsgIterator) == false)
                        {
                                System.Console.WriteLine("Failed to enumerate ");
                                return false;
                        }
                        return true;
        }
Exemplo n.º 4
0
        //+---------------------------------------------------------------------------
        //
        //  function:   EnumOutbox
        //
        //  Synopsis:   Displays the jobs present in the Outbox Folder
        //
        //  Arguments:  [objFaxFolders] - Fax Folders object
        //
        //  Returns:    bool - true if the function was successful
        //
        //----------------------------------------------------------------------------
        static bool EnumOutbox(IFaxAccountFolders objFaxFolders)
        {
            //check for NULL
                        if (objFaxFolders == null)
                        {
                                System.Console.WriteLine("EnumOutbox: Parameter passed is NULL");
                                return false;
                        }
                        IFaxAccountOutgoingQueue objFaxOutgoingQueue;
                        objFaxOutgoingQueue = objFaxFolders.OutgoingQueue;

                        IFaxOutgoingJobs objFaxOutgoingJobs;
                        objFaxOutgoingJobs = objFaxOutgoingQueue.GetJobs();
                        if (EnumerateFaxOutgoingJobs(objFaxOutgoingJobs) == false )
                        {
                                System.Console.WriteLine("Failed to enumerate ");
                                return false;
                        }
                        return true;
        }