常用API断点

API分类

函数名

功能描述(英/中)

文件类

CreateFile

Creates or opens a file or I/O device.

创建或打开文件或I/O设备。

SetFilePointer

Moves the file pointer of the specified file.

移动指定文件的文件指针。

ReadFile

Reads data from the specified file or input/output (I/O) device.

从指定的文件或输入/输出(I/O)设备读取数据。

WriteFile

Writes data to the specified file or input/output (I/O) device.

将数据写入指定的文件或输入/输出(I/O)设备。

FlushFileuffers

Flushes the buffers of a specified file and causes all buffered data to be written to a file.

刷新指定文件的缓冲区,并将所有缓冲数据写入文件。

LockFile

Locks the specified file for exclusive access by the calling process.

锁定指定的文件以供调用进程独占访问。

UnlockFile

Unlocks a region in an open file. Unlocking a region enables other processes to access the region.

在打开的文件中解锁区域。解锁区域使其他进程能够访问该区域。

CopyFile

Copies an existing file to a new file.

将现有文件复制到新文件。

CopyFileEx

Copies an existing file to a new file, notifying the application of its progress through a callback function.

将现有文件复制到新文件,通过回调函数通知应用程序其进度。

MoveFile

Moves an existing file or a directory, including its children.

移动现有文件或目录,包括其子目录。

MoveFileEx

Moves an existing file or directory, including its children, with various move options.

使用各种移动选项移动现有文件或目录,包括其子目录。

MoveFileWithProgress

Moves a file or directory, including its children. You can provide a callback function that receives progress notifications.

移动文件或目录,包括其子目录。可以提供接收进度通知的回调函数。

DeleteFile

Deletes an existing file.

删除现有文件。

GetFileType

Retrieves the file type of the specified file.

检索指定文件的文件类型。

GetFileSize

Retrieves the size of the specified file, in bytes.

检索指定文件的大小(以字节为单位)。

GetFileAttributes

Retrieves file system attributes for a specified file or directory.

检索指定文件或目录的文件系统属性。

FindFirstFile

Searches a directory for a file or subdirectory with a name that matches a specific name (or partial name if wildcards are used).

在目录中搜索具有与特定名称匹配的名称的文件或子目录(如果使用通配符,则搜索部分名称)。

FindNextFile

Continues a file search from a previous call to the FindFirstFile, FindFirstFileEx,or FindFirstFileTransacted functions.

从上一次调用FindFirstFileFindFirstFileExFindFirstFileTransacted 后继续进行文件搜索。

CreatePipe

Creates an anonymous pipe, and returns handles to the read and write ends of the pipe.

创建匿名管道,并将句柄返回到管道的读和写端。

CreateFileMapping

Creates or opens a named or unnamed file mapping object for a specified file.

创建或打开指定文件的命名或未命名文件映射对象。

MapViewOfFile

Maps a view of a file mapping into the address space of a calling process.

将文件映射的视图映射到调用进程的地址空间。

OpenFileMapping

Opens a named file mapping object.

打开命名文件映射对象。

UnmapViewOfFile

Unmaps a mapped view of a file from the calling process's address space.

从调用进程的地址空间取消映射文件的映射视图。

FlushViewOfFile

Writes to the disk a byte range within a mapped view of a file.

将文件映射视图中的字节范围写入磁盘。

CreateDirectory

Creates a new directory. If the underlying file system supports security on files and directories, the function applies a specified security descriptor to the new directory.

创建一个新目录。如果基础文件系统支持文件和目录的安全性,则函数将指定的安全描述符应用于新目录

RemoveDirectory

Deletes an existing empty directory.

删除现有的空目录。

GetLogicalDrives

Retrieves a bitmask representing the currently available disk drives.

检索表示当前可用磁盘驱动器的位掩码。

GetLogicalDriveStrings

Fills a buffer with strings that specify valid drives in the system.

用指定系统中有效驱动器的字符串填充缓冲区。

GetDriveType

Determines whether a disk drive is a removable, fixed, CD-ROM, RAM disk, or network drive.

确定磁盘驱动器是可移动的、固定的、CD-ROM、RAM磁盘还是网络驱动器.

GetPrivateProfileInt

Retrieves an integer associated with a key in the specified section of an initialization file.

检索与初始化文件的指定部分中的键关联的整数。

GetPrivateProfileSection

Retrieves all the keys and values for the specified section of an initialization file.

检索初始化文件的指定部分的所有键和值。

GetPrivateProfileSectionNames

Retrieves the names of all sections in an initialization file.

检索初始化文件中所有节的名称。

GetPrivateProfileString

Retrieves a string from the specified section in an initialization file.

从初始化文件中的指定节检索字符串。

GetPrivateProfileStruct

Retrieves the data associated with a key in the specified section of an initialization file. As it retrieves the data, the function calculates a checksum and compares it with the checksum calculated by the WritePrivateProfileStruct function when the data was added to the file.

检索与初始化文件的指定部分中的键关联的数据。在检索数据时,函数计算校验和,并在将数据添加到文件时将其与WritePrivateProfileStruct函数计算的校验和进行比较。

GetProfileInt

Retrieves an integer from a key in the specified section of the Win.ini file.

从Win.ini文件指定部分的键中检索整数。

GetProfileSection

Retrieves all the keys and values for the specified section of the Win.ini file.

检索Win.ini文件指定部分的所有键和值。

GetProfileString

Retrieves the string associated with a key in the specified section of the Win.ini file.

检索与Win.ini文件指定部分中的键关联的字符串。

WritePrivateProfileSection

Replaces the keys and values for the specified section in an initialization file.

替换初始化文件中指定节的键和值。

WritePrivateProfileString

Copies a string into the specified section of an initialization file.

将字符串复制到初始化文件的指定节中。

WritePrivateProfileStruct

Copies data into a key in the specified section of an initialization file. As it copies the data, the function calculates a checksum and appends it to the end of the data. TheGetPrivateProfileStruct function uses the checksum to ensure the integrity of the data.

将数据复制到初始化文件的指定部分中的键中。在复制数据时,函数计算校验和并将其附加到数据的末尾。GetPrivateProfileStruct函数使用校验和来确保数据的完整性。

WriteProfileSection

Replaces the contents of the specified section in the Win.ini file with specified keys and values. If Win.ini uses Unicode characters, the function writes Unicode characters to the file. Otherwise, the function writes ANSI characters.

用指定的键和值替换Win.ini文件中指定节的内容。如果Win.ini使用Unicode字符,则函数将Unicode字符写入文件。否则,函数将写入ANSI字符。

WriteProfileString

Copies a string into the specified section of the Win.ini file. If Win.ini uses Unicode characters, the function writes Unicode characters to the file. Otherwise, the function writes ANSI characters.

将字符串复制到Win.ini文件的指定部分。如果Win.ini使用Unicode字符,则函数将Unicode字符写入文件。否则,函数将写入ANSI字符。

注册表类

RegCreateKeyEx

Creates the specified registry key. If the key already exists, the function opens it. Note that key names are not case sensitive.

创建指定的注册表项。如果键已经存在,则函数将打开它。注意,键名不区分大小写。

RegCloseKey

Closes a handle to the specified registry key.

关闭指定注册表项的句柄。

RegEnumKeyEx

Enumerates the subkeys of the specified open registry key. The function retrieves information about one subkey each time it is called.

枚举指定的打开注册表项的子项。该函数每次调用时都会检索有关一个子键的信息。

FileTimeToSystemTime

Converts a file time to system time format. System time is based on Coordinated Universal Time (UTC).

将文件时间转换为系统时间格式。系统时间是以协调世界时(UTC)为基础的。

RegQueryInfoKey

Retrieves information about the specified registry key.

检索有关指定注册表项的信息。

RegDeleteKeyEx

Deletes a subkey and its values from the specified platform-specific view of the registry. Note that key names are not case sensitive.

从注册表的指定平台特定视图中删除子项及其值。注意,键名不区分大小写。

RegSetValueEx

Sets the data and type of a specified value under a registry key.

设置注册表项下指定值的数据和类型。

RegEnumValue

Enumerates the values for the specified open registry key. The function copies one indexed value name and data block for the key each time it is called.

枚举指定的打开注册表项的值。该函数每次调用该键时,都会复制一个索引值名称和数据块。

RegQueryValueEx

Retrieves the type and data for the specified value name associated with an open registry key.

检索与打开的注册表项关联的指定值名称的类型和数据。

RegDeleteValue

Removes a named value from the specified registry key. Note that value names are not case sensitive.

从指定的注册表项中移除命名值。注意,值名称不区分大小写。

界面类

CreateWindow

Creates an overlapped, pop-up, or child window. It specifies the window class, window title, window style, and (optionally) the initial position and size of the window. The function also specifies the window's parent or owner, if any, and the window's menu.

创建重叠、弹出或子窗口。它指定窗口类、窗口标题、窗口样式,以及(可选)窗口的初始位置和大小。该函数还指定窗口的父或所有者(如果有的话)和窗口的菜单。

CreateWindowEx

Creates an overlapped, pop-up, or child window with an extended window style.

创建具有扩展窗口样式的重叠、弹出或子窗口。

CloseWindow

Minimizes (but does not destroy) the specified window.

最小化(但不销毁)指定的窗口。

DestroyWindow

Destroys the specified window. The function sends WM_DESTROY and WM_NCDESTROYmessages to the window to deactivate it and remove the keyboard focus from it. The function also destroys the window's menu, flushes the thread message queue, destroys timers, removes clipboard ownership, and breaks the clipboard viewer chain (if the window is at the top of the viewer chain).

销毁指定的窗口。这个函数通过发送WM_DESTROY 消息和 WM_NCDESTROY 消息使窗口无效并移除其键盘焦点。这个函数还销毁窗口的菜单,清空线程的消息队列,销毁与窗口过程相关的定时器,解除窗口对剪贴板的拥有权,打断剪贴板器的查看链。

FindWindow

Retrieves a handle to the top-level window whose class name and window name match the specified strings. This function does not search child windows. This function does not perform a case-sensitive search.

检索顶级窗口的句柄,该窗口的类名和窗口名与指定字符串匹配。此函数不搜索子窗口。此函数不执行区分大小写的搜索。

FindWindowEx

Retrieves a handle to a window whose class name and window name match the specified strings. The function searches child windows, beginning with the one following the specified child window. This function does not perform a case-sensitive search.

检索类名与窗口名称与指定字符串匹配的窗口的句柄。函数搜索子窗口,从指定子窗口后面的子窗口开始。此函数不执行区分大小写的搜索。

EnumWindows

Enumerates all top-level windows on the screen by passing the handle to each window, in turn, to an application-defined callback function. EnumWindows continues until the last top-level window is enumerated or the callback function returns FALSE.

通过向每个窗口传递句柄到应用程序定义的回调函数,枚举屏幕上的所有顶级窗口。EnumWindows将继续运行,直到枚举最后一个顶级窗口或回调函数返回false为止。

EnumWindowsProc

An application-defined callback function used with the EnumWindows or EnumDesktopWindows function.

与EnumWindows或EnumDesktopWindows函数一起使用的应用程序定义的回调函数。

EnumChildWindows

Enumerates the child windows that belong to the specified parent window by passing the handle to each child window, in turn, to an application-defined callback function. EnumChildWindows continues until the last child window is enumerated or the callback function returns FALSE.

通过将句柄传递给每个子窗口来枚举属于指定父窗口的子窗口,然后将句柄传递给应用程序定义的回调函数。EnumChild Windows将继续运行,直到枚举最后一个子窗口或回调函数返回false为止

SetWindowText

Changes the text of the specified window's title bar (if it has one). If the specified window is a control, the text of the control is changed. However, SetWindowText cannot change the text of a control in another application.

更改指定窗口标题栏的文本(如果有)。如果指定的窗口是控件,则更改控件的文本。但是,SetWindowText不能更改其他应用程序中控件的文本。

SetWindowPos

Changes the size, position, and Z order of a child, pop-up, or top-level window. These windows are ordered according to their appearance on the screen. The topmost window receives the highest rank and is the first window in the Z order.

更改子窗口、弹出窗口或顶层窗口的大小、位置和Z顺序。这些窗户是根据它们在屏幕上的外观来排序的。最上面的窗口接收最高的级别,是Z顺序中的第一个窗口。

MoveWindow

Changes the position and dimensions of the specified window. For a top-level window, the position and dimensions are relative to the upper-left corner of the screen. For a child window, they are relative to the upper-left corner of the parent window's client area.

更改指定窗口的位置和尺寸。对于顶层窗口,位置和尺寸相对于屏幕的左上角.对于子窗口,它们相对于父窗口的工作区的左上角。

GetWindowText

Copies the text of the specified window's title bar (if it has one) into a buffer. If the specified window is a control, the text of the control is copied. However,GetWindowText cannot retrieve the text of a control in another application.

将指定窗口标题栏的文本(如果有)复制到缓冲区中。如果指定的窗口是控件,则复制控件的文本。但是,GetWindowText无法检索其他应用程序中控件的文本。

GetWindowRect

Retrieves the dimensions of the bounding rectangle of the specified window. The dimensions are given in screen coordinates that are relative to the upper-left corner of the screen.

检索指定窗口的边框的尺寸。尺寸是以屏幕坐标给出的,相对于屏幕的左上角。

GetWindowTextLength

Retrieves the length, in characters, of the specified window's title bar text (if the window has a title bar). If the specified window is a control, the function retrieves the length of the text within the control. However, GetWindowTextLength cannot retrieve the length of the text of an edit control in another application.

检索指定窗口标题栏文本(如果窗口有标题栏)的长度(以字符为单位)。如果指定的窗口是控件,则函数将检索控件内文本的长度。但是,GetWindowTextLength无法检索另一个应用程序中编辑控件的文本长度。

IsChild

Determines whether a window is a child window or descendant window of a specified parent window. A child window is the direct descendant of a specified parent window if that parent window is in the chain of parent windows; the chain of parent windows leads from the original overlapped or pop-up window to the child window.

确定窗口是指定父窗口的子窗口还是子代窗口。如果父窗口位于父窗口链中,则子窗口是指定父窗口的直接后代;父窗口链将从原始重叠窗口或弹出窗口引导到子窗口。

IsWindow

Determines whether the specified window handle identifies an existing window.

确定指定的窗口句柄是否标识现有窗口。

GetNextWindow

Retrieves a handle to the next or previous window in the Z-Order. The next window is below the specified window; the previous window is above.

以Z顺序检索下一个或上一个窗口的句柄。下一个窗口位于指定窗口下面;前一个窗口位于上面。

GetWindowInfo

Retrieves information about the specified window.

检索有关指定窗口的信息。

GetWindow

Retrieves a handle to a window that has the specified relationship (Z-Order or owner) to the specified window.

检索与指定窗口具有指定关系(Z顺序或所有者)的窗口的句柄。

GetTopWindow

Examines the Z order of the child windows associated with the specified parent window and retrieves a handle to the child window at the top of the Z order.

检查与指定父窗口关联的子窗口的Z顺序,并在Z顺序顶部检索子窗口的句柄。

ShowWindow

Sets the specified window's show state.

设置指定窗口的显示状态。

SetWindowsHookEx

Installs an application-defined hook procedure into a hook chain. You would install a hook procedure to monitor the system for certain types of events. These events are associated either with a specific thread or with all threads in the same desktop as the calling thread.

将应用程序定义的钩子过程安装到钩子链中。您将安装一个钩子过程来监视系统中某些类型的事件。这些事件与特定线程或与调用线程位于同一个桌面中的所有线程相关联。

CreateDialog

Creates a modeless dialog box from a dialog box template resource. 

从对话框模板资源创建无模式对话框。

DialogBox

Creates a modal dialog box from a dialog box template resource. 

从对话框模板资源创建模式对话框。

EndDialog

Destroys a modal dialog box, causing the system to end any processing for the dialog box.

销毁模式对话框,导致系统终止对对话框的任何处理。

GetDlgItem

Retrieves a handle to a control in the specified dialog box.

检索指定对话框中控件的句柄。

GetDlgItemInt

Translates the text of a specified control in a dialog box into an integer value.

将对话框中指定控件的文本转换为整数值。

GetDlgItemText

Retrieves the title or text associated with a control in a dialog box.

检索与对话框中的控件关联的标题或文本。

GetNextDlgGroupItem

Retrieves a handle to the first control in a group of controls that precedes (or follows) the specified control in a dialog box.

检索对话框中指定控件之前(或后面)的一组控件中的第一个控件的句柄。

GetNextDlgTabItem

Retrieves a handle to the first control that has the WS_TABSTOP style that precedes (or follows) the specified control.

检索具有WS_TABSTOP样式的第一个控件的句柄,该句柄位于(或遵循)指定控件之前。

IsDialogMessage

Determines whether a message is intended for the specified dialog box and, if it is, processes the message.

确定消息是否用于指定的对话框,如果是,则处理该消息。

MessageBox

Displays a modal dialog box that contains a system icon, a set of buttons, and a brief application-specific message, such as status or error information. The message box returns an integer value that indicates which button the user clicked.

显示一个模态对话框,该对话框包含系统图标、一组按钮和一条特定于应用程序的简短消息,例如状态或错误信息。消息框返回一个整数值,该值指示用户单击哪个按钮。

MessageBoxEx

Creates, displays, and operates a message box. The message box contains an application-defined message and title, plus any combination of predefined icons and push buttons. The buttons are in the language of the system user interface.

创建、显示和操作消息框。消息框包含应用程序定义的消息和标题,以及预定义图标和按钮的任何组合。按钮使用系统用户界面的语言。

SendDlgItemMessage

Sends a message to the specified control in a dialog box.

向对话框中的指定控件发送消息。

SetDlgItemInt

Sets the text of a control in a dialog box to the string representation of a specified integer value.

将对话框中控件的文本设置为指定整数值的字符串表示形式。

SetDlgItemText

Sets the title or text of a control in a dialog box.

在对话框中设置控件的标题或文本。

CreateDC

The CreateDC function creates a device context (DC) for a device using the specified name.

CreateDC函数使用指定的名称为设备创建设备上下文(DC)。

DeleteDC

The DeleteDC function deletes the specified device context (DC).

DeleteDC函数删除指定的设备上下文(DC)。

ReleaseDC

The ReleaseDC function releases a device context (DC), freeing it for use by other applications. It frees only common and window DCs.

ReleaseDC函数释放设备上下文(DC),释放它供其他应用程序使用。它只释放普通的和窗口的DC。

CreateCompatibleDC

The CreateCompatibleDC function creates a memory device context (DC) compatible with the specified device.

CreateCompatbleDC函数创建与指定设备兼容的内存设备上下文(DC)。

GetDC

The GetDC function retrieves a handle to a device context (DC) for the client area of a specified window or for the entire screen. 

GetDC函数检索指定窗口的工作区或整个屏幕的设备上下文(DC)句柄。

CreateCompatibleBitmap

The CreateCompatibleBitmap function creates a bitmap compatible with the device that is associated with the specified device context.

CreateCompatbleBitmap函数创建与与指定设备上下文关联的设备兼容的位图。

SelectObject

The SelectObject function selects an object into the specified device context (DC). The new object replaces the previous object of the same type.

SelectObject函数在指定的设备上下文(DC)中选择一个对象。新对象替换相同类型的前一个对象。

CreateBitmap

The CreateBitmap function creates a bitmap with the specified width, height, and color format (color planes and bits-per-pixel).

CreateBitmap函数创建具有指定宽度、高度和颜色格式(颜色平面和每像素位)的位图。

DeleteObject

The DeleteObject function deletes a logical pen, brush, font, bitmap, region, or palette, freeing all system resources associated with the object. After the object is deleted, the specified handle is no longer valid.

DeleteObject函数删除逻辑笔、画笔、字体、位图、区域或调色板,释放与对象关联的所有系统资源。删除对象后,指定的句柄不再有效。

BitBlt

The BitBlt function performs a bit-block transfer of the color data corresponding to a rectangle of pixels from the specified source device context into a destination device context.

BitBlt函数执行从指定源设备上下文到目标设备上下文的对应于像素矩形的颜色数据的位块传输。

LoadBitmap
 

The LoadBitmap function loads the specified bitmap resource from a module's executable file.

LoadBitmap函数从模块的可执行文件加载指定的位图资源。

GetObject

The GetObject function retrieves information for the specified graphics object.

GetObject函数检索指定图形对象的信息。

LoadResource

Retrieves a handle that can be used to obtain a pointer to the first byte of the specified resource in memory.

检索可用于获取指向内存中指定资源的第一个字节的指针的句柄。

LoadImage

Loads an icon, cursor, animated cursor, or bitmap.

加载图标、光标、动画光标或位图。

FindResource

Determines the location of a resource with the specified type and name in the specified module.

确定指定模块中具有指定类型和名称的资源的位置。

FindResourceEx

Determines the location of the resource with the specified type, name, and language in the specified module.

确定具有指定类型、名称和语言的资源在指定模块中的位置。

CopyImage

Creates a new image (icon, cursor, or bitmap) and copies the attributes of the specified image to the new one. If necessary, the function stretches the bits to fit the desired size of the new image.

创建新图像(图标、光标或位图)并将指定图像的属性复制到新图像。如果有必要,该函数扩展比特以适应新图像的所需大小。

LoadIcon

Loads the specified icon resource from the executable (.exe) file associated with an application instance.

从与应用程序实例关联的可执行文件(.exe)加载指定的图标资源。

DrawIcon

Draws an icon or cursor into the specified device context.

将图标或光标绘制到指定的设备上下文中。

CreateIcon

Creates an icon that has the specified size, colors, and bit patterns.

创建具有指定大小、颜色和位模式的图标。

DrawIconEx

Draws an icon or cursor into the specified device context, performing the specified raster operations, and stretching or compressing the icon or cursor as specified.

将图标或光标绘制到指定的设备上下文中,执行指定的光栅操作,并按指定的方式拉伸或压缩图标或光标。

GetIconInfo

Retrieves information about the specified icon or cursor.

检索有关指定图标或光标的信息。

LoadString

Loads a string resource from the executable file associated with a specified module and either copies the string into a buffer with a terminating null character or returns a read-only pointer to the string resource itself.

从与指定模块关联的可执行文件加载字符串资源,并将字符串复制到具有终止空字符的缓冲区中,或者返回指向字符串资源本身的只读指针。

SetWindowLong

Changes an attribute of the specified window. The function also sets the 32-bit (long) value at the specified offset into the extra window memory.

更改指定窗口的属性。该函数还将指定偏移量处的32位(长)值设置为额外的窗口内存。

SetClassLong

Replaces the specified 32-bit (long) value at the specified offset into the extra class memory or the WNDCLASSEX structure for the class to which the specified window belongs.

将指定偏移量处的指定32位(长)值替换为指定窗口所属类的额外类内存或WNDCLASSEX结构。

RegisterClass

Registers a window class for subsequent use in calls to the CreateWindow or CreateWindowExfunction.

注册一个窗口类,以便随后在调用CreateWindow或CreateWindowEx函数时使用。

GetWindowLong

Retrieves information about the specified window. The function also retrieves the 32-bit (DWORD) value at the specified offset into the extra window memory.

检索有关指定窗口的信息。该函数还将指定偏移量处的32位(DWORD)值检索到额外的窗口内存中。

GetClassLong

Retrieves the specified 32-bit (DWORD) value from the WNDCLASSEX structure associated with the specified window.

从与指定窗口关联的WNDCLASSEX结构中检索指定的32位(DWORD)值.

GetClassInfo

Retrieves information about a window class.

检索有关窗口类的信息。

GetClassName

Retrieves the name of the class to which the specified window belongs.

检索指定窗口所属的类的名称。

UnregisterClass

Unregisters a window class, freeing the memory required for the class.

取消注册窗口类,释放类所需的内存。

CreateMenu

Creates a menu.

创建一个菜单。

DeleteMenu

Deletes a menu item.

删除菜单项。

DestroyMenu

Deletes a menu.

删除菜单。

AppendMenu

Appends an item to various menus and submenus.

将项目附加到各种菜单和子菜单

CreatePopupMenu

Creates a drop-down menu, submenu, or shortcut menu.

创建下拉菜单﹑子菜单或快捷菜单。

GetMenu

Gets a handle to the menu.

获取菜单句柄。

SetMenu

Assigns a new menu to a window.

为窗口分配一个新菜单。

LoadMenu

Loads a menu resource.

加载菜单资源。

鼠标键盘类

CreateCursor

Creates a cursor having the specified size, bit patterns, and hot spot.

创建具有指定大小、位模式和热点的游标。

DestroyCursor

Destroys a cursor and frees any memory the cursor occupied. Do not use this function to destroy a shared cursor.

破坏游标并释放游标占用的任何内存。不要使用此函数破坏共享游标。

GetCursor

Retrieves a handle to the current cursor.

检索当前游标的句柄。

GetCursorInfo

Retrieves information about the global cursor.

检索有关全局游标的信息。

GetCursorPos

Retrieves the position of the mouse cursor, in screen coordinates.

检索鼠标光标在屏幕坐标中的位置。

SetCursor

Sets the cursor shape.

设置光标形状。

SetCursorPos

Moves the cursor to the specified screen coordinates. If the new coordinates are not within the screen rectangle set by the most recent ClipCursor function call, the system automatically adjusts the coordinates so that the cursor stays within the rectangle.

将光标移动到指定的屏幕坐标。如果新的坐标不在最近的ClipCursor函数调用设置的屏幕矩形内,系统将自动调整坐标,以便光标停留在矩形内。

ShowCursor

Displays or hides the cursor.

显示或隐藏光标。

CopyCursor

Copies the specified cursor.

复制指定的游标。

MapVirtualKey

Translates (maps) a virtual-key code into a scan code or character value, or translates a scan code into a virtual-key code.

将虚拟密钥代码转换为扫描代码或字符值,或将扫描代码转换为虚拟密钥代码。

MapVirtualKeyEx

Translates (maps) a virtual-key code into a scan code or character value, or translates a scan code into a virtual-key code. The function translates the codes using the input language and an input locale identifier.

将虚拟密钥代码转换为扫描代码或字符值,或将扫描代码转换为虚拟密钥代码。该函数使用输入语言和输入区域设置标识符来翻译代码。

SetFocus

Sets the keyboard focus to the specified window. The window must be attached to the calling thread's message queue.

将键盘焦点设置为指定的窗口。窗口必须附加到调用线程的消息队列。

ToAscii

Translates the specified virtual-key code and keyboard state to the corresponding character or characters. The function translates the code using the input language and physical keyboard layout identified by the keyboard layout handle.

将指定的虚拟键代码和键盘状态转换为相应的字符.该函数使用输入语言和由键盘布局句柄标识的物理键盘布局来翻译代码。

ToUnicode

Translates the specified virtual-key code and keyboard state to the corresponding Unicode character or characters.

将指定的虚拟键代码和键盘状态转换为相应的Unicode字符.

SetKeyboardState

Copies an array of keyboard key states into the calling thread's keyboard input-state table. 

将键盘键状态数组复制到调用线程的键盘输入状态表中。

GetKeyboardState

Copies the status of the 256 virtual keys to the specified buffer.

将256个虚拟键的状态复制到指定的缓冲区。

SetActiveWindow

Activates a window. The window must be attached to the calling thread's message queue.

激活窗户。窗口必须附加到调用线程的消息队列。

SendInput

Synthesizes keystrokes, mouse motions, and button clicks.

合成击键、鼠标运动和按钮单击。

EnableWindow

Enables or disables mouse and keyboard input to the specified window or control.

启用或禁用鼠标和键盘输入到指定的窗口或控件。

网络类

WNetOpenEnum

The WNetOpenEnum function starts an enumeration of network resources or existing connections. You can continue the enumeration by calling the WNetEnumResource function.

WNetOpenEnum函数启动网络资源或现有连接的枚举。可以通过调用WNetEnumResource函数继续枚举。

WNetEnumResource

The WNetEnumResource function continues an enumeration of network resources that was started by a call to the WNetOpenEnum function.

WNetEnumResource函数连续不断的通过调用WNetOpenEnum函数启动的网络资源枚举。

WNetCloseEnum

The WNetCloseEnum function ends a network resource enumeration started by a call to theWNetOpenEnum function.

WNetCloseEnum函数结束对WNetOpenEnum函数的调用启动的网络资源枚举。

WSAStartup

The WSAStartup function initiates use of the Winsock DLL by a process.

WSAStartup函数通过进程启动Winsock DLL的使用。

WSACleanup

The WSACleanup function terminates use of the Winsock 2 DLL (Ws2_32.dll).

WSACleanup函数终止使用Winsock 2 DLL(WS2_32.dll)。

socket

The socket function creates a socket that is bound to a specific transport service provider.

套接字函数创建绑定到特定传输服务提供程序的套接字。

bind

The bind function associates a local address with a socket.

绑定函数将本地地址与套接字关联起来。

listen

The listen function places a socket in a state in which it is listening for an incoming connection.

Listen函数将套接字置于侦听传入连接的状态。

accept

The accept function permits an incoming connection attempt on a socket.

Accept函数允许对套接字进行传入连接尝试。

connect

The connect function establishes a connection to a specified socket.

CONNECT函数建立到指定套接字的连接。

send

The send function sends data on a connected socket.

Send函数在连接的套接字上发送数据。

recv

The recv function receives data from a connected socket or a bound connectionless socket.

Recv函数从连接的套接字或绑定的无连接套接字接收数据。

sendto

The sendto function sends data to a specific destination.

Sendto函数将数据发送到特定的目的地。

recvfrom

The recvfrom function receives a datagram, and stores the source address.

Recvfrom函数接收数据报,并存储源地址。

CreateIoCompletionPort

Creates an input/output (I/O) completion port and associates it with a specified file handle, or creates an I/O completion port that is not yet associated with a file handle, allowing association at a later time.

创建输入/输出(I/O)完成端口,并将其与指定的文件句柄关联,或创建尚未与文件句柄关联的I/O完成端口,允许稍后进行关联。

GetQueuedCompletionStatus

Attempts to dequeue an I/O completion packet from the specified I/O completion port. If there is no completion packet queued, the function waits for a pending I/O operation associated with the completion port to complete.

尝试将I/O完成包从指定的I/O完成端口排出队列。如果没有完成数据包排队,则该函数等待与完成端口关联的挂起I/O操作完成。

DeviceIoControl

Sends a control code directly to a specified device driver, causing the corresponding device to perform the corresponding operation.

直接向指定的设备驱动程序发送控制代码,从而使相应的设备执行相应的操作。

PostQueuedCompletionStatus

Posts an I/O completion packet to an I/O completion port.

将I/O完成包发送到I/O完成端口。

进程线程类

CreateProcess

Creates a new process and its primary thread. The new process runs in the security context of the calling process.

创建一个新进程及其主线程。新进程在调用进程的安全上下文中运行。

CreateToolhelp32Snapshot

Takes a snapshot of the specified processes, as well as the heaps, modules, and threads used by these processes.

获取指定进程以及这些进程使用的堆、模块和线程的快照。

Process32First

Retrieves information about the first process encountered in a system snapshot.

检索有关系统快照中遇到的第一个进程的信息。

Process32Next

Retrieves information about the next process recorded in a system snapshot.

检索有关系统快照中记录的下一个进程的信息。

ExitProcess

Ends the calling process and all its threads.

结束调用进程及其所有线程。

TerminateProcess

Terminates the specified process and all of its threads.

终止指定的进程及其所有线程。

OpenProcess

Opens an existing local process object.

打开现有的本地进程对象。

GetCurrentProcesssId

Retrieves the process identifier of the calling process.

检索调用进程的进程标识符。

GetModuleFileName

Retrieves the fully qualified path for the file that contains the specified module. The module must have been loaded by the current process.

检索包含指定模块的文件的完整路径。模块必须已由当前进程加载。

GetProcessImageFileName

Retrieves the name of the executable file for the specified process.

检索指定进程的可执行文件的名称。

Module32First

Retrieves information about the first module associated with a process.

检索与进程关联的第一个模块的信息。

Module32Next

Retrieves information about the next module associated with a process or thread.

检索与进程或线程关联的下一个模块的信息。

GetModuleHandle

Retrieves a module handle for the specified module. The module must have been loaded by the calling process.

检索指定模块的模块句柄。模块必须已由调用进程加载。

GetProcessAddress

Retrieves the address of an exported function or variable from the specified dynamic-link library (DLL).

从指定的动态链接库(DLL)检索导出函数或变量的地址。

LoadLibrary

Loads the specified module into the address space of the calling process. The specified module may cause other modules to be loaded.

将指定的模块加载到调用进程的地址空间中。指定的模块可能引起加载其他模块。

FreeLibrary

Frees the loaded dynamic-link library (DLL) module and, if necessary, decrements its reference count. When the reference count reaches zero, the module is unloaded from the address space of the calling process and the handle is no longer valid.

释放加载的动态链接库(DLL)模块,并在必要时减少其引用计数.当引用计数达到零时,从调用进程的地址空间卸载模块,句柄不再有效。

GetCommandLine

Retrieves the command-line string for the current process.

检索当前进程的命令行字符串。

ReadProcessMemory

This function reads memory in a specified process. The entire area to be read must be accessible or the operation fails.

此函数读取指定进程中的内存。要读取的整个区域必须是可访问的,否则操作失败。

WriteProcessMemory

Writes data to an area of memory in a specified process. The entire area to be written to must be accessible or the operation fails.

将数据写入指定进程中的内存区域。要写入的整个区域必须是可访问的,否则操作失败。

GetVersion

The GetVersion function returns the current version number of the operating system.

返回当前操作系统的版本号。

SetPriorityClass

Sets the priority class for the specified process. This value together with the priority value of each thread of the process determines each thread's base priority level.

设置指定进程的优先级类。此值与进程的每个线程的优先级值一起确定每个线程的基本优先级级别。

GetPriorityClass

Retrieves the priority class for the specified process. This value, together with the priority value of each thread of the process, determines each thread's base priority level.

检索指定进程的优先级类。此值以及进程的每个线程的优先级值确定每个线程的基本优先级级别。

SetProcessPriorityBoost

Disables or enables the ability of the system to temporarily boost the priority of the threads of the specified process.

禁用或启用系统临时提升指定进程线程优先级的能力。

GetProcessPriorityBoost

Retrieves the priority boost control state of the specified process.

检索指定进程的优先级提升控制状态。

EnumProcesses

Retrieves the process identifier for each process object in the system.

检索系统中每个进程对象的进程标识符。

EnumProcessModules

Retrieves a handle for each module in the specified process.

检索指定进程中每个模块的句柄。

CreateThread

Creates a thread to execute within the virtual address space of the calling process.

创建要在调用进程的虚拟地址空间内执行的线程。

_beginthread,_beginthreadex

Creates a thread.

创建一个线程。

CreateRemoteThread

Creates a thread that runs in the virtual address space of another process.

创建在另一个进程的虚拟地址空间中运行的线程。

GetCurrentThreadId

Retrieves the thread identifier of the calling thread.

检索调用线程的线程标识符。

CloseHandle

Closes an open object handle.

关闭打开的对象句柄。

SuspendThread

Suspends the specified thread.

挂起指定的线程。

ResumeThread

Decrements a thread's suspend count. When the suspend count is decremented to zero, the execution of the thread is resumed.

减少线程的挂起计数。当挂起计数减为零时,将继续执行线程。

GetExitCodeThread

Retrieves the termination status of the specified thread.

检索指定线程的终止状态。

WaitForSignleObject

Waits until the specified object is in the signaled state or the time-out interval elapses.

等待,直到指定的对象处于信号状态或超时间隔过去。

WaitForMultipleObjects

Waits until one or all of the specified objects are in the signaled state or the time-out interval elapses.

等待,直到一个或所有指定对象处于信号状态或超时间隔过去。

CreateToolhelp32Snapshot

Takes a snapshot of the specified processes, as well as the heaps, modules, and threads used by these processes.

获取指定进程以及这些进程使用的堆、模块和线程的快照。

Thread32First

Retrieves information about the first thread of any process encountered in a system snapshot.

检索系统内存快照中遇到的任何进程的第一个线程的信息。

Thread32Next

Retrieves information about the next thread of any process encountered in the system memory snapshot.

检索系统内存快照中遇到的任何进程的下一个线程的信息。

OpenThread

Opens an existing thread object.

打开现有线程对象。

SetThreadPriority

Sets the priority value for the specified thread. This value, together with the priority class of the thread's process, determines the thread's base priority level.

设置指定线程的优先级值。此值与线程进程的优先级类一起确定线程的基本优先级级别。

GetThreadPriority

Retrieves the priority value for the specified thread. This value, together with the priority class of the thread's process, determines the thread's base-priority level.

检索指定线程的优先级值。此值与线程进程的优先级类一起确定线程的基本优先级级别。

SetThreadPriorityBoost

Disables or enables the ability of the system to temporarily boost the priority of a thread.

禁用或启用系统暂时提升线程优先级的能力。

GetThreadPriorityBoost

Retrieves the priority boost control state of the specified thread.

检索指定线程的优先级提升控制状态。

ExitThread

Ends the calling thread.

结束调用线程。

TerminateThread

Terminates a thread.

终止线程。

InitializeCriticalSection

Initializes a critical section object.

初始化关键区段对象。

EnterCriticalSection

Waits for ownership of the specified critical section object. The function returns when the calling thread is granted ownership.

等待指定关键部分对象的所有权。函数在调用线程被授予所有权时返回。

LeaveCriticalSection

Releases ownership of the specified critical section object.

释放指定的关键部分对象的所有权。

DeleteCriticalSection

Releases all resources used by an unowned critical section object.

释放未拥有的关键部分对象使用的所有资源。

OpenEvent

Opens an existing named event object.

打开现有的命名事件对象。

CreateEvent

Creates or opens a named or unnamed event object.

创建或打开命名或未命名的事件对象。

SetEvent

Sets the specified event object to the signaled state.

将指定的事件对象设置为已发出信号的状态。

ResetEvent

Sets the specified event object to the nonsignaled state.

将指定的事件对象设置为无信号状态。

CreateMutex

Creates or opens a named or unnamed mutex object.

创建或打开命名或未命名的互斥对象。

ReleaseMutex

Releases ownership of the specified mutex object.

释放指定互斥对象的所有权。

OpenMutex

Opens an existing named mutex object.

打开现有的命名互斥对象。

CreateSemaphore

Creates or opens a named or unnamed semaphore object.

创建或打开命名或未命名的信号量对象。

OpenSemaphore

Opens an existing named semaphore object.

打开现有的命名信号量对象。

ReleaseSemaphore

Increases the count of the specified semaphore object by a specified amount.

将指定的信号量对象的计数增加指定的数量。

系统服务类

OpenSCManager

Establishes a connection to the service control manager on the specified computer and opens the specified service control manager database.

在指定的计算机上建立到服务控制管理器的连接,并打开指定的服务控制管理器数据库。

CreateService

Creates a service object and adds it to the specified service control manager database.

创建服务对象并将其添加到指定的服务控制管理器数据库中。

OpenService

Opens an existing service.

打开现有服务。

StartService

Starts a service.

开始一项服务。

QueryServiceStatus

Retrieves the current status of the specified service.

检索指定服务的当前状态。

CloseServiceHandle

Closes a handle to a service control manager or service object.

关闭服务控制管理器或服务对象的句柄。

StartServiceCtrlDispatcher

Connects the main thread of a service process to the service control manager, which causes the thread to be the service control dispatcher thread for the calling process.

将服务进程的主线程连接到服务控制管理器,这将导致该线程成为调用进程的服务控制调度线程。

RegisterServiceCtrlHandler

Registers a function to handle service control requests.

注册一个函数来处理服务控制请求。

SetServiceStatus

Updates the service control manager's status information for the calling service.

更新调用服务的服务控制管理器的状态信息。

ControlService

Sends a control code to a service.

向服务发送控制代码。

DeleteService

Marks the specified service for deletion from the service control manager database.

标记指定的服务以便从服务控制管理器数据库中删除。

EnumServicesStatus

Enumerates services in the specified service control manager database. The name and status of each service are provided.

枚举指定的服务控制管理器数据库中的服务。提供每个服务的名称和状态。

QueryServiceConfig

Retrieves the configuration parameters of the specified service. 

检索指定服务的配置参数。

QueryServiceConfig2

Retrieves the optional configuration parameters of the specified service.

检索指定服务的可选配置参数。

内存管理类

VirtualAlloc

Reserves, commits, or changes the state of a region of pages in the virtual address space of the calling process. Memory allocated by this function is automatically initialized to zero.

保留、提交或更改调用进程虚拟地址空间中页区域的状态。此函数分配的内存将自动初始化为零。

VirtualAllocEx

Reserves, commits, or changes the state of a region of memory within the virtual address space of a specified process. The function initializes the memory it allocates to zero.

在指定进程的虚拟地址空间内保留、提交或更改内存区域的状态。此函数分配的内存初始化为零。

VirtualProtect

Changes the protection on a region of committed pages in the virtual address space of the calling process.

更改调用进程虚拟地址空间中已提交页区域的保护。

VirtualProtectEx

Changes the protection on a region of committed pages in the virtual address space of a specified process.

更改指定进程虚拟地址空间中已提交页区域的保护。

VirtualFree

Releases, decommits, or releases and decommits a region of pages within the virtual address space of the calling process.

释放、解压缩或释放和解压缩调用进程虚拟地址空间中的一个页面区域。

VirtualFreeEx

Releases, decommits, or releases and decommits a region of memory within the virtual address space of a specified process.

在指定进程的虚拟地址空间内释放、解压缩或释放和解压缩内存区域。

GetMappedFileName

Checks whether the specified address is within a memory-mapped file in the address space of the specified process. If so, the function returns the name of the memory-mapped file.

检查指定地址是否在指定进程地址空间中的内存映射文件中。如果是这样,则函数返回内存映射文件的名称。

LocalAlloc

Allocates the specified number of bytes from the heap.

从堆中分配指定的字节数。

LocalFree

Frees the specified local memory object and invalidates its handle.

释放指定的本地内存对象并使其句柄无效。

LocalLock

Locks a local memory object and returns a pointer to the first byte of the object's memory block.

锁定本地内存对象并返回指向对象内存块的第一个字节的指针。

LocalReAlloc

Changes the size or the attributes of a specified local memory object. The size can increase or decrease.

更改指定的本地内存对象的大小或属性。大小可以增加也可以减小。

LocalUnlock

Decrements the lock count associated with a memory object that was allocated with LMEM_MOVEABLE

减少与LMEM_Moveable分配的内存对象关联的锁计数。

LocalSize

Retrieves the current size of the specified local memory object, in bytes.

检索指定本地内存对象的当前大小(以字节为单位)。

HeapAlloc

Allocates a block of memory from a heap. The allocated memory is not movable.

从堆中分配内存块。分配的内存不可移动。

HeapCreate

Creates a private heap object that can be used by the calling process. The function reserves space in the virtual address space of the process and allocates physical storage for a specified initial portion of this block.

创建可由调用进程使用的私有堆对象。该函数在进程的虚拟地址空间中保留空间,并为该块的指定初始部分分配物理存储。

HeapDestroy

Destroys the specified heap object. It decommits and releases all the pages of a private heap object, and it invalidates the handle to the heap.

销毁指定的堆对象。它对私有堆对象的所有页面进行分解和释放,并使堆的句柄无效。

HeapFree

Frees a memory block allocated from a heap by the HeapAlloc or HeapReAlloc function.

释放由Heapalloc或HeapRealloc函数从堆中分配的内存块。

HeapLock

Attempts to acquire the critical section object, or lock, that is associated with a specified heap.

尝试获取与指定堆关联的关键区段对象(或锁)。

HeapReAlloc

Reallocates a block of memory from a heap. This function enables you to resize a memory block and change other memory block properties. The allocated memory is not movable.

从堆中重新分配内存块。此函数使您能够调整内存块的大小并更改其他内存块属性。分配的内存不可移动。

HeapSize

Retrieves the size of a memory block allocated from a heap by the HeapAlloc or HeapReAllocfunction.

检索由Heapalloc或HeapRealloc函数从堆中分配的内存块的大小。

HeapUnLock

Releases ownership of the critical section object, or lock, that is associated with a specified heap. It reverses the action of the HeapLock function.

释放与指定堆关联的关键区段对象(或锁)的所有权。它逆转了HeapLock函数的作用。

  • 19
    点赞
  • 12
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值