Common API functions (10): hardware and system functions

Source: Internet
Author: User
Activatekeyboardlayout Activate a new keyboard layout. The keyboard layout defines the position and meaning of keys on a physical keyboard.
BEEP Used to generate simple sound
Chartooem Converts a string from an ANSI character set to an OEM character set.
Clipcursor Restrict pointers to specified regions
Convertdefalocallocale Converts a special local identifier to a real local ID.
Createcaret Creates an insert operator (cursor) based on the specified information and selects it as the default insert operator of the specified window.
Destroycaret Clears (destroys) an insert Operator
Enumcalendarinfo Enumerate calendar information available in the specified "local" Environment
Enumdateformats Lists the long and short date formats available in the specified "local" settings.
Enumsystemcodepages Enumeration systems that have been installed or supportedCodePage
Enumsystemlocales Enumeration system has been installed or supports "local" Settings
Enumtimeformats Enumerate the time formats applicable to a specified place
Exitwindowsex Exit windows and restart with specific options
Expandenvironmentstrings Expanded environment string
Freeenvironmentstrings Translate the specified environment string
Getacp Determine the ANSI code page currently in effect
Getasynckeystate Determines the status of the specified virtual key when a function is called.
Getcaretblinktime Determine the blinking frequency of the insert operator cursor
Getcaretpos Judge the current position of the insert Operator
Getclipcursor Obtains a rectangle to describe the cut area currently specified by the mouse pointer.
Getcommandline Returns a pointer to the current command line buffer.
Getcomputername Get the name of this computer
Getcpinfo Obtains information related to the specified code page.
Getcurrencyformat Format a number based on the currency format for the specified "place" setting
Getcursor Obtains the handle of the currently selected mouse pointer.
Getcursorpos Obtains the current cursor position.
Getdateformat Format a system date in the specified "local" Format
Getdoubleclicktime Determine the interval between two consecutive mouse clicks that will be processed as a double-click event
Getenvironmentstrings Allocates a memory block that contains the current environment string and returns a handle.
Getenvironmentvariable Obtains the value of an environment variable.
Getinputstate Determines whether there are any pending mouse or Keyboard Events
Getkbcodepage Replaced by getoemcp, which has the same functions
Getkeyboardlayout Obtains a handle to describe the specified application.ProgramKeyboard layout
Getkeyboardlayoutlist Obtain a list Of all keyboard la s applicable to the System
Getkeyboardlayoutname Get the name of the current active keyboard layout
Getkeyboardstate Obtains the current status of each virtual key on the keyboard.
Getkeyboardtype Learn about the keyboard in use
Getkeynametext Determines the key name based on the scan code.
Getkeystate For processed buttons, the status of the specified virtual key is determined during the last input.
Getlasterror For the previously called API function, use this function to obtain the extended error message.
Getlocaleinfo Obtains information related to a specified "location ".
Getlocaltime Get local Date and Time
Getnumberformat Format a number in a specific format for a specified "location"
Getoemcp Determine the Windows code page converted between the OEM and ANSI character sets
Getqueuestatus Determine the type of a pending message in the application Message Queue
Getsyscolor Determines the color of the display object in the specified Windows
Getsystemdefaultlangid Obtain the default language ID of the system.
Getsystemdefaultlcid Obtain the current default system "local"
Getsysteminfo Obtain information related to the underlying hardware platform
Getsystemmetrics Returns information related to Windows.
Getsystempowerstatus Obtains information about the current system power status.
Getsystemtime Obtains the current system time in the coordinated world time format (UTC, also known as GMT ).
Getsystemtimeadjustment Synchronize the internal system clock with an external clock signal source
Getthreadlocale Obtain the local ID of the current thread
Gettickcount Used to obtain the length of time (milliseconds) that has elapsed since Windows was started)
Gettimeformat Format a system time in a specific format for the currently specified "location"
Gettimezoneinformation Obtains information related to system time zone settings.
Getuserdefaultlangid Obtain the default language ID for the current user
Getuserdefaultlcid Obtains the default "local" setting of the current user.
GetUserName Get the name of the current user
Getversion Determine the currently running Windows and DOS versions
Getversionex Obtain version information related to the platform and Operating System
Hidecaret Hide the insert operator (cursor) in the specified window)
Isvalidcodepage Determine whether a code page is valid
Isvalidlocale Determine whether the local identifier is valid
Keybd_event This function simulates keyboard operations.
Loadkeyboardlayout Load a keyboard layout
Mapvirtualkey Perform different scan codes and character Conversion Based on the specified ing type
Mapvirtualkeyex Perform different scan codes and character Conversion Based on the specified ing type
Messagebeep Play a system sound. The system sound distribution scheme is determined in the control panel.
Mouse_event Simulate a mouse event
Oemkeyscan Determines the scanning code and shift key status of an ASCII character in the OEM Character Set
Oemtochar Converts a string from an OEM character set to an ANSI character set.
Setcaretblinktime Specify the blinking frequency of the insert operator (cursor)
Setcaretpos Specifies the insert operator position
Setcomputername Set a new computer name
Setcursor Set the specified mouse pointer to the current pointer.
Setcursorpos Set the pointer position
Setdoubleclicktime Set the interval between two consecutive mouse clicks that the system considers as a double-click event
Setenvironmentvariable Set an environment variable to a specified value.
Setkeyboardstate Sets the current status of each virtual key on the keyboard.
Setlocaleinfo Change User "local" Settings
Setlocaltime Set the current local time
Setsyscolors Sets the color of the objects displayed in the specified window.
Setsystemcursor Change any standard system pointer
Setsystemtime Set the current system time
Setsystemtimeadjustment Regularly Add a calibration value to synchronize the internal system clock with an external clock signal source
Setthreadlocale Set a place for the current thread
Settimezoneinformation Set system time zone information
Showcaret Display the insert operator (cursor) in the specified window)
Showcursor Control the visibility of the mouse pointer
Swapmousebutton Determines whether to swap the left and right mouse keys
Systemparametersinfo Obtain and set a large number of Windows System Parameters
Systemtimetotzspecificlocaltime Convert system time to local time
Toascii Converts a virtual key into ASCII characters based on the current scan code and keyboard information.
Tounicode Converts a virtual key to a Unicode character based on the current scan code and keyboard information.
Unloadkeyboardlayout Detach a specified keyboard layout
Vkkeyscan Checks the status of the virtual key code and shift key for an ASCII character in the Windows character set.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.