Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Using Beep and Sleep functions to make the old tin buzz sing (WinNT only?)
How to block the PrintScreen key
Minimizing all running applications
Reading data from INI files
Retrieving Printer Device Context using PrintDlg function
Smart Card Database Query Functions
System and Local Time values
Using Multimedia Command Strings to play MIDI files
Using the heap of the calling process to allocate memory blocks
Using FlashWindowEx to flash the taskbar button of the VFP application
Using GetBinaryType (WinNT only) to determine the type of an executable file
Copying strings through the global memory block
Creating a directory on the FTP
Drawing a rectangle using Windows regular edges and borders
Enumerating files opened on the network
Using the GetLogicalDriveStrings
Using the Semaphore object
Adding an ODBC data source with the SQLConfigDataSource; use automatic or interactive mode
Adding printer to the list of supported printers for the specified server
Enumerating ODBC Data Sources available on the local computer
Managing Cookies
Retrieving geometrical parameters of the system desktop window
Drawing a window caption using the DrawCaption routine
GetFocus returns a HWND value
Using Beep and Sleep functions to make the old tin buzz sing (WinNT only?)

User rating: 10/10 (1 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:
See also:
  • Using MessageBeep
  • How to play MIDI notes
  • DECLARE Sleep IN kernel32 INTEGER dwMilliseconds
    
    DECLARE INTEGER Beep IN kernel32;
        INTEGER dwFreq, INTEGER dwDur
    
    = Beep1(100)
    = Beep1(300)
    = Beep1(200)
    = Beep1(300)
    = Beep1(400)
    = Beep1(100)
    = Beep1(300)
    = Beep1(500)
    
    PROCEDURE  Beep1(lnFreq)
        = Beep(lnFreq, 90)
        = Sleep (20)
    

    User rating: 10/10 (1 votes)
    Rate this code sample:
    • ~
    295 bytes  
    Created: 2002-01-03 18:58:34  
    Modified: 2010-06-22 09:38:33  
    Visits in 7 days: 91  
    Listed functions:
    Beep
    Sleep
    Printer friendly API declarations
    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-2017 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.6.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
    Last Topics Visited (54.198.2.110)
    12 sec.All Functions
    24 sec.Links
    36 sec.Function: 'ReplaceFile'
    Function group: 'File Management'
    46 sec.Function: 'GdipCreateMatrix'
    55 sec.Function: 'GetKeyboardLayoutList'
    Function group: 'Keyboard Input'
    1.08 min.Function: 'GetKeyboardType'
    Function group: 'System Information'
    1.23 min.Function: 'NetFileClose'
    Function group: 'Network Management'
    1.4 min.Function: 'CryptReleaseContext'
    Function group: 'Cryptography Reference'
    1.72 min.
    1.9 min.Function: 'mmioFlush'
    Function group: 'Windows Multimedia'
    Google
    Advertise here!