Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Using GetNearestColor
Using the DrawText function
Copying strings through the global memory block
How to start the screen saver and how to find whether the screen saver is active
Reading header information from AVI file
Retrieving information about the main VFP window
Returning some basic information for the specified INF file
Using the MessageBox Win32 function
Winsock: retrieving the standard host name and IP address for the local machine
Enumerating print processors and supporting data types installed on the specified server
Obtaining Shell32.dll version
Retrieving list of all active RAS connections
Disk in drive A:
Enumerating Processes -- Win9*
GDI+: enumerating fonts installed on the system
Quering Audio Mixer Device
The DetectAutoProxyUrl function identifies the auto-config script location
Using FtpCommand
Using the SystemParametersInfo function
Verifying a file using the Authenticode policy provider
Creating a directory on the FTP
DiskFreeSpace class
High-powered ALLTRIM
How to view system icons for the classes installed on the local machine
Retrieving national language settings

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:
See also:
  • LanguageBar ActiveX control
  • Saving available locale records into a cursor
  • Switching between keyboard layouts
  •  
    DO declare
     
    ? "System Default LangID:", GetSystemDefaultLangID()
    ? "User Default LangID:", GetUserDefaultLangID()
     
    ? "System Default LCID:", GetSystemDefaultLCID()
    ? "User Default LCID:", GetUserDefaultLCID()
     
    ? "Current Thread Locale:", GetThreadLocale()
     
    ? "OEM code-page identifier:", GetOEMCP()
    ? "ANSI code-page identifier:", GetACP()
    ? "Current code page (should be the same as GetOEMCP): ",;
        GetKBCodePage()
     
    PROCEDURE declare
        DECLARE SHORT GetThreadLocale IN kernel32
        DECLARE SHORT GetSystemDefaultLangID IN kernel32
        DECLARE SHORT GetUserDefaultLangID IN kernel32
        DECLARE SHORT GetSystemDefaultLCID IN kernel32
        DECLARE SHORT GetUserDefaultLCID IN kernel32
        DECLARE INTEGER GetOEMCP IN kernel32
        DECLARE INTEGER GetACP IN kernel32
        DECLARE INTEGER GetKBCodePage IN user32
     
     
     

    User rating: 0/10 (0 votes)
    Rate this code sample:
    • ~
    811 bytes  
    Created: 2001-07-31 12:00:00  
    Modified: 2011-02-22 03:04:43  
    Visits in 7 days: 40  
    Listed functions:
    GetACP
    GetKBCodePage
    GetOEMCP
    GetSystemDefaultLangID
    GetSystemDefaultLCID
    GetThreadLocale
    GetUserDefaultLangID
    GetUserDefaultLCID
    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:
    How buy? | 2006-11-22 21:15:17
    How buy

    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.132.180)
    4 sec.Example: 'How to put a vertical text scrolling on the form (a movie cast)'
    28.18 min.Example: 'Creating a device context for the specified printer'
    36.25 min.Function: 'WSAConnect'
    36.3 min.Function: 'GetPrinterData'
    Function group: 'Printing and Print Spooler'
    4.17 hrs.Example: 'How to Start a Process as Another User (NT/XP/2K)'
     Example: 'The DetectAutoProxyUrl function identifies the auto-config script location'
    4.63 hrs.Function: 'SetFocus'
    Function group: 'Keyboard Input'
     Example: 'How to create transparent areas inside a form -- punching holes in the form'
    6.77 hrs.Example: 'Setting the last-error code for the FoxPro'
     Function: 'CreateSymbolicLink'
    Google
    Advertise here!