C++ Builder API functions

C++ Builder API functions

C++ Builder API functions

1. API network functions

WNetAddConnection Creates a permanent connection to the
same network resource WNetAddConnection2 Creates a connection to the same network resource
WNetAddConnection3 Creates a connection to the same network resource
WNetCancelConnection Ends a network connection
WNetCancelConnection2 Ends a network connection
WNetCloseEnum Ends an enumeration operation
WNetConnectionDialog starts a standard dialog box Establish a connection with a network resource
WNetDisconnectDialog Starts a standard dialog box to disconnect from a network resource
WNetEnumResource Enumerates network resources
WNetGetConnection Gets the network name of a local or connected resource
WNetGetLastError Gets the extended error information of the network error
WNetGetUniversalName Gets the network The remote name of a file and/or the UNC (Uniform Naming Convention ) name
WNetGetUser Gets the name of a network resource to connect to
WNetOpenEnum Starts the process of enumerating network resources

2. API message function

BroadcastSystemMessage Broadcast a system message to all top-level windows in the system
GetMessagePos Get the mouse pointer screen position when the last message in the message queue is processed
GetMessageTime Get the time when the last message in the message queue is processed
PostMessage Post a message to the specified window The message queue
PostThreadMessage sends a message to the application
RegisterWindowMessage Gets the message number assigned to a string identifier
ReplyMessage Reply to a message
SendMessage Calls a window function to send a message to that window
SendMessageCallback Sends a message to the window
SendMessageTimeout Send a message
to the window SendNotifyMessage Send a message to the window

3. API file processing functions

CloseHandle closes a kernel object. Including files, file mapping, processes, threads, security and synchronization objects.
CompareFileTime Compare the time of two files
CopyFile Copy files
CreateDirectory Create a new directory
CreateFile Open and create files, pipes, mail slots, communication services, devices, and console
CreateFileMapping Create a new file mapping object
DeleteFile Delete the specified file
DeviceIoControl Perform the specified operation on the device
DosDateTimeToFileTime Convert the DOS date and time value into a win32 FILETIME value
FileTimeToDosDateTime Convert a win32 FILETIME value into a DOS date and time value
FileTimeToLocalFileTime Convert a FILETIME structure Cost local time
FileTimeToSystemTime Load a SYSTEMTIME structure according to the contents of a FILETIME structure
FindClose Close a search handle created by the FindFirstFile function
FindFirstFile Find a file according to the file name
FindNextFile Find the next file
according to a file name specified when the FindFirstFile function is called FlushFileBuffers For the specified File handle, flush internal file buffer
FlushViewOfFile flush all data written in file mapping buffer to disk
GetBinaryType Determines whether the file can be executed
GetCompressedFileSize Determines the number of bytes actually occupied by a compressed file on the disk
GetCurrentDirectory Loads the current directory in a buffer
GetDiskFreeSpace Obtains information related to the organization of a disk, and understands the capacity of the remaining space
GetDiskFreeSpaceEx Obtains the same Information about the organization of the disk and the remaining space capacity
GetDriveType Determine the type of a disk drive
GetExpandedName Get the full name of a compressed file
GetFileAttributes Determine the attributes of the specified file
GetFileInformationByHandle This function provides a mechanism for obtaining file information
GetFileSize Determines the length of the file
GetFileTime Gets the specified File time information
GetFileType Determines the file type on the premise of giving the file handle.
GetFileVersionInfo Obtains the file version information from a module that supports version marking.
GetFileVersionInfoSize For a file containing version resources, determine how large a buffer is needed to accommodate the file version information Area
GetFullPathName Get the full path name of the specified file
GetLogicalDrives Determine which logical drive letters exist in the system
GetLogicalDriveStrings Get a string that contains the root drive path of all the current logical drives
GetOverlappedResult Determines the current status of an overlapped operation.
GetPrivateProfileInt Gets an integer value
for the specified entry in the initialization file (.ini file). GetPrivateProfileSection Gets a list of all item names and values in the specified section (in the .ini file).
GetPrivateProfileString is the one specified in the initialization file. Entry Get String
GetProfileInt Gets an integer value of the specified entry in the win.ini initialization file GetSystemDirectory Get the full path name of the Windows system directory (ie System directory) GetTempFileName This function contains the name of a temporary file, which can be used by the application to obtain the path specified for the temporary file. GetVolumeInformation Information about a disk volume GetWindowsDirectory Get the full path name of the Windows directory hread Refer to lread hwrite Refer to the lwrite function lclose Close the specified file lcreat Create a file llseek Set the current position of the file for reading and writing
GetProfileSection Gets a list of all item names and values of the specified section (in the win.ini file) GetProfileString Gets the
string
for the specified entry in the win.ini initialization file GetShortPathName Gets the short path name of the specified file RegCreateKey creates or opens an item under the specified item. RegCreateKeyEx A more complex way to create a new item under the specified item. In the Win32 environment, it is recommended to use this function RegDeleteKey to delete a specified subkey under an existing item RegDeleteValue to delete a value under a specified item










LockFile locks a certain part of the file so that it is not shared with other applications.
LockFileEx is similar to LockFile, except that it provides more functions
lopen opens the specified file in binary mode
lread reads the data in the file into the memory buffer
lwrite reads the data Write a file from the memory buffer
LZClose Close a file opened by the LZOpenFile or LZInit function
LZCopy Copy a file
LZInit This function is used to initialize the internal buffer
LZOpenFile This function can perform a large number of different file processing, and is compatible with compressed files
LZRead will Data is read from the file into the memory buffer
LZSeek Set the current position of a file for reading and writing
MapViewOfFile Map a file mapping object to the address space of the current application
MoveFile Move the file
OpenFile This function can perform a large number of different file operations
OpenFileMapping Open a ready-made The file mapping object
QueryDosDevice In Windows NT, the DOS device name will be mapped to the NT system device name. This function can judge the current device mapping situation.
ReadFile reads data from the file.
ReadFileEx is similar to ReadFile, except that it can only be used for asynchronous read operations and includes a complete callback
RegCloseKey. Close a key (or key) in the system registry. )
RegConnectRegistry to access part of the registry of the remote system




RegEnumKey enumerates the children of the specified item. In the Win32 environment, you should use RegEnumKeyEx
RegEnumKeyEx to enumerate the subkeys under the specified key
RegEnumValue to enumerate the value of the specified key
RegFlushKey Will actually write the changes made to the key and its subkeys to the disk
RegGetKeySecurity Obtain security information related to a registry key
RegLoadKey loads the registry information from a file previously created with the RegSaveKey function. RegSaveKey saves a key and all its subkeys to a disk file. RegSetKeySecurity sets the security features of the specified key. RegSetValue sets the default value of the specified key or subkey. RegSetValueEx settings The value of the specified item RegUnLoadKey Unload the specified item and all its sub-items RemoveDirectory Delete the specified directory SearchPath Find the specified file SetCurrentDirectory Set the current directory SetEndOfFile For an open file, set the current file location to the end of the file SetFileAttributes Set the file attribute SetFilePointer in a file Set the current read and write position in SetFileTime Set the file creation, access and last modification time SetHandleCount This function does not need to be used under win32; even if it is used, there will be no effect
RegNotifyChangeKeyValue When a registry key or any of its subkeys change, use this function to provide a notification mechanism.
RegOpenKey opens an existing registry key
RegOpenKeyEx opens a Existing items. Under win32, it is recommended to use this function
RegQueryInfoKey to obtain information related to an item
RegQueryValue to obtain the default (unnamed) value of a specified item or subkey
RegQueryValueEx to obtain the setting value of an item
RegReplaceKey to replace the registry information with the information saved in a disk file; and Create a backup containing the current registry information
RegRestoreKey to restore registry information from a disk file













SetVolumeLabel Sets the volume label of a disk (Label)
SystemTimeToFileTime Loads a SYSTEMTIME structure according to the contents of a FILETIME structure.
UnlockFile UnlockFile Unlocks a file. lock
UnlockFileEx unlock a file
UnmapViewOfFile lift the mapping of a file mapping object in memory address space of the current application
VerFindFile use this function to determine where a file should be installed
VerInstallFile Use this function to install a file.
VerLanguageName This function can obtain the name of a language based on the 16-bit language code.
VerQueryValue This function is used to obtain information from the version resource.
WriteFile Write data to a file
WriteFileEx is similar to WriteFile, except that it can only be used For asynchronous write operations, and includes a complete callback
WritePrivateProfileSection Sets all item names and values for a section specified in an initialization file (.ini)
WritePrivateProfileString Sets a string in the specified section of the
initialization file WriteProfileSection is a Win.ini initialization file Set all item names and values
in the specified section WriteProfileString Set a string in the specified section of the Win.ini initialization file

4. The API print function
AbortDoc cancels the printing of a document.
AbortPrinter deletes the buffer file associated with a
printer. AddForm adds a new form to the printer's form list.
AddJob is used to obtain a valid path name so that it can be used as a job Create a spool file. It also assigns a job number to the job.
AddMonitor adds a printer monitor to the system.
AddPort starts the "Add Port" dialog box, allowing the user to add a new port to the list of available ports
in the system. AddPrinter adds a new printer to the system.
AddPrinterConnection connects to the specified Printer
AddPrinterDriver Add a print driver
for the specified system AddPrintProcessor Add a print processor for the specified system
AddPrintProvidor Add a print provider to the system
AdvancedDocumentProperties Start the printer document settings dialog
ClosePrinter Close an open printer object
ConfigurePort Start for the specified port A port configuration dialog box
ConnectToPrinterDlg starts the printer connection dialog box, and uses it to connect to the printer that accesses the network.
DeleteForm. Delete a form from the list of available forms for the printer. Delete a form.
Delete the specified print monitor.
DeletePort. The system deletes a port
DeletePrinter marks the specified printer as being deleted from the system
DeletePrinterConnection Deletes the connection to the specified printer
DeletePrinterDriver Deletes a printer driver from the system
DeletePrintProcessor Deletes a print processor from the specified system
DeletePrintProvidor Deletes a print provider from the system
DeviceCapabilities Use this function to obtain Information related to the capabilities of a device
DocumentProperties Printer configuration control function
EndDocAPI End a successful print job
EndDocPrinter Specify the end of a document at the spooler level
EndPage Use this function to complete the printing of a page and prepare the device scene for printing A page
EndPagePrinter specifies the end of a page in a print job
EnumForms enumerates the forms available for a printer
EnumJobs enumerates the jobs in the print queue
EnumMonitors enumerates the available print monitors
EnumPorts enumerates the ports available for a system
EnumPrinterDrivers enumerates the specified system Printer drivers
installed in
EnumPrinters enumerate printers installed in the system EnumPrintProcessorDatatypes enumerate data types supported by a print processor
EnumPrintProcessors enumerate print processors available in the system
Escape Device control function
FindClosePrinterChangeNotification Close a printer notification object
FindFirstPrinterChangeNotification obtained by the FindFirstPrinterChangeNotification function FindFirstPrinterChangeNotification Create a new change notification object so that we can pay attention to the printer status Various changes in
FindNextPrinterChangeNotification Use this function to determine the reason for triggering a printer change notification signal
FreePrinterNotifyInfo Release a buffer allocated by the FindNextPrinterChangeNotification function
GetForm to obtain information related to a specified form
GetJob to obtain information related to a specified job
GetPrinter to obtain information related to a specified printer Information
GetPrinterData sets the registry configuration information
for the printer. GetPrinterDriver obtains information about the printer driver for the specified printer
GetPrinterDriverDirectory Determines what is the directory containing the printer driver in the specified system ReadPrinter Reads data from the printer ResetDC Resets a device scene ResetPrinter Changes the default data type of the specified printer and the document settings ScheduleJob Submit a job to be printed SetAbortProc Specify the cancellation function for Windows The address SetForm sets the information for the specified form. SetJob controls the status of a print job. SetPrinter controls the status of a printer. SetPrinterData sets the printer s registry configuration information. StartDoc starts a print job. StartDocPrinter starts a new document at the background printing level.
specified system GetPrintProcessorDirectory determines that contains the printer processor driver and files in the specified system
OpenPrinter opens the specified printer, and obtains the handle of the
printer PrinterMessageBox in the specified print job A printer error message box is displayed on the system
PrinterProperties starts the printer properties dialog box to configure the printer











StartPage to call this function before printing a new page.
StartPagePrinter to print Specify the start of a new page in the job
WritePrinter Write the data in the sending directory to the printer

5. API text and font functions

AddFontResource adds a font resource to the Windows system.
CreateFont creates a logical font
with specified attributes. CreateFontIndirect creates a logical font with specified attributes.
CreateScalableFontResource creates a resource file for a TureType font so that it can be added using the API function AddFontResource Windows system
DrawText draws text into a specified rectangle.
DrawTextEx is similar to DrawText, but adds more functions.
EnumFontFamilies lists the fonts available for the
specified device.
EnumFontFamiliesEx lists the fonts available for the specified device. EnumFonts lists the fonts available for the specified device.
ExtTextOut Extended text drawing function. Please also refer to the SetTextAlign function
GetAspectRatioFilterEx. When using SetMapperFlags to require Windows to select only raster fonts that match the current aspect ratio of the device, this function can determine the aspect ratio size
GetCharABCWidths Determine the ABC size of one or more characters in the TureType font
GetCharABCWidthsFloat Query one font in a font The ABC size of or multiple characters
GetCharacterPlacement This function is used to understand how to display a string with a given character
GetCharWidth Investigate the width of one or more characters in the
font GetFontData Receive the data of a scalable font file
GetFontLanguageInfo Returns the information of the font currently selected in the specified device scene
GetGlyphOutline Gets the curve information of a character in the TureType font
GetKerningPairs Gets the kerning information of the specified font
GetOutlineTextMetrics Receive detailed information about the internal characteristics of TureType fonts
GetRasterizerCaps Find out whether the system is capable of supporting scalable fonts
GetTabbedTextExtent Determine the range occupied by a string, taking into account the expansion of the tab station
GetTextAlign Receive the current text alignment flag of a device scene
GetTextCharacterExtra Determine the current value of the extra character spacing
GetTextCharset Receives the character set identifier of the font currently selected in the specified device scene.
GetTextCharsetInfo Obtains detailed information related to the character set of the currently selected font.
GetTextColor determines the current font color. Usually called "foreground color"
GetTextExtentExPoint Determines the number of characters to fill in the specified area. Range information is also loaded with an array of each character
GetTextExtentPoint judge a string of size (range)
GetTextFace get a font face name
GetTextMetrics Gets the information related to the physical font selected into a device scene.
GrayString draws a display in gray The string. Usually used by Windows to identify the prohibited state.
PolyTextOut depicts a series of strings
RemoveFontResource removes a font resource from the Windows system.
SetMapperFlags. When Windows maps fonts, you can use this function to select a raster font that matches the aspect ratio of the target device.
SetTextAlign Set the text alignment and specify the current device scene to be used during text output. The position
SetTextCharacterExtra specifies the extra space to be inserted between characters when drawing text.
SetTextColor sets the current text color. This color is also called "foreground color"
SetTextJustification By specifying the extra space that a text line should occupy, this function can be used to justify the text.
TabbedTextOut supports a text drawing function of the tab station.
TextOut text drawing function

6. API menu function

AppendMenu Add a menu item
CheckMenuItem to the specified menu
CheckMenuItem Check or uncheck the specified menu item CheckMenuRadioItem Specify a menu item to be checked as a "single selection" item
CreateMenu Create a new menu
CreatePopupMenu Create an empty pop-up menu
DeleteMenu Delete a designation Menu item
DestroyMenu Delete the specified menu
DrawMenuBar Redraw the menu for the specified window
EnableMenuItem Allow or prohibit the specified menu item
GetMenu Get the handle of a menu in the window
GetMenuCheckMarkDimensions Return the size of a menu check mark
GetMenuContextHelpId Get the help scene ID of a menu
GetMenuDefaultItem Determine which item in the menu is the default item
GetMenuItemCount Return the number of items (menu items)
in the menu GetMenuItemID Return the menu ID of the item located at the specified position in the menu
GetMenuItemInfo Get (receive) specific information related to a menu item
GetMenuItemRect in a rectangle Load the screen coordinate information of the specified menu item in GetSystemMenu Get the handle of the system menu of the specified window HiliteMenuItem Control the highlighting state of the top menu item
specified menu item in
GetMenuState Get the information related to the state of the specified menu item
GetMenuString Get the string of the specified menu item GetSubMenu Get the handle of a pop-up menu, which is located at the specified position in the menu


InsertMenu inserts a menu item at the specified position of the menu, and moves other items down as needed.
InsertMenuItem inserts a new menu item
IsMenu to determine the specified Whether the handle is a menu handle
LoadMenu Load a menu from the specified module or application instance
LoadMenuIndirect Load a menu
MenuItemFromPoint Determine which menu item contains a specified point on the screen
ModifyMenu Change the menu item
RemoveMenu Delete the specified menu item
SetMenu Set the window menu
SetMenuContextHelpId Set the help scene ID of
a menu SetMenuDefaultItem Set a menu item as the default item
SetMenuItemBitmaps Set a specific bitmap to be used in the specified menu item, instead of the standard check mark ( )
SetMenuItemInfo is one The information specified by the menu item setting
TrackPopupMenu Displays a pop-up menu anywhere on the screen.
TrackPopupMenuEx is similar to TrackPopupMenu, except that it provides additional functions.

7. API bitmap, icon and raster operation function
BitBlt copies a bitmap from one device scene to another
CopyIcon to make a copy of the specified icon or mouse pointer. This copy is subordinate to the calling application
CopyImage Copy bitmap, icon or pointer, and some conversion work during the copying process
CreateBitmap Create a device-related bitmap according to the specified format
CreateBitmapIndirect Create a device-related bitmap
CreateCompatibleBitmap Create a device-related bitmap, which is compatible with the specified device scene
CreateCursor Create a mouse pointer
CreateDIBitmap Create a device-related bitmap based on a device-independent bitmap
CreateDIBSection Create a DIBSection
CreateIcon Create an icon
CreateIconIndirect Create An icon
DestroyCursor clears the specified mouse pointer and releases all system resources it occupies.
DestroyIcon Clear icon
DrawIcon Draw an icon at the specified position
DrawIconEx Draw an icon or mouse pointer. Compared with DrawIcon, this function provides more functions.
ExtractAssociatedIcon Determine whether there is an icon in an executable program or DLL, or whether there is an icon associated with the file specified in the system registry and extract the
ExtractIcon Determine an executable file or Whether there is an icon in the DLL and extract it
GetBitmapBits Copy the binary bits from a bitmap to a buffer
GetBitmapDimensionEx Get the width and height of a
bitmap GetDIBColorTable Get the color table information
from the DIBSection of the selected device scene GetDIBits Copy the binary bits from a bitmap to a frame In device-independent bitmaps,
GetIconInfo obtains icon-related information.
GetStretchBltMode determines the stretch mode used by the StretchBlt and StretchDIBits functions.
LoadBitmap loads a bitmap
from the specified module or application instance . LoadCursor From the specified module or application instance Load a mouse pointer
LoadCursorFromFile Create a pointer based on a pointer file or an animated pointer file
LoadIcon Load an icon from a specified module or application instance LoadImage
Load a bitmap, icon or pointer
MaskBlt Execute complex graphics Image transmission, and mask processing at the same time.
PatBlt fills the specified device scene with a pattern on the basis of the currently selected brush.
PlgBlt copies a bitmap and converts it into a parallelogram at the same time. Use it to rotate the
bitmap.
SetBitmapBits copies the binary bits from the buffer to a bitmap. SetBitmapDimensionEx sets the width of a bitmap.
SetDIBColorTable Set the color table information of a DIBSection selected in the device scene in units of one-tenth of a millimeter
SetDIBits copies the binary bits from the device-independent bitmap to a device-related bitmap.
SetDIBitsToDevice directly copies all or part of the data of a device-independent bitmap to a device.
SetStretchBltMode specifies the stretch mode of the StretchBlt and StretchDIBits functions
StretchBlt copies a bitmap from one device scene to another
StretchDIBits directly copies all or part of the data of a device-independent bitmap to the specified device scene

||||||8. API drawing functions

AbortPath discards all paths selected into the specified device scene. Also cancel any path creation currently in progress.
AngleArc Draw a line with a connecting arc
Arc Draw an arc
BeginPath Start a path branch
CancelDC Cancel a long drawing operation in another thread
Chord Draw a chord
CloseEnhMetaFile Close the specified enhanced type Metafile device scene, and return a handle to the newly created metafile.
CloseFigure When drawing to a path, close the currently opened figure.
CloseMetaFile Closes the specified metafile device scene and returns a handle
CopyEnhMetaFile to the newly created metafile. Specify a copy (copy) of the
enhanced metafile CopyMetaFile Make a copy of the specified (standard) metafile
CreateBrushIndirect Create a brush based on a LOGBRUSH data structure
CreateDIBPatternBrush Create a brush with a device-independent bitmap, In order to specify the brush style (pattern)
CreateEnhMetaFile Create an enhanced metafile device scene
CreateHatchBrush Create a brush with a shadow pattern
CreateMetaFile Create a metafile device scene
CreatePatternBrush Create a brush a bitmap with a specified brush pattern
with CreatePen Create a brush with the specified style, width and color
CreatePenIndirect creates a brush according to the specified LOGPEN structure. CreateSolidBrush creates a brush
with a solid color.
DeleteEnhMetaFile Deletes the specified enhanced metafile.
DeleteMetaFile Deletes the specified metafile.
DeleteObject Deletes the GDI object. All system resources used by the object will be released.
DrawEdge uses the specified style.
Draw a rectangular frame The DrawEscape Escape function sends the data directly to the display device driver
DrawFocusRect Draws a focus rectangle
DrawFrameControl
Draws a standard control DrawState Apply various effects to an image or drawing operation
Ellipse draws a Ellipse, defined by a specified rectangle around
EndPath to stop defining a path
EnumEnhMetaFile For an enhanced metafile, enumerate a single metafile record
EnumMetaFile is a standard windows metafile enumerate a single metafile record
EnumObjects enumeration can be The brushes and brushes used with the specified device scene
ExtCreatePen Create an extended brush (decorative or geometric)
ExtFloodFill In the specified device scene, fill an area with the currently selected brush.
FillPath Close any open graphics in the path, and fill
FillRect with the current brush. Fill a rectangle with the specified brush
FlattenPath converts all curves in a path into line segments
FloodFill fills an area in the specified device scene with the currently selected brush FrameRect uses the
specified brush to draw a border around a rectangle
GdiComment is the specified enhanced metafile device scene Add a comment message
GdiFlush Perform any pending drawing operations
GdiGetBatchLimit Determine how many GDI drawing commands are in the queue
GdiSetBatchLimit Specify how many GDI drawing commands can enter the queue
GetArcDirection When drawing an arc, judge the current drawing direction
GetBkColor Get the designation The current background color
of the device scene GetBkMode Gets the current background filling mode for the
specified device scene GetBrushOrgEx Determines the starting point of the currently selected brush in the specified device scene
GetCurrentObject Gets the currently selected object of the specified type GetCurrentPositionEx Gets the current brush
in the specified device scene Location
GetEnhMetaFile Get the metafile handle of an enhanced metafile contained in the disk file
GetEnhMetaFileBits Copy the specified enhanced metafile to a memory buffer
GetEnhMetaFileDescription Return the description of an enhanced metafile
GetEnhMetaFileHeader Get enhanced Metafile header
GetEnhMetaFilePaletteEntries Obtains all or part of the palette of the
enhanced metafile GetMetaFile Obtains the metafile handle of the
metafile contained in a disk file GetMetaFileBitsEx Copy the specified metafile to a memory buffer
GetMiterLimit Get the slope limit of the device scene (Miter) Set
GetNearestColor Get the solid color closest to the specified color according to the display capability of the device
GetObjectAPI Get a structure that describes the specified object
GetObjectType Determine the type of the GDI object referenced by the specified handle
GetPath Get a series of data defining the current path
GetPixel Get the RGB value of a pixel in the
specified device scene
GetPolyFillMode Get the polygon filling mode for the specified device scene GetROP2 Get the current drawing mode for the specified device scene
GetStockObject Get an inherent Object (Stock)
GetSysColorBrush obtains a brush for any standard system color.
GetWinMetaFileBits converts an enhanced metafile into a standard windows
metafile by filling in a buffer with data for the standard metafile. InvertRect inverts The value of each pixel, thereby inverting the specified rectangle in a device scene
LineDDA Enumerate all points in the specified line segment
LineTo draw a line with the current pen, connecting from the current position to a specified point
MoveToEx specifies a new current pen position
for the specified device scene
PaintDesk Draws the desktop wallpaper pattern in the specified device scene PathToRegion Converts the currently selected path to an area
Pie draws a pie chart
PlayEnhMetaFile Draws one in the specified device scene Enhanced metafile sets the background color for the specified equipment scene.
PlayEnhMetaFileRecord Play back a single enhanced metafile record
PlayMetaFile Play back a metafile in the specified device scene
PlayMetaFileRecord Play back a single record from a
metafile PolyBezier Draw one or more Bezier curves
PolyDraw Draw a complex curve , Composed of line segments and B zier curves
Polygon draws a polygon
Polyline draws a series of line segments with the current brush
PolyPolygon draws two or more polygons
with the currently selected brush PolyPolyline draws two or more polygons with the currently selected brush
Rectangle uses the current The selected brush draws the rectangle and fills the
RoundRect with the currently selected brush . Draws a rounded rectangle with the currently selected brush and fills it with the currently selected brush.
SelectClipPath Combines the current path of the device scene into the clipping area.
SelectObject Select the graphic object
SetArcDirection for the current device scene SetArcDirection Set the drawing direction of the arc SetBkMode Specify the shadow brush, dashed brush, and the filling method of the gaps in the character SetBrushOrgEx Set the starting point of the currently selected brush for the specified device scene SetEnhMetaFileBits Use the specified memory buffer to contain Create an enhanced metafile SetMetaFileBitsEx using the data structure contained in the specified memory buffer to create a metafile SetMiterLimit Set the current slope limit of the device scene






SetPixel Set the RGB value of a pixel
in the specified device scene. SetPixelV Set the RGB value of a pixel in the specified device scene.
SetPolyFillMode Set the polygon filling mode.
SetROP2 Set the drawing mode of the specified device scene. It is exactly the same as the DrawMode property of vb.
SetWinMetaFileBits converts a standard Windows metafile into an enhanced metafile.
StrokeAndFillPath For the specified device scene, close all open areas on the path.
StrokePath draws the outline of a path with the current pen. The opened graphics will not be closed by this function.
UnrealizeObject Before selecting a brush object into the device scene, if the starting point of the brush is to be modified with SetBrushOrgEx, you must first call this function
WidePath to redefine the currently selected path according to the width of the selected brush

9. API equipment scene function

CombineRgn combines two regions into a new region
CombineTransform to drive world transformation. It is equivalent to two conversions in sequence
CreateCompatibleDC Create a memory device scene consistent with a specific device scene
CreateDC Create a device scene for a special device
CreateEllipticRgn Create an ellipse
CreateEllipticRgnIndirect Create an ellipse area inscribed in a specific rectangle
CreateIC Create a message for a special device The scene
CreatePolygonRgn creates an area surrounded by a series of points. CreatePolyPolygonRgn creates an area
composed of multiple polygons. Each polygon should be a closed
CreateRectRgn Create a rectangular area
CreateRectRgnIndirect Create a rectangular area
CreateRoundRectRgn Create a rounded rectangle
DeleteDC Delete a dedicated device scene or information scene, release all related window resources
DPtoLP Convert the dot matrix from device coordinates to a dedicated device scene The logical coordinate
EqualRgn determines whether the two areas are equal.
ExcludeClipRect removes a rectangular area from the clipping area of the special equipment scene. Cannot draw within the rectangle
ExcludeUpdateRgn Remove the refresh area of the specified window from the special equipment scene clipping area
ExtCreateRegion Modify the area according to the world transformation
ExtSelectClipRgn Combine the specified area into the current clipping area of the equipment scene
FillRgn Fill the specified area
with the specified brush FrameRgn Use the specified brush to draw a frame around the specified area
GetBoundsRect Get the bounding rectangle of the
specified device scene
GetClipBox Get the smallest rectangle that completely contains the clipping area of the specified device scene GetClipRgn Get the current clipping area of the device scene
GetDC Get the specified window Device scene
GetDCEx gets the device scene for the specified window. Compared with GetDC, this function provides more options.
GetDCOrgEx Gets the starting position of the specified device scene (expressed in screen coordinates)
GetDeviceCaps Returns information
according to the function of the device represented by the specified device scene GetGraphicsMode Determines whether to allow enhanced graphics mode (world transformation)
GetMapMode is The specific device scene
is called into the mapping mode. GetRegionData Loads the RgnData structure or buffer that describes a region information.
GetRgnBox Gets the smallest rectangle
that completely contains the specified area. GetUpdateRgn determines the refresh area of the specified window. This area is currently invalid. You need to refresh
GetViewportExtEx Get the viewport range of the
device scene GetViewportOrgEx Get the start point of the device scene viewport
GetWindowDC Get the device scene of the entire window (including borders, scroll bars, title bars, menus, etc.)
GetWindowExtEx Get the specified device scene Window range
GetWindowOrgEx Gets the starting point of the logical window of the specified device scene
GetWindowRgn Get the window area
GetWorldTransform If there is a world transition, get the current world transition for the device scene.
IntersectClipRect Defines a new clipping area for the specified device.
InvalidateRgn makes the specified area of the window inactive and adds it to the window refresh area so that it can be redrawn later
InvertRgn Inverts the specified area of the device scene by inverting each pixel value
LPtoDP Converts the dot matrix from the logical coordinates of the specified device scene to the device coordinates
ModifyWorldTransform Modify the world transformation according to the specified mode
OffsetClipRgn Pan the device scene clipping area
by the specified amount OffsetRgn Press the specified offset Pan the specified area
OffsetViewportOrgEx Pan the viewport area of the device scene
OffsetWindowOrgEx Pan the start point of the device scene window
PaintRgn Fill the specified area with the current brush background color
PtInRegion Determine whether the point is in the specified area
PtVisible Determine whether the specified point is visible (that is, whether the point is in the clipping area of the device scene Inside)
RectInRegion Determine whether part of the rectangle is in the specified area
RectVisible Determine whether part of the specified rectangle is visible (whether it is in the clipping area of the device scene)
ReleaseDC Release the specified device scene obtained by calling GetDC or GetWindowDC function
RestoreDC Restore the original one from the device scene stack Saved device scene
SaveDC saves the specified device scene state to the Windows device scene stack
ScaleViewportExtEx Scales the range of the device scene viewport
ScaleWindowExtEx Scales the specified device scene Window range
ScrollDC Horizontal and/or vertical scroll rectangle in the window (represented by the device scene)
SelectClipRgn Selects a new clipping area
for the specified device scene SetBoundsRect Sets the boundary of the specified device scene Rectangle
SetGraphicsMode Allows or prohibits enhanced graphics mode to provide some support (including world transformation)
SetMapMode Set the mapping mode of the specified device scene
SetRectRgn Set the area to the specified rectangle
SetViewportExtEx Set the device scene viewport range
SetViewportOrgEx Set the device scene viewport start point
SetWindowExtEx setting Specify the device scene window range
SetWindowOrgEx Set the start point of the specified device scene window
SetWindowRgn Set the window area
SetWorldTransform Set the world transformation
ValidateRgn Activate the specified area in the window, remove it from the refresh area
WindowFromDC Retrieve the handle of the window related to a certain device scene

10. The API hardware and system function
ActivateKeyboardLayout activates a new keyboard layout. The keyboard layout defines the position and meaning of the keys on a physical keyboard.
Beep is used to generate a simple sound.
CharToOem converts a string from the ANSI character set to the OEM character set.
ClipCursor limits the pointer to the specified area.
ConvertDefaultLocale places a special place. The identifier is converted to the real place ID.
CreateCaret creates a caret (cursor) based on the specified information, and selects it as the default caret
DestroyCaret of the specified window. Clears (destroys) a caret
EnumCalendarInfo enumerates in the specified "place" environment Calendar information available in
EnumDateFormats Enumerate the long and short date formats available in the specified "local" setting
EnumSystemCodePages Enumerate the installed or supported code pages in the
system EnumSystemLocales Enumerate the "local" settings that the system has installed or provide support
EnumTimeFormats Enumeration A time format applicable to a specified place
ExitWindowsEx Exit Windows and restart
ExpandEnvironmentStrings with specific options Expand Environment Strings
FreeEnvironmentStrings Translate the specified environment string block
GetACP Determine the ANSI code page currently in effect GetCaretBlinkTime Determine the blinking frequency of the caret cursor
GetAsyncKeyState Determine the state of the specified virtual key when the function is called

caret GetCaretPos Determines the current position of the
caret GetClipCursor Gets a rectangle used to describe the clipping area currently specified for the mouse pointer
GetCommandLine Gets a pointer to the current command line buffer
GetComputerName Gets the name of this computer
GetCPInfo Get the information related to the specified code page
GetCurrencyFormat For the specified "local" setting, format a number according to the currency format
GetCursor Get the handle of the currently selected mouse pointer
GetCursorPos Get the current position of the mouse pointer
GetDateFormat For the specified "local" format, Format a system date
GetDoubleClickTime Determines the interval time between two consecutive mouse clicks that will be processed as a double-click event.
GetEnvironmentStrings allocates and returns a handle to a memory block that contains the current environment string setting.
GetEnvironmentVariable obtains the value of an environment variable The value
GetInputState determines whether there are any pending (waiting to be processed) mouse or keyboard events.
GetKBCodePage is replaced by GetOEMCP. The functions of the two are exactly the same.
GetKeyboardLayout Gets a handle that describes the keyboard layout of the specified application.
GetKeyboardLayoutList Gets a list of all keyboard layouts applicable to the system.
GetKeyboardLayoutName Get the name of the currently active keyboard layout
GetKeyboardState Get the current state of each virtual key on the keyboard GetKeyboardType Get
the information related to the keyboard being used
GetKeyNameText Under the premise of giving the scan code, determine the key name
GetKeyState For the keys that have been processed, In the last input of information, determine the state of the specified virtual key
GetLastError For the previously called api function, use this function to obtain the extended error information
GetLocaleInfo to obtain the information related to the specified "place"
GetLocalTime to obtain the local date and time
GetNumberFormat for the specified "place" ", format a number in a specific format
GetOEMCP Determine the windows code page converted between OEM and ANSI character set
GetQueueStatus Determine the message type pending (waiting to be processed) in the application message queue
GetSysColor Determine the color of the specified windows display object
GetSystemDefaultLangID Get The default language ID of the system
GetSystemDefaultLCID Get the current default system "place"
GetSystemInfo Get the information related to the underlying hardware platform
GetSystemMetrics Return the information related to the windows environment
GetSystemPowerStatus Get the information related to the current system power status
GetSystemTime Gets the current system time. This time uses the "Coordinated World Time" (UTC, also called GMT) format.
GetSystemTimeAdjustment synchronizes the internal system clock with an external clock signal source.
GetThreadLocale Gets the local ID of the current thread.
GetTickCount is used to get from The length of time elapsed since windows started (milliseconds)
GetTimeFormat Formats a system time in a specific format for the currently specified "place"
GetTimeZoneInformation Gets information related to the system time zone setting
GetUserDefaultLangID Gets the default language ID
for the current user GetUserDefaultLCID Gets the current user's The default "local" setting
GetUserName Get the name of the current user
GetVersion Determine the currently running Windows and DOS version
GetVersionEx Get the version information related to the platform and operating system
HideCaret Hide the caret (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 the keyboard action
LoadKeyboardLayout Loads a keyboard layout
MapVirtualKey Performs different scan codes and character conversions
according to the specified mapping type MapVirtualKeyEx Performs different scan codes and character conversions according to the specified mapping type
MessageBeep plays a system sound. The system sound distribution scheme is determined in the control panel
mouse_event to simulate a mouse event
OemKeyScan to determine the scan code and Shift key status of an ASCII character in
the OEM character set OemToChar Convert a string in the OEM character set to the ANSI character set
SetCaretBlinkTime Specify the insertion The blinking frequency of the cursor (cursor)
SetCaretPos Specifies the position of the caret
SetComputerName Set the new computer name
SetCursor Set the specified mouse pointer as the current pointer
SetCursorPos Set the pointer position
SetDoubleClickTime Set the interval time between two consecutive mouse clicks that the system can consider a double-click event
SetEnvironmentVariable Set an environment variable to the specified The value
SetKeyboardState sets the current state of each virtual key on the keyboard.
SetLocaleInfo changes the user's "local" setting information.
SetLocalTime sets the current local time
SetSysColors sets the color of the specified window display object
SetSystemCursor changes any standard system pointer
SetSystemTime sets the current system time
SetSystemTimeAdjustment adds one at a time The calibration value synchronizes the internal system clock with an external clock signal source.
SetThreadLocale sets the place for the current thread
SetTimeZoneInformation Set system time zone information
ShowCaret Show caret (cursor) in the specified window
ShowCursor Control the visibility of the mouse pointer SwapMouseButton
Determine whether to swap the left and right mouse buttons
SystemParametersInfo Obtain and set a large number of windows system parameters
SystemTimeToTzSpecificLocalTime Convert system time Into the local time
ToAscii According to the current scan code and keyboard information, a virtual key is converted into an ASCII character
ToUnicode According to the current scan code and keyboard information, a virtual key is converted into a Unicode character
UnloadKeyboardLayout Unload the specified keyboard layout
VkKeyScan for Windows character set An ASCII character to determine the virtual key code and the state of the Shift key

11. API process and thread functions

CancelWaitableTimer This function is used to cancel a timer operation
that can wait forever. CallNamedPipe This function is called by a client process that wants to communicate through a pipe.
ConnectNamedPipe instructs a server to wait until the client connects with a named pipe.
CreateEvent creates an event object
CreateMailslot Create a postal route. The returned handle is used by the mail server (recipient)
CreateMutex to create a mutex (MUTEX)
CreateNamedPipe to create a named pipe. The returned handle is created by the server side of the pipe using
CreatePipe to create an anonymous pipe.
CreateProcess to create a new process (such as executing a program)
CreateSemaphore to create a new signal
CreateWaitableTimer to create a waitable timer object
DisconnectNamedPipe to disconnect a client from a named pipe The connection
DuplicateHandle points out the current handle of an existing system object, creates a new handle for that object
ExitProcess terminates a process
FindCloseChangeNotification closes a change notification object
FindExecutable Find the file name of the program associated with a specified file FindNextChangeNotification Reset A file change notification object, so that it continues to monitor the next change FreeLibrary releases the specified dynamic link library
FindFirstChangeNotification creates a File notification object. This object is used to monitor changes in the file system


GetCurrentProcess obtains a pseudo handle of the
current process GetCurrentProcessId obtains a unique identifier of the current process
GetCurrentThread obtains a pseudo handle of the current thread
GetCurrentThreadId obtains A unique thread identifier
for the current thread GetExitCodeProces Gets the exit code of an interrupted process
GetExitCodeThread Gets the exit code of an aborted thread
GetHandleInformation Gets information related to a system object handle
GetMailslotInfo Gets information related to a mail route
GetModuleFileName Gets a loaded The full path name of the template
GetModuleHandle Gets the module handle of an application or dynamic link library
GetPriorityClass Gets the priority level of a specific process
GetProcessShutdownParameters Investigates how soon a specified process shuts down relative to other processes when the system is shut down
GetProcessTimes Gets the elapsed time with a process Related information
GetProcessWorkingSetSize to understand how much memory an application actually delivers to it during the running process
GetSartupInfo Gets the startup information of a process
GetThreadPriority Get the priority level of a specific thread
GetTheardTimes Get information related to the elapsed time of a thread
GetWindowThreadProcessId Get a process and thread identifier associated with the specified window
LoadLibrary Load the specified dynamic link library and map it to the current process for use The address space
LoadLibraryEx loads the specified dynamic link library, and maps it to the address space
LoadModule for the current process. Loads a Windows application, and runs
MsgWaitForMultipleObjects in the specified environment and waits for a single object or a series of objects to signal. If the return condition is met, return to
SetPriorityClass immediately. Set the priority level of a process. SetProcessShutdownParameters Set
the shutdown sequence of the specified process relative to other programs during the system shutdown.
SetProcessWorkingSetSize Set the memory capacity actually allocated to the process by the operating system.
SetThreadPriority Set the thread the priority of
the file name associated with the specified file ShellExecute to find together a program
TerminateProcess the end of a process
WinExec to run a specified program

12. API controls and message functions

AdjustWindowRect Given a window style, calculate the window size required to obtain the target client area rectangle
AnyPopup Determine whether there are any pop-up windows on the screen
ArrangeIconicWindows Arrange a minimum child window of a parent window
AttachThreadInput Connect thread input function
BeginDeferWindowPos Start to build a series of new The process of window position
BringWindowToTop brings the specified window to the top of the window list.
CascadeWindows arranges windows in a cascading manner.
ChildWindowFromPoint returns the handle of the first child window that contains the specified point in the parent window.
ClientToScreen determines the position of a point in the window represented by the coordinates of the client area. Screen coordinates
CloseWindow minimize the specified window.
CopyRect. Copy the
contents of the rectangle. DeferWindowPos. This function specifies a new window position for a specific window.
DestroyWindow clears the specified window and all its child windows.
DrawAnimatedRects draws a series of dynamic rectangles.
EnableWindow allows or disables all of the specified windows Mouse and keyboard input
EndDeferWindowPos simultaneously update the position and status of all windows specified when DeferWindowPos is called
EnumChildWindows enumerates child windows for the specified parent window
EnumThreadWindows enumerates windows related to the specified task
EnumWindows enumerates all parent windows in the window list
EqualRect Determines whether the two rectangular structures are the same
FindWindow Finds the first top-level window
in the window list that meets the specified conditions. FindWindowEx Finds the first child window in the window list that matches the specified conditions.
FlashWindow Flashes the specified window.
GetActiveWindow Gets the handle of the active window.
GetCapture Get the handle of a window, this window is located in the current input thread, and has mouse capture (mouse activity is received by it)
GetClassInfo Get a copy of the WNDCLASS structure (or WNDCLASSEX structure), the structure contains information related to the specified class
GetClassLong Get the window A Long variable entry of the
class
GetClassName Gets the class name for the specified window GetClassWord Gets an integer variable for the window class
GetClientRect Returns the size of the client area rectangle of the specified window
GetDesktopWindow Gets the handle of a window (desktop window) that represents the entire screen
GetFocus Gets the input focus The handle of the window
GetForegroundWindow Get the handle of the foreground window
GetLastActivePopup Get the handle of the most recently activated pop-up window in a given parent window
GetParent Determine the parent window of the specified window
GetTopWindow Search the internal window list, find the first window that belongs to the specified window The handle
GetUpdateRect gets a rectangle, which describes the part of the specified window that needs to be updated
GetWindow Gets the handle of a window that has a specific relationship with a source window
GetWindowContextHelpId Gets the help scene ID associated with the
window
GetWindowLong Gets information from the structure of the specified window GetWindowPlacement Gets the status and position information of the specified window
GetWindowRect Gets the entire window The bounding rectangle of the window, the frame of the window, the title bar, the scroll bar and the menu, etc. are all within this rectangle.
GetWindowText obtains the caption text of a
window or the content of a control. GetWindowTextLength investigates the length of the window title text or the content of the control.
GetWindowWord obtains Specify the information of the window structure.
InflateRect Increase or decrease the size of a rectangle.
IntersectRect This function loads a rectangle in lpDestRect, which is the intersection of lpSrc1Rect and lpSrc2Rect.
InvalidateRect shields all or part of the client area of a window.
IsChild determines one Whether the window is a child or subordinate window of another window
IsIconic Determine whether the window has been minimized
IsRectEmpty Determine whether a rectangle is empty
IsWindow Determine whether a window handle is valid
IsWindowEnabled Determine whether the window is active
IsWindowUnicode Determine 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 prohibits it from updating
MapWindowPoints Convert the point of the client area coordinates of one window to the client area coordinate system of another window
MoveWindow Change the position and size of the specified window
by applying an OffsetRect The specified offset allows the rectangle to move.
OpenIcon restores a minimized program and activates it.
PtInRect Determines whether the specified point is inside the rectangle.
RedrawWindow
Redraws all or part of the window. ReleaseCapture Releases the mouse for the current application. ScreenToClient
Determines the screen. The client area coordinates of the last specified point
ScrollWindow All or part of the client area of the scrolling window
ScrollWindowEx According to the additional options, all or part of the client area of the scroll window
SetActiveWindow activates the specified window
SetCapture Sets the mouse capture to the specified window
SetClassLong Sets the window class A Long variable entry
SetClassWord sets an entry for the window class.
SetFocusAPI sets the input focus to the specified window. If necessary, the window
SetForegroundWindow will be activated. The window will be set as the foreground window of the system.
SetParent will specify the new parent of a window.
SetRect will set the content of the specified rectangle.
SetRectEmpty. Set the rectangle to an empty rectangle.
SetWindowContextHelpId. Set the help scene (context) ID for the specified window. SetWindowLong is specified
in the window structure. The window setting information
SetWindowPlacement sets the window state and position information
SetWindowPos specifies a new position and state for the window
for the window SetWindowText Set the window The title text or the content of the control.
SetWindowWord sets the information for the specified window in the window structure.
ShowOwnedPopups Shows or hides all pop-up windows owned by the specified window.
ShowWindow controls the visibility of the window.
ShowWindowAsync is similar to ShowWindow.
SubtractRect loads the rectangle lprcDst, which is in the rectangle The result of subtracting lprcSrc2 from lprcSrc1. TileWindows
arranges windows in tile order.
UnionRect loads a lpDestRect target rectangle, which is the result of the combination of lpSrc1Rect and lpSrc2Rect.
UpdateWindow forces the immediate update of the window
ValidateRect. All or part of the client area of the validation window
WindowFromPoint returns contains The handle of the window at the specified point. Ignore shielded, hidden and transparent windows