Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
How to enable the SE_SHUTDOWN_NAME privilege for the application
How to browse and connect to printers on a network (WinNT)
HOWTO: Use the Win32 API to Access File Dates and Times
How to read email messages using Simple MAPI
Winsock: resolving an address to a host name
Enumerating ports that are available for printing on a specified server
Enumerating Volumes and Volume Mounting Points (NTFS)
How to enumerate logon sessions on local computer
Monitoring changes in a directory
Enumerating printer drivers installed
How to delete IE cookies, clear IE history and delete files in Temporary Internet Files directory
Enumerating Windows Sound Schemes avaialble to the current user
How to check whether the system is 32-bit or 64-bit
Obtaining current Internet Explorer browser version and UserAgent
PocketPC: custom RAPI class for executing routines on remote Windows CE device
Using GetNearestColor
Enumerating data formats currently available on the clipboard
How to block the PrintScreen key
How to make a VFP form fading out when released (GDI+ version)
How to retrieve the size of a remote file (FTP)
Setting default printer
Creating a clipping region from the path selected into the device context of a form
DiskFreeSpace class
Drawing cursors for the classes defined by the system (preregistered): BUTTON, EDIT, LISTBOX etc.
How to enable the SE_SHUTDOWN_NAME privilege for the application

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
Before you begin:
To shut down or to reboot the system (API calls ExitWindowsEx, InitiateShutdown and others) the process must have the SE_SHUTDOWN_NAME privilege (default behaviour on Vista).

See also:
  • How to initiate System shutdown
  • Closing Windows
  • Using the RestartDialog function
      Members area. Log in to view this example.
      User name:
      Forgot your password?
      Sign up for
    the Membership

    User rating: 0/10 (0 votes)
    Rate this code sample:
    • ~
    3537 bytes  
    Created: 2009-02-02 13:52:02  
    Modified: 2009-02-03 11:15:14  
    Visits in 7 days: 190  
    Listed functions:
    Printer friendly API declarations
    Word Index links for this example:
    Translate this page:
      Spanish    Portuguese    German    French    Italian 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 (
    16 sec.Function: 'SQLConfigDataSource'
    Function group: 'ODBC API'
    29 sec.Example: 'Enumerating Processes -- WinNT'
    45 sec.Function: 'waveInGetNumDevs'
    Function group: 'Windows Multimedia'
    59 sec.Function: 'CeCreateDirectory'
    Function group: 'Remote Application Programming (RAPI)'
    1.18 min.Example: 'Storing the environment strings in cursor'
    Language: 'C#'
    1.43 min.Example: 'Enumerating network sessions established on a server'
    1.67 min.Function: 'GdipCreateBitmapFromGraphics'
    Function group: 'GDI+ Bitmap'
    1.92 min.Example: 'How to play AVI file on the _screen'
    2.15 min.Links
    2.37 min.
    Advertise here!