10. Hardware and system functions of Apis
ActivateKeyboardLayout
Activate a new keyboard layout. The keyboard layout defines the position and meaning of keys on a physical keyboard.
Beep is used to generate simple sound
CharToOem converts a string from the ANSI character set to the OEM Character Set
ClipCursor limits the pointer to a specified area
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 enumeration of calendar information available in the specified "local" Environment
EnumDateFormats lists available long and short date formats in the specified "local" Settings
Code Page installed or supported in the EnumSystemCodePages enumeration system
"Local" settings that have been installed or supported by the EnumSystemLocales enumeration system
EnumTimeFormats enumerates the time format applicable to a specified place
ExitWindowsEx exits windows and restarts with specific options
ExpandEnvironmentStrings
Expanded environment string
FreeEnvironmentStrings: Translation of specified environment string Blocks
GetACP identifies the ANSI code page currently in effect
GetAsyncKeyState determines the status of the specified virtual key when the function is called
GetCaretBlinkTime determines the blinking frequency of the insert operator cursor
GetCaretPos
GetClipCursor
Obtains a rectangle to describe the cut area currently specified by the mouse pointer.
GetCommandLine gets 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: Get the current cursor position
GetDateFormat format a system date for 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 is replaced by GetOEMCP, which has the same functions.
GetKeyboardLayout gets a handle that describes the keyboard layout of the specified application.
GetKeyboardLayoutList to obtain a list of all keyboard layouts applicable to the System
GetKeyboardLayoutName gets the name of the current active keyboard layout
GetKeyboardState: obtains the current status of each virtual key on the keyboard.
GetKeyboardType for information 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 the specified "location ".
GetLocalTime get local Date and Time
GetNumberFormat format a number in a specific format for a specified "place ".
GetOEMCP identifies the windows code page that is 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 specified windows Display object
GetSystemDefaultLangID obtains the default language ID of the system.
GetSystemDefaultLCID: Get the current default system "local"
GetSystemInfo obtains information about the underlying hardware platform.
GetSystemMetrics returns information related to the windows Environment
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 gets the local ID of the current thread
GetTickCount is used to obtain the length of time (MS) 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 is the default language ID obtained by the current user.
GetUserDefaultLCID gets the default "local" setting of the current user
GetUserName: get the name of the current user
GetVersion: determine the current Windows and DOS versions.
GetVersionEx obtains version information related to the platform and operating system.
HideCaret hides the insert operator (cursor) in the specified window)
IsValidCodePage determines whether a code page is valid
IsValidLocale determines whether the local ID is valid
The keybd_event function simulates keyboard operations.
LoadKeyboardLayout load a keyboard layout
MapVirtualKey performs 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 simulates 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 the OEM character set to the ANSI character set
SetCaretBlinkTime specifies the blinking frequency of the insert operator (cursor)
SetCaretPos specifies the position of the insert Operator
SetComputerName: set the new computer name
SetCursor sets 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 sets an environment variable to a specified value.
SetKeyboardState sets the current state of each virtual key on the keyboard
SetLocaleInfo changes user "local" Settings
SetLocalTime: set the current local time
SetSysColors: Set the color of the object displayed in the specified window.
SetSystemCursor changes 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 the location for the current thread
SetTimeZoneInformation: Set system time zone information
ShowCaret displays the insert operator (cursor) in the specified window)
ShowCursor controls the visibility of the mouse pointer
SwapMouseButton determines whether to swap the left and right mouse keys
SystemParametersInfo: gets and sets a large number of windows System Parameters
SystemTimeToTzSpecificLocalTime converts 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 unmount the specified keyboard layout
VkKeyScan
Checks the status of the virtual key code and Shift key for an ASCII character in the Windows character set.
11. API process and thread Functions
CancelWaitableTimer
This function is used to cancel a timer operation that can wait.
CallNamedPipe
This function is called by a customer process that wants to communicate through the pipeline.
ConnectNamedPipe
Indicates that a server waits until the client connects to the same named pipe.
CreateEvent creates an event object
CreateMailslot
Create a mail path. The returned handle is used by the mail route server (recipient)
CreateMutex creates a MUTEX)
CreateNamedPipe
Create a named pipe. The returned handle is used by the MPs Queue Server.
CreatePipe creates an anonymous Pipeline
CreateProcess creates a new process (such as executing a Program)
CreateSemaphore creates a new signal
CreateWaitableTimer
DisconnectNamedPipe disconnects a customer from a named pipe
DuplicateHandle
Creates a new handle for an existing system object when the current handle is specified.
ExitProcess abort a process
FindCloseChangeNotification
FindExecutable searches for the file names of programs associated with a specified file.
FindFirstChangeNotification
Create a file notification object. This object is used to monitor changes in the file system.
FindNextChangeNotification
Reset a file change notification object to continue monitoring the next change
FreeLibrary releases the specified dynamic link library
GetCurrentProcess gets a pseudo handle of the current process
GetCurrentProcessId gets a unique identifier of the current process
GetCurrentThread obtains a pseudo handle of the current thread.
GetCurrentThreadId obtains a unique thread identifier of the current thread.
GetExitCodeProces obtains the exit code of an interrupted process.
GetExitCodeThread: obtains the exit code of a suspended thread.
GetHandleInformation obtains information related to a system object handle.
GetMailslotInfo
GetModuleFileName: Get the complete path name of a loaded template.
GetModuleHandle obtains the module handle of an application or dynamic link library.
GetPriorityClass obtains the priority of a specific process.
GetProcessShutdownParameters
Investigate the early delay between a specified process and other processes when the system is shut down.
GetProcessTimes obtains time-related information about a process.
GetProcessWorkingSetSize
Measure the test taker's knowledge about how large memory is actually delivered to an application during its operation.
GetSartupInfo obtains the startup information of a process.
GetThreadPriority gets the priority of a specific thread
GetTheardTimes obtains the time-related information of a thread.
GetWindowThreadProcessId
Gets a process and thread identifier associated with a specified window.
LoadLibrary
Load the specified dynamic link library and map it to the address space used by the current process
LoadLibraryEx
Load the specified dynamic link library and map it to the address space for the current process
LoadModule loads a Windows application and runs it in the specified environment
MsgWaitForMultipleObjects
Wait for a single object or a series of objects to send signals. If the return condition has been met, return immediately
SetPriorityClass sets the priority of a process
SetProcessShutdownParameters
During system shutdown, set the sequence of shutdown relative to other programs for the specified process
SetProcessWorkingSetSize
Set the memory capacity actually allocated to the process by the operating system
SetThreadPriority: sets the thread priority.
ShellExecute searches for the file name of the program associated with the specified file
TerminateProcess ends a process
Run the specified program in WinExec
12. Controls and message functions of Apis
AdjustWindowRect
Specify a window style and calculate the size of the window required to obtain the rectangle of the target customer area.
AnyPopup determines whether any pop-up window exists on the screen
ArrangeIconicWindows arranges a minimum child window of a parent window
AttachThreadInput connection thread Input Function
BeginDeferWindowPos starts the process of building a series of new window positions
BringWindowToTop: Bring the specified window to the top of the window list
CascadeWindows arrange windows in cascade Mode
ChildWindowFromPoint
Returns the handle of the first subwindow containing the specified vertex in the parent window.
ClientToScreen: determines the screen coordinates of a point represented by client zone coordinates in the window.
CloseWindow minimizes the specified window
Copy CopyRect rectangular content
DeferWindowPos this function specifies a new window location for a specific window
DestroyWindow clears the specified window and all its subwindows.
DrawAnimatedRects depicts a series of dynamic rectangles
EnableWindow: Allows or disables all mouse and keyboard input in the window specified by EnableWindow.
EndDeferWindowPos
Update the position and status of all windows specified during DeferWindowPos call.
EnumChildWindows: Specifies the parent window to enumerate child windows.
EnumThreadWindows enumeration window related to a specified task
All parent windows in the EnumWindows enumeration window list
Duplicate rect to determine whether the two rectangles have the same structure
FindWindow: Find the first top-level window in the window list that meets the specified conditions.
In the window list, find the first child window that matches the specified condition.
Flash window flashes to display the specified window
GetActiveWindow: Get the handle of the activity window
GetCapture
Get the handle of a window, which is located in the current input thread and has Mouse capture (received by the mouse activity)
GetClassInfo
Obtains a copy of The WNDCLASS structure (or WNDCLASSEX structure). The structure contains information related to the specified class.
GetClassLong gets a Long variable entry of the window class.
GetClassName: Get the class name for the specified window
GetClassWord obtains an integer variable for the window class.
GetClientRect returns the size of the rectangle in the specified window.
GetDesktopWindow: Get a window (desktop window) handle representing the entire Screen
GetFocus: Get the handle of the window with the input focus
GetForegroundWindow
GetLastActivePopup
Obtains the handle of a pop-up window that has been recently activated in a given parent window.
GetParent determines the parent window of a specified window
GetTopWindow
Search for the internal window list and find the handle of the first window that belongs to the specified window
GetUpdateRect
Obtains a rectangle that describes the part of the specified window that needs to be updated.
GetWindow obtains the handle of a window, which has a specific relationship with a source window.
GetWindowContextHelpId gets the help scenario ID associated with the window
GetWindowLong obtains information from the structure of the specified window.
GetWindowPlacement
GetWindowRect
Obtain the range rectangle of the entire window. The border, title bar, scroll bar, and menu of the window are all in this rectangle.
GetWindowText
Obtains the title text of a form or the content of a control.
GetWindowTextLength investigate the length of text or control content in the window title
GetWindowWord obtains information about the specified window structure.
InflateRect increases or decreases the size of a rectangle.
IntersectRect
This function loads a rectangle in lpDestRect, which is the intersection of the two rectangles lpSrc1Rect and lpSrc2Rect.
InvalidateRect shields all or part of a window's customer Zone
IsChild checks whether a window is a child or subordinate window of another window.
IsIconic determines whether the window has been minimized
IsRectEmpty checks whether a rectangle is empty
IsWindow: determines whether a window handle is valid
IsWindowEnabled: checks whether the window is active.
IsWindowUnicode
Determines whether a window is a Unicode window. This means that the window receives Unicode text for all text-based messages.
IsWindowVisible: determines whether the window is visible
IsZoomed determines whether the window is maximized
LockWindowUpdate: locks the specified window and disables update.
MapWindowPoints
Converts the coordinates of the customer zone in one window to the coordinate system of the customer zone in the other window.
MoveWindow changes the position and size of the specified window
OffsetRect moves the rectangle by applying a specified offset.
OpenIcon restores a minimal program and activates it.
PtInRect: determines whether the specified vertex is inside the rectangle.
RedrawWindow redraw all or part of the window
ReleaseCapture: Release Mouse capture for the current application
ScreenToClient determines the customer zone coordinates of a specified point on the screen
All or part of the client area of the ScrollWindow rolling window
Scrollintowex scroll all or part of the customer area of the window according to the additional options
SetActiveWindow activates the specified window
SetCapture: Set the Mouse capture to the specified window
SetClassLong sets a Long variable entry for the window class
SetClassWord: Set an entry for the window class
SetFocusAPI sets the input focus to the specified window. The window will be activated if necessary
SetForegroundWindow: Set the window to the foreground window of the system.
SetParent specifies the new parent of a window
SetRect: Set the content of the specified rectangle
SetRectEmpty: Set the rectangle to an empty rectangle.
SetWindowContextHelpId sets the help scenario (context) ID for the specified window
SetWindowLong sets the information for the specified window in the window structure.
SetWindowPlacement
SetWindowPos specifies a new position and status for the window
SetWindowText: Set the title text or control content of the window
SetWindowWord specifies window settings in the window structure.
ShowOwnedPopups: display or hide all pop-up windows owned by the specified window
ShowWindow control window visibility
ShowWindowAsync is similar to ShowWindow
SubtractRect
Loads the rectangular lprcDst, which is the result of subtracting lprcSrc2 from the rectangular lprcSrc1.
TileWindows arrange windows in Tiled order
UnionRect
Loads an lpDestRect target rectangle, which is the result of the combination of lpSrc1Rect and lpSrc2Rect.
UpdateWindow force update window
All or part of the ValidateRect validation window
WindowFromPoint
Returns the handle of the window containing the specified vertex. Ignore shielding, hiding, and transparent windows