Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Winsock: how to retrieve the protocol information corresponding to a protocol name
Winsock: retrieving information about available transport protocols
Enhanced GetFont dialog
FindText -- the hopeless and useless Common Dialog
How to print FoxPro form -- II
Obtaining a handle to the desktop associated with the calling thread
Retrieving list of Global Atom names
Retrieving list of supported paper names (for example, Letter or Legal) for a given printer
Retrieving long values associated with the class of the VFP window
Validating the heap of the calling process
Validating URLs using moniker functions
Wininet last error description
GDI+: reading and writing metadata in JPEG and TIFF files
Number of clipboard formats available
Retrieving Window Class information for the VFP window
Saving HKEY_LOCAL_MACHINE\\Software\\ODBC Registry Entries to an XML file
Using GetSysColor
Animating a transition of the VFP form (a wire-frame rectangle)
Converting long file names to the short format and vice versa
Deleting a file stored on the FTP server
How to empty the Recycle Bin
How to obtain Content-Type value for a file type from the System Registry
How to view icons stored in executable files (Icon Viewer) - II
Loading a string resource from an executable file
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: 100  
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.234.67.55)
34.6 min.Function: 'InternetTimeToSystemTime'
Function group: 'Internet Functions (WinInet)'
2.07 hrs.Examples
 Function: 'waveInGetNumDevs'
 Example: 'Testing an ODBC connection for supporting specific functionality'
2.2 hrs.Function: 'GetMenuItemCount'
Function group: 'Menu'
5.95 hrs.Example: 'How to make a VFP form fading out when released (GDI+ version)'
 Function: 'waveOutUnprepareHeader'
Function group: 'Windows Multimedia'
 Example: 'How to retrieve number of objects in the Recycle Bin'
14.22 hrs.Function: 'accept'
Function group: 'Windows Sockets 2 (Winsock)'
17.33 hrs.Function: 'WSAConnect'
Function group: 'Windows Sockets 2 (Winsock)'
Google
Advertise here!