Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
How to make a VFP form fading out when released (GDI+ version)
Peer-to-peer LAN messenger built with Mailslot API functions
Retrieving list of Global Atom names
Simple Window Viewer
Drawing cursors for the classes defined by the system (preregistered): BUTTON, EDIT, LISTBOX etc.
Enumerating files opened on the network
Hiding mouse cursor
How to empty the Recycle Bin
Retrieving configuration information for the specified workstation (Win2000/XP)
Creating the Save dialog box to specify the drive, directory, and name of a file to save
Displaying standard progress dialog box when copying files
Using FillMemory
Converting a hexadecimal string to an integer
Enumerating network interfaces on the local computer
Extracting the name and extension parts of a path string
Memory usage info for current VFP session (WinNT only)
Using FrameRgn for displaying system colors
Comparing dimensions of the VFP main window with _SCREEN properties
Setting properties of the window: caption and user-defined value
Testing Transparent Menu Class with top-level form (requires VFP9)
The DetectAutoProxyUrl function identifies the auto-config script location
Using InternetGoOnline function
Winsock: creating a socket that is bound to a specific service provider
Creating a mailslot
Current keyboard type

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
 
DECLARE INTEGER GetKeyboardType IN user32 INTEGER nTypeFlag
 
? "Keyboard type:", getTypeName()
? "OEM subtype:", GetKeyboardType(1)
? "Number of function keys:", GetKeyboardType(2)
 
FUNCTION  getTypeName
    lnType = GetKeyboardType (0)
    DO CASE
    CASE lnType = 1
        RETURN "IBM PC/XT or compatible (83-key) keyboard"
    CASE lnType = 2
        RETURN "Olivetti ICO (102-key) keyboard"
    CASE lnType = 3
        RETURN "IBM PC/AT (84-key) or similar keyboard"
    CASE lnType = 4
        RETURN "IBM enhanced (101- or 102-key) keyboard"
    CASE lnType = 5
        RETURN "Nokia 1050 and similar keyboards"
    CASE lnType = 6
        RETURN "Nokia 9140 and similar keyboards"
    CASE lnType = 7
        RETURN "Japanese keyboard"
    OTHER
        RETURN "Unknown keyboard type: " + LTRIM(STR(lnType))
    ENDCASE
 
 
 

User rating: 0/10 (0 votes)
Rate this code sample:
  • ~
777 bytes  
Created: 2001-08-06 12:00:00  
Modified: 2001-09-28 16:45:28  
Visits in 7 days: 119  
Listed functions:
GetKeyboardType
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 (54.224.75.101)
4 sec.Function: 'NetUserGetGroups'
Function group: 'Network Management'
1.64 hrs.Function: 'GetCurrentProcessId'
Function group: 'Process and Thread'
 Example: 'Using WM_COPYDATA for interprocess communication (VFP9)'
2.09 hrs.Example: 'Finding parameters for the region specified'
 Example: 'Using GetBinaryType (WinNT only) to determine the type of an executable file'
3.14 hrs.Function: 'InternetAutodial'
 Function: 'AVIFileRelease'
 Example: 'Using the CopyFile'
4.65 hrs.Example: 'Custom GDI+ class'
5.18 hrs.Function: 'MAPISendMail'
Function group: 'Simple MAPI'
Google
Advertise here!