//+---------------------------------------------------------------------------
        //
        //  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 CancelJob(IFaxOutgoingQueue objFaxOutgoingQueue, string strJobId)
        {
            //check for NULL
                        if (objFaxOutgoingQueue == null)
                        {
                                System.Console.WriteLine("EnumOutbox: Parameter passed is NULL");
                                return false;
                        }

                        IFaxOutgoingJobs objFaxOutgoingJobs;
                        objFaxOutgoingJobs = objFaxOutgoingQueue.GetJobs();
                        if (EnumerateFaxOutgoingJobs(objFaxOutgoingJobs, true, strJobId) == false)
                        {
                                System.Console.WriteLine("Failed to enumerate ");
                                return false;
                        }
                        return true;
        }
Ejemplo n.º 2
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 CancelJob(IFaxOutgoingQueue objFaxOutgoingQueue, string strJobId)
        {
            //check for NULL
            if (objFaxOutgoingQueue == null)
            {
                System.Console.WriteLine("EnumOutbox: Parameter passed is NULL");
                return(false);
            }

            IFaxOutgoingJobs objFaxOutgoingJobs;

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