Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Storing content of the Clipboard to a bitmap file
Changing pitch and speed of a wave file
Initiating Inet connection using a modem
Converting characters in a URL into corresponding escape sequences and backwards
How to retrieve list of system DSNs (Data Source Name) with parameters
How to delete IE cookies, clear IE history and delete files in Temporary Internet Files directory
Placing an arbitrary rectangular area of main VFP window on the Clipboard
Retrieveing information about the active window (even if it is not owned by the calling process)
Starting a dialog box for connecting to network resources (mapping network drive)
The DetectAutoProxyUrl function identifies the auto-config script location
The SQLGetProp() creates a bridge between Visual FoxPro and the ODBC API
Displaying hypertext links with the SysLink control (VFP9, Comctl32.dll)
A class that encrypts and decrypts files using Cryptography API Functions
How to extract frames from AVI files
How to release and renew a lease on an IP address previously obtained through Dynamic Host Configuration Protocol (DHCP)
Moving shortcut to a specified position on the Windows Desktop
Obtaining names and positions for shortcuts located on the Windows Desktop
Opening the Page Setup dialog box to specify the attributes of a printed page
Reading header information from AVI file
Reading parameters of streams in AVI file
Retrieving the interface–to–IP address mapping table
Starting an external application in VFP using WinExec
How to assemble an array of strings and pass it to external function
Opening access to the Microsoft Internet functions for the application
How to retrieve the number of print jobs queued for the printer

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:
See also:
  • How to delete all print jobs for a printer
  • Retrieving default spooling directory name
  • Simple printer queue monitor

  • Enumerating locally installed printers
  • Enumerating printer drivers installed
  • Enumerating the print processors and supporting data types installed on the specified server

  • Enumerating print jobs and retrieving information for default printer
  • Enumerating the ports that are available for printing on a specified server

  •  
      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:
    • ~
    1777 bytes  
    Created: 2003-01-14 10:44:29  
    Modified: 2011-12-10 09:20:22  
    Visits in 7 days: 154  
    Listed functions:
    ClosePrinter
    GetLastError
    GetPrinter
    GetProfileString
    OpenPrinter
    Printer friendly API declarations
    My comment:
    This is a very simple code that uses the GetPrinter API function with Level parameter set to 2. The default printer name is retrieved from Windows Registry. For Windows NT/XP you can use the GetDefaultPrinter function instead.

    To run this code for another printer, not the default one, assign its name to lcPrinter variable.

    More detailed information about the printer queue is returned by the EnumJobs function. It includes MachineName, UserName, Document, Status, SysTime, PagesPrinter and other parameters.
    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 (50.16.17.90)
    2.41 hrs.Example: 'Getting a bit more than the _CLIPTEXT offers'
    11.76 hrs.Function: 'SetGraphicsMode'
    Function group: 'Coordinate Space and Transformation'
     Function: 'CreateHardLink'
    15.81 hrs.Function: 'SQLConnect'
     Function: 'IsValidSid'
    Function group: 'Security'
    19.42 hrs.Function: 'EnumPrintProcessorDatatypes'
    22.89 hrs.Example: 'Winsock: retrieving information about available transport protocols'
     Example: 'Custom HttpRequest class (WinINet)'
    Language: 'C++'
    1 day(s)Function: 'GdipFillRectangle'
    Function group: 'GDI+ Graphics'
     Function: 'CreateSolidBrush'
    Google
    Advertise here!