Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
How to change display settings: screen resolution, screen refresh rate
Adding and deleting Scheduled Tasks using NetScheduleJob API functions
Custom GDI+ class
Converting Unicode data from the Clipboard to a character string using a given code page
Capturing keyboard activity of another application with the Raw Input API (VFP9)
Enumerating data formats currently available on the clipboard
Winsock: sending email messages (SMTP, port 25)
Custom FTP Class for Visual FoxPro application
Detecting changes in connections to removable drives (VFP9)
Splash Screen for the VFP application
How to download a file from the FTP server using FtpGetFile
How to activate Windows Calculator
Custom HttpRequest class (WinHTTP)
How to convert a bitmap file to monochrome format (1 bpp)
Mapping and disconnecting network drives
Enumerating raw input devices attached to the system (keyboard, mouse, human interface device)
Establishing connection using the SQLDriverConnect
Using Font and Text functions
GDI+: copying to the Clipboard (a) image of active FoxPro window/form, (b) image file
Displaying bitmap using the AlphaBlend function
Using WM_COPYDATA for interprocess communication (VFP9)
Extensible Storage Engine class library
How to play AVI file on the _screen
How to make a VFP form fading out when released (GDI+ version)
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: 131  
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.79.93)
3 sec.Example: 'Using the ChooseColor function'
7 sec.Function: 'MAPISendDocuments'
Function group: 'Simple MAPI'
1.36 hrs.Function: 'SetThreadDesktop'
Function group: 'Window Station and Desktop'
 Function: 'DeleteObject'
Function group: 'Device Context'
4.62 hrs.Example: 'Retrieveing information about the active window (even if it is not owned by the calling process)'
13.11 hrs.Example: 'Converting image file to .ICO file'
 Function: 'EndTask'
15.53 hrs.Function: 'GdipGetImageEncodersSize'
 Function: 'StartService'
Function group: 'Service'
20.43 hrs.Example: 'How to write and read Window Properties for the specified window'
Google
Advertise here!