Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
GDI+: Storing content of the Clipboard to a bitmap file
Class for sound recording
Using the DrawText function
Initiating Inet connection using a modem
Using File Mapping for enumerating files opened by Visual FoxPro
How to activate Windows Calculator
Start an executable from VFP application by using the CreateProcess
Custom HttpRequest class (WinHTTP)
Using Common Controls: the Header Control
Winsock: reading email messages (POP3, port 110)
Displaying bitmap using the AlphaBlend function
Establishing connection using the SQLDriverConnect
Adding and deleting Scheduled Tasks using NetScheduleJob API functions
Bitmap Class for Visual FoxPro application
Creating the Open dialog box to specify the drive, directory, and name of a file to open
Starting an external application in VFP using WinExec
Connecting a local device to a network resource
Deleting files into the Recycle Bin
How to change the name and the size of the font in the MessageBox dialog
How to convert a bitmap file to monochrome format (1 bpp)
How to retrieve configuration data for a specified printer stored in the registry (PrinterDriverData key)
Displaying system dialog that selects a folder
Custom HttpRequest class (WinINet)
Confining Windows calculator inside the VFP main window
Adding and deleting Scheduled Tasks using NetScheduleJob API functions

User rating: 0/10 (0 votes)
Rate this code sample:
  • ~
More code examples    Listed functions    Add comment     W32 Constants      Translate this page Printer friendly version of this code sample
Versions:
click to open
Before you begin:
With Scheduled Tasks, you can schedule any script, program, or document to run at a time that is most convenient for you. This service starts each time you start Windows and runs in the background.



Four NetScheduleJob API calls implement functionality similar to what OS command AT gives:
  • NetScheduleJobAdd
  • NetScheduleJobDel
  • NetScheduleJobEnum
  • NetScheduleJobGetInfo



  •  
      Members area. Log in to view this example.
     
      User name:
      Password:
     
     
      Forgot your password?
     
      Sign up for
    the Membership
     
     


    User rating: 0/10 (0 votes)
    Rate this code sample:
    • ~
    7536 bytes  
    Created: 2005-07-26 14:45:04  
    Modified: 2011-12-10 09:20:22  
    Visits in 7 days: 180  
    Listed functions:
    GlobalAlloc
    GlobalFree
    GlobalSize
    NetApiBufferFree
    NetApiBufferSize
    NetScheduleJobAdd
    NetScheduleJobDel
    NetScheduleJobEnum
    Printer friendly API declarations
    My comment:
    Use the following code to test NetScheduleJobs and NetScheduleJob classes:

    LOCAL oJobs As NetScheduleJobs, oJob As NetScheduleJob
    oJobs = CREATEOBJECT("NetScheduleJobs")

    oJob = CREATEOBJECT("NetScheduleJob")
    WITH oJob
    *        .jobtime = 9.5 * 3600 * 1000 && 09:30 AM
    *        .SetDOM(5, 20) && payroll days :)
    *        .SetDOW(0, 3) && Monday to Thursday
            .jobtime = (60 + VAL(SYS(2))) * 1000 && now + 1 minute
            .jobcommand = "notepad.exe"
    ENDWITH

    IF NOT oJobs.AddJob(oJob)
            ? "Error:", oJobs.errorcode
    ENDIF

    FOR EACH oJob IN oJobs
            WITH oJob
                    ? "ID=" + TRANSFORM(.jobid) + ", " +;
                            .jobcommand
            ENDWITH
    NEXT
    Word Index links for this example:
    Translate this page:
      Spanish    Portuguese    German    French    Italian  
    FreeTranslation.com offers instant, free translations of text or web pages.
    User Contributed Notes:
    There are no notes on this subject.


    Copyright © 2001-2013 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

    Privacy policy
    Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.1.55-log), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
    Last Topics Visited (23.20.196.179)
    4 sec.Function: 'SendARP'
    34.95 min.Solutions
    34.98 min.Example: 'Converting command-line string to a set of Unicode argument strings (WinNT only)'
    35.03 min.Function: 'InternetReadFile'
    13.74 hrs.Example: 'Drawing Windows predefined bitmaps using the LoadBitmap functions'
    13.96 hrs.Function: 'ReleaseMutex'
     Function: 'EnumPrintProcessorDatatypes'
    Function group: 'Printing and Print Spooler'
    17.61 hrs.Example: 'Using File Mapping for enumerating files opened by Visual FoxPro'
     Function: 'SHEnumKeyEx'
    Function group: 'Registry'
    19.07 hrs.Example: 'GDI+: printing image file'
    Google
    Advertise here!