Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Custom GDI+ class
Storing content of the Clipboard to a bitmap file
Storing screen shot of a form to bitmap file
How to print FoxPro form
How to print a bitmap file
Vertical Label control
Capturing keyboard activity of another application with the Raw Input API (VFP9)
GDI+: Implementing image scrolling with inertia
Splash Screen for the VFP application
Displaying icons in the system tray (VFP9)
Displaying dimmed window behind VFP top-level form
Pocket PC: custom RAPI class for operating with files and folders on mobile device
Copying picture of the active form to the Clipboard using Enhanced Metafile API functions
Monitoring clipboard content changes (VFP9)
Using the LoadImage function to have a bitmap file loaded and displayed on VFP main window
Obtaining names and positions for shortcuts located on the Windows Desktop
Extensible Storage Engine class library
Loading a string resource from an executable file
Attaching menu to a top-level form
How to ping a remote site using IP Helper API calls
Enumerating Processes -- WinNT
Custom HttpRequest class (WinINet)
GDI+: sending image of FoxPro form to printer
How to put a horizontal text scrolling on the form (a news line, marquee)
Enumerating devices installed on the local machine

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
click to open
Before you begin:
The PnP manager maintains a device tree that keeps track of the devices in the system.

See also:
  • Disconnecting USB Mass Storage Device programmatically
  • Simple Window Viewer
      Members area. Log in to view this example.
      User name:
      Forgot your password?
      Sign up for
    the Membership

    User rating: 10/10 (1 votes)
    Rate this code sample:
    • ~
    13923 bytes  
    Created: 2008-12-18 18:42:04  
    Modified: 2009-06-08 08:35:28  
    Visits in 7 days: 168  
    Listed functions:
    Printer friendly API declarations
    My comment:
    The device tree contains information about the devices present on the system. The PnP manager builds this tree when the machine boots, using information from drivers and other components, and updates the tree as devices are added or removed.

    The CM_Get_DevNode_Registry_Property_Ex function, while working perfectly fine, nevertheless is positioned as an outdated one by Microsoft recommending using the device installation functions (setupapi.dll) instead.

    * * *
    The DevCon command-line utility functions as an alternative to Device Manager. Using DevCon, you can enable, disable, restart, update, remove, and query individual devices or groups of devices.
    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 (
    2 sec.Example: 'Using GetFileSize'
    4 sec.Function: 'SQLGetInstalledDrivers'
    Function group: 'ODBC API'
    5 sec.Gallery
    7 sec.Function: 'NetLocalGroupEnum'
    Function group: 'Network Management'
    8 sec.Function: 'Beep'
    Function group: 'Error Handling'
    10 sec.Examples
    12 sec.Function: 'AddPort'
    Function group: 'Printing and Print Spooler'
    13 sec.Function: 'AVIFileGetStream'
    Function group: 'Windows Multimedia'
    14 sec.Links
    16 sec.Function: 'SQLNativeSql'
    Function group: 'ODBC API'
    Advertise here!