Windows API Manual

xiaoxiao2021-03-06  19

1. Network function of API

WnetdConnection creates permanent connection to the same network resource

WnetdConnection2 Creates the connection of the same network resource

WnetdConnection3 creates the connection of the same network resource

WNETCANCELCONNECTION End a network connection

WNETCANCELCONNECONNECTION2 ends a network connection

WNETCloseenum ends a enumeration operation

WNETConnectionDialog launches a standard dialog to establish connections to network resources

WnetdisConnectDialog launches a standard dialog to disconnect the connection with the network resource

WneetenumResource enumeration network resources

WnetgetConnection gets a network name of a local or connected resource

WnetgetLastError gets an extension error message for network errors

WNETGetUniversalName Gets a remote name of a file in the network and / or UNC (Unified Name Specification) name

WnetGetUser gets a network resource used to connect the name

WNETOpenENUM starts the process of enumerating network resources

2. API message function

BroadcastsystemMessage broadcasts a system message to all top windows in the system

GetMessagePos acquires the mouse pointer screen position in the message queue in the message queue

GetMessageTime gets the time in the message queue to process the last message.

PostMessage delivers a message to the message queue of the specified window

PostthReadMessage delivers a message to the application

RegisterWindowMessage gets a message number assigned to a string identifier

ReplyMessage Reply A message

SendMessage calls a window function to send a message to that window

SendMessageCallback will send a message to the window

SendMessageTimeout sends a message to the window

SendNotifyMessage sends a message to the window

3. API file processing function

CloseHandle Close a kernel object. These include files, file mappings, processes, threads, security, and synchronization objects, etc.

CompareFileTime compares time for two files

CopyFile copy file

CreateDirectory creates a new directory

CreateFile opens and create files, pipes, postlings, communication services, devices, and consoles

CreateFilemapping Creates a new file mapping object

Deletefile Deletes the specified file

DeviceioControl performs specified operations on the device

DosDateTimetOfileTime converts DOS date and time value into a Win32 filetime value

FileTimetodosDateTime converts a Win32 FileTime value to DOS date and time value

FileTimetolocalFileTime converts a FileTime structure to a cost time

FileTimetosystemTime loads a systemTIME structure according to the content of a FileTime structure

FindClose Close a search handle created by the FindFirstFile function

Findfirstfile finds files according to file name

FindnextFile finds the next file based on the file name specified when the FindFirstFile function is called.

FlushfileBuffers refreshes internal file buffer for the specified file handle

FlushViewOffile refreshes all data to the file map buffer to disk

GetBinaryType determines if the file can be executed

GetCompressedFileSize determines the number of bytes that actually occupy on the disk

GetCurrentDirectory loads the current directory in a buffer

GetDiskFreespace Gets information related to organizations of a disk, as well as understanding the capacity of the remaining space

GetDiskFreespaceEx gets information related to the organization of a disk and the remaining space capacity

GetDriveType determines the type of a disk drive

GetExpandedname acquired a full name of a compressed file

GetFileAttributes judges the properties of the specified file

GetFileInformationByHandle This function provides a mechanism for obtaining file information

GetFileSize judgment file length

GetFileTime gets the time information of the specified file

GetFileType is judged by giving the file handle

GetFileVersionInfo acquires file versions from a module that supports version tags

GetFileVersionFosize is for a file that contains version resources, it is necessary to need a lot of buffers for a file version information.

GetFullPathname Gets the full path name for the specified file

What logic drive letters exist in the GetLogicalDrives judgment system

GetLogicalDriveStrings Get a string containing the root drive path of all current logical drives

GetoverlappedResult judges a status of a overlapping operation

GetPrivateProfileint Gets an integer value for the entry specified in the initialization file (.ini file)

GetPrivateProfileSection Gets a list of all item names and values ​​in the specified section (in .ini file)

GetPrivateProfileString gets strings for entries specified in the initialization file

GetProfileint gets an integer value of the specified entry in the win.ini initialization file

GetProfileSection Gets a list of all item names and values ​​in the specified section (in Win.ini file)

GetprofileString gets strings for entries specified in Win.ini initialization files.

GetShortPathname Gets the short-path name of the specified file

GetSystemDirectory acquires the full path name of the Windows system directory (ie system directory)

GetTempFileName This function contains a temporary file name, which can be used by the application

GetTemppath Gets the path specified for temporary files

GetVolumeInformation Get information about a disk volume

GetWindowsDirectory gains the full path name for the Windows directory

HREAD reference Lread

HWRITE reference lwrite functions

LCLOSE closes the specified file

LCREAT Creates a file

The current location of read and write in the LLSeek settings file

LockFile locks a part of the file that does not share with other applications

LockfileEx is similar to LockFile, but it provides more features

Lopen opens the specified file in binary mode

LREAD reads data in the file into the memory buffer

LWRITE writes data from a memory buffer into a file

LZClose closed a file opened by a lzopenfile or lzinit function

LZCopy copy a file

Lzinit This function is used to initialize the internal buffer

LZopenfile This function performs a large number of different file processing, and is compatible with compressed files.

LZREAD reads data from files into memory buffers

LZSeek sets a copy of the current location in a file

MapViewOffile maps a file mapping object to the address space of the current application

Movefile mobile file

OpenFile This function can perform a large number of different file operations

OpenFilemapping Opens an outgoing file mapping object

QueryDosDevice In Windows NT, the DOS device name is mapped into NT system device name. This function can determine the current device mapping situation

ReadFile reads data from the file

ReadfileEx is similar to readfile, but it can only be used for asynchronous reading, and contains a complete callback regclosekey to close one item in the system registry (or key)

RegconnectRegistry access to some registry of the remote system

RegreateKey creates or opens an item under the specified item

RegcreateKeyex creates a more complex way to create new items under the specified item. This function is recommended in the Win32 environment.

RegdeleteKey deletes a specified child below the existing item

RegdeleteValue deletes a value below the specified item

RegenumKey enumerates the child of the specified item. RegenumKeyex should be used in Win32 environments

RegenumKeyex enumerates the child below the specified item

RegenumValue enumerates the value of the specified item

Regflushkey will actually write to the disks on the changes to the item and its child.

ReggetKeySecurity Gets security information related to a registry key

RegloadKey loads registry information from a file created with the RegsaveKey function

The RegNOTIFYCHANGEKEYVALUE registry item is changed when any one of its children, provides a notification mechanism with this function.

Regopenkey Opens an existing registry key

RegopenKeyex opens an existing item. Recommend this function in Win32

RegQueryInfoKey Get information about one item

RegQueryValue acquires the default (unnamed) value of the specified item or child

RegQueryValueex gets the settings of an item

Regreplacekey replaces the registry information with information saved by a disk file; and creates a backup in which the current registry information is included.

RegrestoreKey Restore Registry Information from a Disk File

RegsaveKey saves an item and all of its subtries to a disk file

RegsetKeySecurity Set the security feature of the specified item

RegSetValue Set the default value of the specified item or child

RegSetValueEx Set the value of the specified item

RegunloadKey uninstalls the specified item and all of its child

RemoveDirectory deletes the specified directory

SearchPath Find specified files

SetCurrentDirectory Sets the current directory

Setndoffile sets the current file location to the end of the file for an open file

SetFileAttributes set file properties

SetFilePointer Sets the current read and write location in a file

SetFileTime Settings File Creation, Access, and Last Modify Time

SetHenDecount This function does not have to be used under Win32; even if you use it, there will be no effect.

SetVolumeLabel Sets a disk of a disk (label)

SystemTimetOfiletime loads a SystemTIME structure according to the content of a FileTime structure

UnlockFile Locks to a file

UnlockfileEx releases the lock of a file

UnmapViewoffile releases mapping of a file mapping object in the current application's memory address space

VERFINDFILE uses this function to determine a file should be installed?

VerinstallFile installs a file with this function

VerlanguageName This function can obtain a language name according to the 16-bit language code

VERQUERYVALUE This function is used to get information from the version resource

Writefile writes data into a file

Writefileex is similar to Writefile, but it can only be used for asynchronous writing and includes a complete callback.

WritePrivateProfileSECTION sets all item names and values ​​for the subtitle specified in the initialization file (.ini)

WritePrivateProfileString Sets a string WriteProfileSection to set all item names and values ​​for a specified section in the Win.ini initialization file in the initialization file.

WriteProfileString Sets a string in the section in the Win.ini initialization file

4. API print function

Abortdoc cancels a document print

Abortprinter deletes buffer files with a printer

Addform Add a new form for the printer's form list

AddJOB is used to get a valid path name in order to create a background print file for your job. It also assigns a job number for the job

AddMonitor adds a printer monitor for your system

Addport launches the Add Port dialog, allowing users to join a new port in the system available port list

Addprinter adds a new printer in the system

AddPrinterConnection connection specified printer

AddprinterDriver adds a print driver for the specified system

AddPrintProcessor Add a print processor for the specified system

AddPrintProvidor adds a print provider for your system

AdvancedDocumentProperties Start Printer Document Setup dialog

Closeprinter Close an open printer object

Configureport initiates a port configuration dialog for the specified port

ConnectToprinterDLG launches the connection printer dialog box and connects with the printer accessing the network.

DeleteForm removes a form from the printer available form list

Deletemonitor deletes the specified print monitor

DeletePort launches the Delete Port dialog, allowing users to delete a port from the current system

DeletePrinter will delete the specified printer flag as from the system

DeletePrinterConnection deletes connectors to specify printers

DeletePrinterDriver removes a printer driver from the system

DeletePrintProcessor removes a print processor from the specified system

DeletePrintProvidor removes a print provider from the system

DeviceCapabilities uses this function to get information related to the capabilities of a device

DocumentProperties Printer Configuration Control Function

EndDocapi ends a successful print job

EndDocprinter Specifies the end of a document at the level of the background print program

Endpage completes a page print with this function and prepares the device scene to print the next page.

Endpageprinter Specifies the end of a page in the print job

Enumforms enumerates a form of a printer available

Enumjobs enumerates homework in the print queue

Enummonitors enumerated print monitor available

Enumports enumerates a system available port

EnumprinterDrivers enumerates the printer driver installed in the specified system

Enumprinters enumerates printers installed in the system

EnumprintProcessRDataTypes enumerates data types supported by a print processor

EnumPrintProcessors enumerates the print processor available in the system

ESCAPE Device Control Function

FindCloseprinterChangeNotification Close a printer advertisement object obtained with a FindFirstPrinterChangeNotification function

FindfirstprinterChangeNotification creates a new change advertisement object so that we pay attention to various changes in the printer status

FINDNEXTPRINTERCHANGENOTIFICATION Use this function to determine the cause of the trigger printer change the notice signal

FreePrinterNotifyInfo release a buffer allocated by the FindNextPrinterChangeNotification function

GetForm gets information related to the specified form get Job Get information related to the specified job

Getprinter obtains information related to the specified printer

GetprinterData Sets registry configuration information for printer

GetPrinterDriver gains information related to the printer driver for the specified printer

GetPrinterDriverDirectory determines what is the directory containing the printer driver in the specified system

GetPrintProcessRIRECTORY Judgment The specified system contains the directory of the printer processor driver and file

OpenPrinter opens the specified printer and get the handle of the printer.

PrinterMessagebox Displays a printer error message box on the system with a specified print job

PRINTERPROPERTIES Starts the Printer Properties dialog box to configure the printer

Readprinter reads data from the printer

Resetdc re-sets a device scene

RESETPRINTER changes the default data type and document settings for the specified printer

ScheduleJob submits a job to be printed

SetAbortProc Specifies the address of the cancel function for Windows

Setform Settings 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 level of the background

StartPage Prints this function before calling a new page

StartPageprinter Specifies the beginning of a new page in the print job

WritePrinter writes the data in the send directory to the printer

5. Text and font function of API

AddFontResource adds a font resource in a Windows system

CreateFont Creates a logical font with the specified attribute

CreateFontIndirect creates a logical font with the specified property

CreateScalableFontResource creates a resource file for a TuRetype font so that you can use the API function addFontResource to add it to the Windows system

DrawText depicts text into the specified rectangle

Drawtextex is similar to DrawText, just joins more features

Enumfontfamilies lists the fonts available to specify

EnumfontFamiliesex lists the fonts available to the specified device

Enumfonts lists the fonts available to the specified device

EXTTEXTOUT has been expanded with a text drawing function. Please refer to the SetTextAlign function.

GetASpectratiofilterex requires Windows as required by Windows only selects the raster font that is compliant with the device, and the function can be judged.

GetCharabcwidths judges the A-B-C size of one or more characters in the TuReType font

GetCharabcWidthsfloat query A-B-C size of one or more characters in a font

GetCharacterplacement This function is used to understand how to display a string with a given character.

GetCharWidth investigates the width of one or more characters in the font

GetFontData receives data that can zoom font file

GetFontLanguageInfo returns information from the fonts currently in the specified device scenario

GETGLYPHOUTLINE acquires curve information that makes a character in the TureType font

GetkerNingPairs get the character information of the specified font

GetoutLineTextMetrics Receives details related to TureType font internal features

GetRasterizerCaps understands if the system has the ability to support scalable fonts

GetTabbedtextextent judges the range occupied by a string while considering the factors of the table.

GetTextAlign receives a device scene current text alignment flag

GetTextCharacterextra determines that the current value of additional character spacing GetTextCharset receives the character set identifier of the font that currently selects the specified device scene.

GetTextCharsetInfo Get details related to the character set of the currently selected font

GetTextColor judges the current font color. Usually referred to as "foreground color"

GetTextExtentExPoint determines the number of characters to be filled in the specified area. Also load the range information of each character with an array

GetTextExtentPoint determines the size of a string (range)

GetTextFace gets a word name for a font

GetTextMetrics Get information related to physical fonts selected in a device scenario

Graystring depicts a string displayed in gray. Usually used by Windows to identify prohibition status

Polytextout depicts a series of strings

RemoveFontResource deletes a font resource from a Windows system

When SETMAPPERFLAGS Windows maps the font, you can use this function to select a raster font that matches the aspect ratio of the target device.

SetTextAlign sets the text alignment and specifies the current location of the device scene during the text output.

When SetTextCharacterextra depicts the text, specify an additional spacing to insert in characters.

SetTextColor Sets the current text color. This color is also known as "foreground color"

SETTEXTJUSTIFICATION The text can be aligned with the text by specifying an additional space occupied by a text,

TabbedTextout Support a text drawing function of the tabbite

TextOut text drawing function

6. API menu function

Appendmenu adds a menu item in the specified menu

CheckMenuItem checks or revokes the check-specified menu entry

CheckmenuradioInItem specifies a menu entry being subselected as "radio" project

CreateMenu creates a new menu

CreatePopupMenu Creates an empty pop-up menu

DeleteMenu Removes the specified menu entry

DestroyMenu Delete the specified menu

DrawMenubar is the specified window heavy painting menu

EnableMenuItem allows or prohibits designated menu entry

GetMenu gets a handle of a menu in the window

GetMenuCheckMarkDimensions returns a size of a menu check

GetMenuContexthelpid acquires a menu help scene ID

Which entry in the GetMenudefaultItem determination menu is the default entry

GetMenuItemcount returns the number of entries (menu items) in the menu

GetMenuItemID Returns menu ID in the entry at the specified location in the menu

GetMenuItemInfo acquires specific information related to a menu entry

GetMenuItem loading screen coordinate information on a specified menu entry in a rectangle

GetMenustate acquires information related to the status of the specified menu entry

GetMenustring gets the string of the specified menu entry

GetSubmenu acquires a handle of a pop-up menu, which is located in the menu

GetSystemMenu gets the handle of the system menu of the specified window

HiliteMenuItem controls the top-level menu entry to highlight the display status

InsertMenu inserts a menu entry at the specified location of the menu and moves other entries down as needed.

InsertMenuItem inserts a new menu entry

IsMenu judges whether or not the specified handle is a handle of a menu

LoadMenu loads a menu from the specified module or application instance

LoadMenuindirect loads a menu

MenuItemFromPoint determines which menu entry contains a specified point on the screen

ModifyMenu change the menu entry

RemoveMenu Removes the specified menu entry

SetMenu Settings Window Menu

SetMenuContexthelpid Sets a menu help scene idsethMenudefaultItem to set a menu bar as a default entry

SetMenuItemBitmaps Set a specific bitmap to use it in the specified menu entry, instead of the standard check symbol (√)

SetMenuItemInfo sets the specified information for a menu entry

TRACKPOPUPMENU displays a pop-up menu anywhere on the screen

TRACKPOPUPMENUEX is similar to TRACKPOPUPMENU, but it provides additional features

7. API bitmap, icon and raster calculation function

Bitblt copies a bitmap from one device scene to another

Copyicon makes a copy of the specified icon or mouse pointer. This copy is from the application that is called.

CopyImage copy bitmap, icon or pointer, and some conversion work during the replication process

CreateBitmap creates a bitmap related to the device in accordance with the specified format

CreateBitMapIndirect creates a bitmap related to the device

CreateCompaTibleBitmap creates a bitmap related to the device, which is compatible with the specified device scenario

CreateCursor creates a mouse pointer

CreateDibitmap creates a bitmap related to the device according to a bitmap-independent bitmap

CreatedibSection Create a DibSection

Createicon creates an icon

CreateiconIndirect creates an icon

DestroyCursor Clears the specified mouse pointer and releases all system resources it occupies

Destroyicon Clear Icon

Drawicon draws an icon in the specified location

Drawiconex depicts an icon or mouse pointer. This function provides more features compared to Drawicon.

ExtractassociatedIndon determines whether an icon is present in an executable or DLL, or whether there is an icon and the file specified in the system registry and extract it.

EXTRACTICON determines whether there is an icon in an executable or DLL, and extract it out

GetBitMapBits will be copied from the binary bit from the bitmap to a buffer

GetBitmapdimensionEx gets the width and height of a bitmap

GetDibColortable acquires color table information from the DibSection selected in the device scene

GetDibits copies the binary bits from a bitmap to a bitmap-independent bitmap

GeticonInfo gets information about icons

GetStretchBltmode judges the telescopic mode adopted by the Stretchblt and StretchDibits function

LoadBitmap loads a bitmap from the specified module or application instance

LoadCursor loads a mouse pointer from the specified module or application instance

LoadCursorFromFile creates a pointer on a pointer or an animation pointer file

Loadicon loads an icon from the specified module or application instance

LoadImage loads a bitmap, icon or pointer

Maskblt performs complex image transfer while making masks (MASK)

Patblt is based on the currently selected brush, filled with a specified device with a pattern.

PLGBLT replicates a bitmap while converting it into a parallelogram. Use it to rotate the bitmap

SetBitMapBits will be copied from the binary position from the buffer to a bitmap

SetBitMapdimensionEx Sets the width of a bitmap. One-tenth of one mm

SetDibColortable Sets the color table information of a Dibsection to select the device scene

SetDibits will be copied from the binary bit from the device-independent bitmap to a bitmap related to the device

SetDibitStodevice copies all or part of the data from the device-independent bitmap to a device

SetStretchbltMode Specifies the telescopic mode of the Stretchblt and StretchDibits function to copy a bitmap from one device scene to another.

StretchDibits copies all or part of the data-independent bitmap all or part of the data directly to the specified device scene

8. API drawing function

Abortpath Abandon all paths in the specified device scenario. Also canceled the creation of any path currently ongoing

Anglearc draws a line with a connection arc

ARC draws a arc

BeginPath launches a path branch

Canceldc Cancels the long-term drawing operation in another thread

Chord draws a string

Closeenhmetafile closes the specified enhanced chamber file device scene and returns a newly created element file.

Closefigure is depicted to a path, close the currently open graphics

Closemetafile closes the specified primitive file device scene and returns a handle to the newly created element file.

Copyenhmetafile makes a copy of the specified enhanced element file (copy)

CopyMetafile creates a copy of the designated (standard) element file

Createbrushindirect creates a brush on a logbrush data structure

CreateDibPatternbrush creates a brush with a bitmap that is not related to the device to specify a brush style (pattern)

CREATEENHMETAFILE Create a enhanced element file device scene

CreateHatchbrush creates a brush with shadow patterns

CreateMetafile creates a chair file device scene

CreatePatternbrush creates a brush with a bitmap specified by the brush pattern

Createpen creates a brush with the specified style, width and color

CreatepenIndirect creates a brush according to the specified Logpen structure

CreateSolidbrush creates a brush with solid color

Deletenhmetafile deletes the specified enhanced element file

DeleteMetAfile deletes the specified element file

DeleteObject deletes GDI objects, all system resources used by the object are released

Drawedge depicts a rectangular border with a specified style

Drawscape Call Code (ESCAPE) function sends data directly to the display device driver

DrawfocusRect draws a focus rectangle

DrawFraMecontrol depicts a standard control

DrawState is a variety of effects for an image or drawing operation.

Ellipse depicts an ellipse, surrounded by the designated rectangle

Endpath stops defining a path

ENUMENHMETAFILE lists a separate element file record for an enhanced element file

Enummetafile enumerates a separate chamber file record for a standard Windows element file.

Enumbobjects enumerates a brush and brush that can be used with the specified device scene

ExtCreatepen creates an extension brush (decorative or geometry)

Extfloodfill fills a zone with the currently selected brush in the specified device scenario

FillPath close any open graphics in the path and populates the current brush

FillRect fills a rectangle with the specified brush

FLATTENPATH converts all the curves in a path into line segments

FLOODFILL pops a zone in the specified device scene with the currently selected brush

Framerect with a specified brush a border around a rectangle

GDICOMMENT adds a comment information for the specified enhanced element file device scenario

GDIFLUSH performs any unresolved drawing operations

GDIGETBATCHLIMIT judge how many GDI drawings are in the queue

GDisetBatchLimit specifies how many GDI draws commands can enter the queue

GetarcDirection When drawing a circular arc, judge the currently used drawing direction

GetBkcolor acquires the designated device scene Current background color getBkmode to get the current background fill mode for the specified device scene.

Getbrushorgex judges 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 position in the specified device scenario

GetENHMetAfile acquires the element file handle of a enhanced element file included in the disk file

GetenhmetafileBits copies the specified enhancement element file to a memory buffer

GetenhmetafileDescription returns a description of a enhanced element file

GetenhmetafileHeader gets the element file header of the enhanced element file

GetENHMETAFILEPALETTEENTERTRIES acquires all or part of the palette of the enhanced element file

GetMetAfile acquires the meta file handle of the element file contained in a disk file

GetMetAfileBitsex copies the specified primitive to a memory buffer

GetMiterLimit gets the slope limit of device scenes (MITER) settings

GetnearestColor acquires a solid color closest to the specified color based on the display capabilities of the device

GetObjectAPI acquires a structure for the specified object

GetObjectType determines the type of GDI object referenced by the specified handle

GetPath acquires a series of data defined for the current path

GetPixel acquires a pixel RGB value in the specified device scenario

GetPolyfillMode gets polygon padding mode for the specified device scenario.

Getrop2 acquires current drawing mode for the specified device scenario

GetStockObject gets an inherent object (stock)

Getsyscolorbrush got a brush for any standard system color

GetWinMetafileBits converts a enhanced element file into a standard Windows element file by popping data for standard primitive files in a buffer.

InvertRect reverses the rectangle specified in a device scene by reversing the value of each pixel

Linedda enumerate all points in the specified line segment

Lineto is used in a line with the current brush, and is connected from the current location to a specified point.

MoveToex specifies a new current brush position for the specified device scene

Paintdesk depicts desktop wallpaper pattern in the specified device scenario

Pathtoregion converts the currently selected path to a zone

Pie painted a pie chart

PLAYENHMETAFILE draws an enhanced element file in the specified device scenario

PlayenhmetafileRecord playback single enhanced meta file record

Playmetafile plays a chair file in the specified device scenario

PlaymetafileRecord returns a single record from the meta file

Polybezier depicts one or more Bezier curves

POLYDRAW depicts a complex curve, composed of line segments and Besier curve

Polygon depicts a polygon

Polyline depicts a series of line segments with current brush

Polypolygon draws two or more polygons with the currently selected brush

Polypolyline draws two or more polygons with currently selected brush

Rectangle depicts the rectangle with the currently selected brush and populates the currently selected brush

RoundRect draws a rounded rectangle with the currently selected brush and populates it with the currently selected brush.

SELECTCLIPPATH combines the current path of the device scene to the clipping area

SelectObject selection graphic object for the current device scene

SetarcDirection Sets the depiction direction of the arc

Setbkcolor Sets the background color for the specified device scene

SetBKMode Specifies the filling method of the shadow brush, a dotted brush, and the void in the character

Setbrushorgex Set the starting point of the currently selected brush for the specified device scene

StenhmetafileBits Create a enhanced chamber file with data included in the specified memory buffer SetMetAfileBitSex creates a chamber file with the data structure included in the specified memory buffer.

SetMiterlimit sets the current slope limit of device scene

SetPixel sets a pixel RGB value in the specified device scenario

SetPixelv Set a pixel RGB value in the specified device scenario

SetPolyfillMode Sets the Packing Mode of Polygon

SetROP2 Sets the drawing mode of the specified device scene. It is exactly the same as the VB's DrawMode property

SetwinmetafileBits converts a standard Windows element file into enhanced meta files

StrokeAndfillPath For the specified device scenario, close all regions on the path

StrokePath depicts the outline of a path with the current brush. Opened graphics will not be shut down by this function

UnRealizeObject When a brush object is selected into the device scene, if the start point of the brush is ready to modify with setbrushorgex, this function must be called first.

WidentenPath redefines the currently selected path according to the width of the selected brush

9. API equipment scenario function

Combinergn combines two areas into a new area

Combinetransform drives the world conversion. It is equivalent to two conversion in order

CreateCompatibleDC Creates a memory device scenario consistent with a specific device scenario

CreateDC creates a device scene for specialized equipment

CreatellipticRGN creates an ellipse

CreatellipticRGNIndirect creates an ellipse area of ​​a specific rectangle

Createic creates an information scene for dedicated equipment

CreatePolygonRGN Creates a area that is enclosed by a series of points

CREATEPOLYPOLYGONRGN creates a area consisting of multiple polygons. Each polygon should be closed

CreateRectrGN creates a rectangular area

CreateRectrGnIndirect creates a rectangular area

CreateroundRectrGN Creates a rounded rectangle

DeleteDC Deletes a dedicated device scene or information scenario, releases all relevant window resources

DPTOLP converts a dot matrix from device coordinates to a dedicated device scene logic coordinate

EqualRGN determines if the two areas are equal

ExcludeClipRect removes a rectangular area from the tailoring area of ​​the dedicated device scene. Drawing cannot be drawn in the rectangle

ExcludeUpdatergn removes the refresh area of ​​the specified window from the dedicated device scenario area

EXTCREATEREGON according to the world conversion modification area

EXTSELECTCLIPRGN Currently clotted the specified area into the device scene.

FillRGN populates the specified area with a specified brush

Framergn with a specified brush to draw an outfox around the designated area

GetBoundSRect Gets the boundary rectangle of the specified device scene

GetClipbox gets the minimum rectangle that completely contains the designated device scene

GetClipRGN Gets the device scene Current Trunk Zone

GetDC gets the device scene of the specified window

GetDCEX Gets the device scene for the specified window. Compared to getDC, this function provides more options

GetDcorgex Get the location of the specified device scenario (represented by screen coordinates)

GetDeviceCaps return information according to the function of the device represented by the specified device scene

GETGRAPHICSMODE determines if enhanced graphics mode (World Conversion)

GetMapMode is transferred into a specific device scenario.

GetRegionData loads RGndata structure or buffer describing a regional information

GETRGNBOX gets the minimum rectangle that completely contains the specified area

GetUpdaterGN determines the refresh area of ​​the specified window. The area is currently invalid, you need to refresh

GetViewPortexTex Get Device Scene View (ViewPort)

GetViewPortorgex gets the starting point of the device scene

GetWindowDC Gets the device scene of the entire window (including border, scroll bar, title bar, menu, etc.) Get the window range of the specified device scene.

GetWindoworgeX Get the starting point of the logical window of the specified device scene

GetWindowRGN Get window area

GetWorldTransform If there is world conversion, get the current world conversion for the device scene

INTERSECTCLIPRECT defines a new tailorway for the specified device

Invalidatergn enables the window to specify the area inactive and add it to the window to refresh the area, so that it can be scrolled

InvertRGN Infinitely Inverted Equipment Scene Specified Area by reversing each pixel value

LPTODP converts a dot matrix from the specified device scene logic coordinate to device coordinates

ModifyWorldTransform modifies world conversion according to the specified mode

OFFSETCLIPRGN Treatment Pancouver Scene

OFFSETRGN Specifies the specified area by specifying the offset

OffsetViewportorgex Translation Equipment Scene

OffsetWindoworgex Translation Specifies Device Scene Window Start

PaintrGN filled with the designated area with the current brush background

PtinRegion determines if the point is in the specified area

PTVisible determines if the specified point is visible (ie, whether the point is in the device scene cutting area)

RectinRegion determines if the rectangle is partially in the designated area

RectVisible determines if some of the specified rectangle is visible (whether it is within the device scene

ReleaseDC Release The specified device scenario obtained by calling a getDC or getWindowDC function

Restoredc Restore a preserved device scenario from the device scenario stack

Savedc saves the specified device scene status to Windows Device Scene stack

ScaleViewPortextex scope of the device scene

ScaleWindowExTex Zoom Specifies Device Scene Window Range

ScrollDC is horizontal and / or vertically rolled in the window (or)

SELECTCLIPRGN Select a new tailorway for the specified device scenario

SetBoundSRect Sets the boundary rectangle of the specified device scene

SetGraphicsMode allows or disables enhanced graphics mode to provide some support (including world conversion)

SetMapMode Sets the mapping mode for specifying device scenarios

SetRectrGN Settings Area for the specified rectangle

SetViewPortexTex Settings Device Scene View Scope

SetViewPortorgex Setting up the starting point of the device scene

SetWindowExTex Settings Specifying Device Scene Window Range

SetWindoworgex Settings Specifying Device Scene Window Start

SetWindowRGN Settings Window Area

SetWorldTransform sets world conversion

Validatergn activates the specified area in the window and remove it from the refresh area

WindowFromDC Retrieves the handle of a window with a certain device scene

10. Hardware and system functions of API

ActivateKeyboardLayout activates a new keyboard layout. The keyboard layout defines the position and meaning of the button on a physical keyboard.

BEEP is used to generate simple sounds

Chartooem converts a string from ansi character set to OEM character set

Clipcursor limits the pointer to the designated area

ConvertDefaultLocale converts a special place identifier into a real place ID

CreateCaret creates an insert (cursor) based on the specified information, and select it as the default insertion of the specified window

DestroyCaret Clear (destroy) an insert

Enumcalendarinfo enumerates calendar information available in the specified "place" environment

EnumdateFormats lists the long, short date format available in the designated "local" settings.

EnumsystemCodePages Enumerates the installed or supported code page ENUMSYSTEMLOCALES enumeration system installed or supported "Place" settings

EnumTimeFormats enumerates a specified place to apply time format

EXITWINDOWSEX exits Windows and restarts with a specific option

ExpandenVironmentStrings Expand the environment string

FreeENVIRONMENTSTRINGS translation specified environmental string block

Getacp Judging the ANSI code page currently in force

GetasyncKeyState determines the status of the virtual key when the function is called

GetCareTblinkTime judges the flashing frequency of the insert

GetCareTPOS judgment the current location of the insert

GetClipCursor acquires a rectangle for describing the cutting area currently specified by the mouse pointer

GetCommandline gets a pointer to the current command line buffer

GetComputername acquired the name of this computer

GetCPinfo gets information about the specified code page

GetCurrencyFormat Formats a number according to the currency format for the specified "place" setting

GetCursor Gets the handle of the currently selected mouse pointer

GetCursorpos gets the current location of the mouse pointer

GetDateFormat formats a system date for the specified "local" format.

GetDoubleClickTime Judging the interval between the two-clicked mouse click

GetENVIRONMENTSTRINGS assigns and returns a handle for a memory block set by the current environment string

GetENVIRONMENTVARIABLE obtains a value of an environment variable

GetInputState determines whether there is any mouse or keyboard event that is presented (waiting)

GetkbcodePage is replaced by getoemcp, both of which are identical

GetKeyboardLayout gets a handle to describe the keyboard layout of the specified application

GetKeyboardLayoutList gets a list of all keyboard layouts that apply system applications

GetKeyboardLayoutName gets the name of the current active keyboard layout

GetKeyboardState gets the current state of each virtual key on the keyboard.

GetKeyboardType understands information related to the keyboard being used

GetKeyNameText judges the key name under the premise of give the scan code

GetKeyState determines the status of the specified virtual key when the processed button is entered for the processed button.

GetLastError acquires an extended error message with this function for the previously called API function.

GetLocaleInfo acquires information related to the designated "place"

GetLocalTime gets local dates and time

GetNumberformat formats a number in a specific format for the specified "place"

Getoemcp Judging Windows Code Page in OEM and ANSI Character Sets

GetQueuesttus determines the type of message that is in the application message queue in the application message queue

Getsyscolor judges the color of the specified Windows display object

GetSystemDefaultLangid acquires the default language ID of the system

GetSystemDefaultlcid gets the current default system "place"

GetSystemInfo acquires information related to the underlying hardware platform

GetSystemMetrics returns information related to the Windows environment

GetSystemPowerStatus gets information about the current system power status

GetSystemTime gets current system time, this time is "synergistic world time" (ie UTC, also known as GMT) format

GetSystemTimeAdjustment makes the internal system clock with an external clock signal source synchronize GetThreadLocale Local ID of the current thread

GetTickCount is used to get the length of time (milliseconds) experience since Windows startup.

GetTimeFormat formats a system time in a specific format for the currently specified "place"

GetTimeZoneInformation acquires information related to system time zone settings

GetUserDefaultLangId acquires the default language ID for the current user

GetUserDefaultlcid gets the default "place" setting for the current user

GetUsername gets the current user's name

Getversion judges the current Run Windows and DOS version

GetversionEx acquires version information related to platform and operating system

Hidecaret hides insert (cursor) in the specified window

IsValidCodePage determines if a code page is valid

IsValidLocale determines if the local identifier is valid

KeyBD_EVENT This function simulates keyboard action

LoadKeyboardLayout loads a keyboard layout

MapVirtualKey performs different scan code and character conversion according to the specified mapping type

MapVirtualKeyex performs different scan code and character conversion according to the specified mapping type

MessageBeep play a system sound. The allocation scheme of the system sound is determined in the control panel.

Mouse_Event Simulates a mouse event

OemKeyscan judges a scan code and SHIFT key status of an ASCII character in the OEM character set.

OEMTOCHAR converts a string of the OEM character set to ansi character set

SetCareTBLINKTIME Specifies the flashing frequency of the insert (cursor)

SetCareTPOS Specifies the location of the insert

SetComputername Setting up new computer name

SetCursor sets the specified mouse pointer to the current pointer

SetCursorpos Set the position of the pointer

SetDoubleClickTime Settings Two mouse clicks can make the system think that the interval between the double-click event

SetENVIRONMENTVARIABLE sets an environment variable to the specified value

SetKeyboardState Set the status of each virtual key on the keyboard

SetLocaleInfo changes the user "local" setting information

SetLocalTime Sets the current place

SetsysColors Set the color of the specified window display object

SetSystemCursor changes any standard system pointer

SetSystemTime Sets the current system time

SetSystemTimeAdJustment Timed Add a calibration value to synchronize the internal system clock with an external clock signal source

SetthreadLocale sets places for current threads

SetTimeZoneInformation Set System Time Zone Information

ShowCaret displays insert (cursor) in the specified window

Showcursor controls the visibility of the mouse pointer

SwapmouseButton decides whether to switch the function of the mouse

SystemParametersInfo gets and sets the number of Windows system parameters

SystemTimeTotzspecificLocalTime converts system time to local time

Toascii converts a virtual key to a ASCII character based on the current scan code and keyboard information

Tounicode converts a virtual key to Unicode characters according to the current scan code and keyboard information.

UnloadKeyboardLayout Uninstalls the specified keyboard layout

VKKEYSCAN is a ASCII character for Windows characters, judges the status of virtual keys and SHIFT keys

11. API process and thread function

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 pipelines Indicates a server waiting until the client is the same named pipe connection.

CreateEvent creates an event object

CreateMailslot creates a post. The returned handle is used by a post server (recipient)

CreateMutex creates a mutex (MUTEX)

CreateNamedPipe creates a named pipe. The returned handle is used by the server side of the pipeline

CreatePipe creates an anonymous pipeline

CreateProcess creates a new process (such as executing a program)

CreateSemaphore creates a new signal machine

CREATEWAITABLETIMER Creates a waiting timer object

DisconnectNamedPipe disconnects a customer with a named pipe connection

DuplicateHandle creates a new handle for that object with the current handle of an existing system object

EXITPROCESS suspension of a process

FindClosechangeNotification Close a change notification object

FINDEXECUTABLE Find the file name of the program with a specified file

FindFirstChangeNotification Creates a file notification object. This object is used to monitor changes in file systems.

FINDNEXTCHANGENOTIFICATION Reset a file change notification object, which continues to monitor the next change

FreeLibrary releases the specified dynamic link library

GetCurrentProcess Gets a pseudo handle of the current process

GetCurrentProcessID Get a unique identifier for the current process

GetCurrentThread gets a pseudo handle of the current thread

GetCurrentThreadID Gets a unique thread identifier for current threads

GetExitcodeProces Get an exit code of an interrupt process

GetExitCodetteread gets an exit code that has been aborted thread

GetHandleInformation Get information related to a system object handle

GetMailSlotinfo gets information about a post

GetModuleFileName Gets the full path name of a loaded template

GetModuleHandle gets a module handle of an application or dynamic link library

GetPriorityClass gets priority for specific processes

GetProcessShutdownParameters Investigates a specified process relative to other processes at the time of closing of other processes

GetProceSstimes Gets information about time with a process

GetProcessWorkingSetsize understands that the application actually delivered how much capacity in the running process

GetSartupInfo gets the startup information of a process

GetThreadPriority gets priority levels for specific threads

GetTheardTimes Gets information related to a thread

GetWindowThreadProcessID Gets a process and thread identifier associated with the specified window

LoadLibrary loads the specified dynamic link library and maps it to the address space used by the current process.

LoadLibraryEx loads the specified dynamic link library and map it to the address space for the current process.

LoadModule loads a Windows application and runs in the specified environment.

MsgwaitFormultiPleObjects is equally single object or a series of objects. If the return condition is already satisfied, return it now.

SetPriorityClass sets a priority level of a process

SetProcessShutDownParameters Set the closing order of his relative to other programs during the system shutdown

SetProcessWorkingsetSize Setting the operating system actually divided the memory capacity used by the process

SetthreadPriority Setting Thread Priority SHELLEXECUTE Find the file name of the program associated with the specified file

TERMINATEPROCESS ends a process

Winexec runs the specified program

12. API control and message function

AdjustWindowRect gives a window style to calculate the window size required to get the rectangle of the target client area.

AnyPopup judges whether there is any pop-up window on the screen

ArrangeiconicWindows arranges a minimal window of a parent window

AttachthReadInput connection thread input function

BeGindeferWindowPOS launches the process of building a range of new window locations

Bringwindowtotop takes the specified window to the top of the window list

Cascadewindows arranges windows in a laminated manner

ChildWindowFromPoint Returns the handle of the first sub-window of the specified point in the parent window

CLIENTTOSCREEN Judgment window screen coordinates in a point in customer zone coordinates

Closewindow minimizes the specified window

CopyRect Rectangular Content Copy

DeferWindowPOS This function specifies a new window location for a specific window

DestroyWindow Clears the specified window and all its sub-windows

DrawanImatedRects depicts a series of dynamic rectangles

All mouse and keyboard input are allowed or disabled in the enableWindow specified window.

EnddeferWindowPOS simultaneously updates the location and status of all windows specified when DeferWindowPos calls

EnumChildWindows enumerates the specified parent window

EnumthReadwindows enumerates windows related to specified tasks

EnumWindows enumerated all parents in the list list

EqualRect determines whether the two rectangular structures are the same

FindWindow looks for top windows that meet the specified condition in the list list

FindWindowEx looks for the first child window that matches the specified condition in the window list

FlashWindow Blink Displays the specified window

GetActiveWindow gets the handle of the activity window

GetCapture gets a handle of a window, which is located in the current input thread and has a mouse capture (mouse activity is received by it)

GetClassInfo acquires a copy of the WNDCLASS structure (or WNDCLASSEX structure), which contains information related to the specified class.

GetClasslong gets a long variable entry for window classes

GetClassName gave class name for the specified window

GetClassword gets an integer variable for the window class

GetClientRect Returns the size of the specified window customer area rectangle

GetDesktopWindow gets a window (desktop window) handle on behalf of the entire screen

Getfocus gets a handle with a window with input focus

GetForegroundWindow gets the handle of the front desk window

GetLastactivePopup gets a handle of a pop-up window that has been activated in a givefic feet

GetParent judges the parent window of the specified window

GetTopWindow Search for the internal window list, find the handle of one window belonging to the header of the specified window

GetUpdateRect gets a rectangle that describes that part of the specified window needs to be updated.

GetWindow gets a handle of a window that has a specific relationship with a certain source window.

GetWindowContexthelpid gets helps the help scene id with the window

GetWindowl has obtained information from the structure of the specified window

GetWindowPlacement gets the status and location information of the specified window

GetWindowRect Gets the range of the entire window, the border, title bar, scroll bar, and menu, etc. of the window in this rectangle.

GetWindowText acquires a form of a form, or the content of a control

GetWindowTextLength Survey Window Title Text or Control Contents Length GetWindowWord gets information about the specified window structure

Inflatrect increases or decreases the size of a rectangle

INTERSECTRTRT This function is loaded into a rectangle in LPDestRect, which is the intersection of LPSRC1RECT and LPSRC2RECT.

InvalidateRect blocks all or part of the area of ​​a window client area

Ischild judges whether a window is a child or a member of another window

Isiconic judgment window has been minimized

IsRectempty determines if a rectangle is empty

Iswindow determines if a window handle is valid

IsWindowenableD determines if 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 judgment window visible

Iszoomed judgment window maximizes

LockWindowUpdate locks the specified window, disable it from updating

MapWindowPoints convert a window client area coordinate point to a client area coordinate system of another window

MoveWindow changes the location and size of the specified window

OFFSTRECT allows rectangular movement by applying a specified offset

OpenICON restores a minimized program and activates it

PtinRect Judging whether the specified point is within the rectangle

RedrawWindow Heavy or part of the window

ReleaseCapture releases mouse to capture the current application

ScreenToClient judges a customer area coordinate of a specified point on the screen

ScrollWindow scrolling all or part of the customer area

ScrollWindowEx is based on additional options, scrolling all or part of the window customer area.

SetActiveWindow activates the specified window

SetCapture captures the mouse to the specified window

SetClasslong Set 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. If necessary, activate the window

SetForegroundWindow Set the window to the front desk window

SetParent Specifies a new father of a window

SetRect Setting the contents of the specified rectangle

SetRectempty sets the rectangle to an empty rectangle

SetWindowContexthelpid Sets help scenes (context) ID for the specified window

Setwindowl Settings Information for the Specified Window in Window Structure

SetWindowPlacement Settings Window Status and Location Information

SetWindowPOS specifies a new location and status for the window

SetwindowText Settings the contents of the title text or control of the window

SetWindowWord Settings Information for the Specified Window in Window Structure

ShowowNedPopups Show or hide all pop-up windows from the specified window

SoWindow Control Window visibility

ShowWindowasync is similar to ShowWindow

SubtractRect loading rectangular lprcdst, which is the result of subtract LPRCSRC2 in rectangular LPRCSRC1

TileWindows arranges windows in tiled sequence

UnionRECT loads an LPDESTRECT target rectangle, which is the result of lpsrc1rec1Rect and LPSRC2RECT.

UpdateWindow enforces an update window now

All or part of the ValidateERECT check window

WindowFromPoint returns the handle of the window that contains the specified point. Ignore the mask, hidden and transparent window

转载请注明原文地址:https://www.9cbs.com/read-41252.html

New Post(0)