Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Vertical Label control
Wininet last error description
Adding supplementary data to AVI files
How to prevent users from accessing the Windows Desktop and from switching to other applications
Initiating Inet connection using a modem
Reading metrics for the currently selected font
Retrieving information about the main VFP window
Using Font and Text functions
Creating the Save dialog box to specify the drive, directory, and name of a file to save
Current keyboard type
Drawing cursors for the classes defined by the system (preregistered): BUTTON, EDIT, LISTBOX etc.
Simple Window Viewer
Creating irregularly shaped FoxPro form using transparency color key
Form Magnifier
GDI+: saving image of FoxPro form to graphics file (BMP, GIF, JPG, PNG, TIF)
GDI+: Storing content of the Clipboard to a bitmap file
How to build UDP responder
Locking and unlocking file of a VFP table
Using the NetMessageBufferSend to send messages on the network
Converting a hexadecimal string to an integer
GDI+: Scrolling through large image using the mouse
How to display a user-defined icon in the MessageBox dialog
How to release and renew a lease on an IP address previously obtained through Dynamic Host Configuration Protocol (DHCP)
Obtaining list of tables stored in an ODBC Data Source
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:
      Password:
     
     
      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: 116  
    Listed functions:
    AdjustTokenPrivileges
    CloseHandle
    ExitWindowsEx
    GetCurrentProcess
    GetLastError
    LookupPrivilegeValue
    OpenProcessToken
    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-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.22.252.150)
    5.75 hrs.Function: 'GetSystemRegistryQuota'
    Function group: 'System Information'
     Example: 'Simple MAPI: how to pick an email recipient from Outlook Express address book'
    7.48 hrs.Function: 'EnableWindow'
    Function group: 'Keyboard Input'
    7.49 hrs.Function: 'LPtoDP'
    Google
    Advertise here!