Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Reading STARTUPINFO structure for the current VFP session
Reading VFP settings from the Windows Registry
Retrieving geometrical parameters of the system desktop window
Using GetBinaryType (WinNT only) to determine the type of an executable file
Drawing a window caption using the DrawCaption routine
How to save registry key including its subkeys and values to a file
Simple MAPI: how to resolve a name to unique address list entry
Using Beep and Sleep functions to make the old tin buzz sing (WinNT only?)
Displaying all TCP connections for the local system
Pocket PC: enumerating mounted database volumes and databases in the Object Store
Changing file attributes
How to start the screen saver and how to find whether the screen saver is active
System Image List Viewer
Using the Semaphore object to allow only one instance of VFP application running
Who owns the Windows Clipboard
Accessing examples contained in this reference from a VFP application
Accessing examples contained in this reference through Web Services
Accessing Windows Control Panel from VFP Application
GDI+: Color Transparency
GDI+: cropping images
How to drag a Form not using its Titlebar or Caption
Using an Event Object. Part B: running an application responding to events
Converting twips to pixels and vice versa
Drawing icons associated with the VFP main window
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: 142  
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 (107.22.127.92)
2.54 hrs.Example: 'Testing serial ports'
 Function: 'LoadBitmap'
Function group: 'Bitmap'
3.55 hrs.Example: 'Monitoring changes in a directory'
5.03 hrs.Example: 'Retrieving top-child window for the VFP form'
13.52 hrs.Example: 'Winsock: initializing the service in the VFP application'
16.19 hrs.Function: 'WTSUnRegisterSessionNotification'
 Example: 'How to intercept window messages sent to VFP form'
23.42 hrs.Example: 'Using Multimedia Command Strings to play MIDI files'
 Example: 'Displaying dimmed window behind VFP top-level form'
1 day(s)Function: 'GdipFillRectangle'
Google
Advertise here!