文号
t72463
阅读
5890
回复
1
收藏
1
.NET中封装的WinAPI
2015/07/07
IP:北京
.NET 的开发 (一般) 技术文章
微软 Win32 向 XXXXXXXXXXXXX 框架 API 地图

XXXXXXXXXXXXX 框架和 Microsoft Visual Studio 用户教育团队
微软公司
2004 年 1 月
适用于:
Microsoft ?.NET Framework 1.0 或 1.1 版
Microsoft Visual Studio ?.NET
微软 Win32 ? 功能
摘要:这篇文章标识构架框架 1.0 或 1.1 版提供类似的功能对微软 Win32 函数的 Api。一个或更多有关.NET 框架 Api 显示为每个列出的 Win32 函数。这篇文章的目标的读者是有经验的 Win32 开发人员在创建应用程序或库基于构架框架,但是寻找对于 Win32 函数的托管副本的任何人都能找到这个文档很有用。(85) 页打印的页
在这篇文章,Microsoft ? Win32 ? 功能按类别进行组织。列出每个 Win32 函数属于只有一个类别,每个类别出现在其自己的表中。被提供 Win32 类别按字母顺序排列的列表,只层次结构列表。若要查找一个 Win32 区域,从类别列表中选择适当的类别或搜索文章为名称的函数。如果找不到你正在寻求的 Win32 函数,这意味着没有等效的.NET 框架 API 存在在.NET 框架 1.0 或 1.1 版或从列表中无意中省略的 Win32 函数和有关.NET 框架 API。
如果你相信,一个 Win32 函数和有关.NET 框架 API 已略去了这篇文章、 请让我们知道通过使用反馈链接。在这篇文章中列出的 api 的详细信息,请参阅平台 SDK 文档或 MSDN ? 库中的.NET 框架 SDK 以下
按字母顺序排列的 Win32 类别列表


A C
原子函数 颜色函数
位图的功能 组合框功能
画笔功能 通用对话框功能
按钮功能 控制台的功能
剪贴板功能 协调职能
裁剪精巧 游标函数
D-我
调试功能 文件 I/O 函数
设备上下文函数 文件系统功能
对话框功能 填充的形状函数
动态链接库函数 字体和文本函数
错误处理函数 图标功能
事件日志记录功能 输入法编辑器功能
J-N
键盘加速器功能 消息和消息队列功能
Keyboard input functions Metafile functions
Line and curve functions Mouse input functons
List box functions Multiple display monitor functions
Memory management functions Multiple-document interface functions
Menu functions National language functions
O-R
Painting and drawing functions PSAPI functions
Path functions Rectangle functions
Pen functions Region functions
Performance monitoring functions Registry functions
Printing functions Resource functions
Process and thread functions Rich edit control functions
S-T
Scroll bar functions Tape backup functions
Service functions Text object model functions
String functions Time functions
Structured exception-handling functions Timer functions
Synchronization functions Tool Help functions
System information functions  
U-Z
Unicode and character set functions Window functions
User profile functions Window class functions
Version information functions Window procedure functions
  Window property functions
Hierarchical Win32 Category List


Base Services
Debugging and Error Handling Miscellaneous
Debugging Memory management
Error handling User profile
Event logging Performance
Structured exception-handling Performance monitoring
DLLs, Processes, and Threads PSAPI
Console applications Tool Help
Dynamic-link library Windows System Information
Process and thread Registry
Service System information
Synchronization Time
Files and I/O  
File I/O  
File system  
Tape backup  
Graphics Device Interface
Bitmap Metafile
Brush Multiple display monitor
Clipping National language
Color Painting and drawing
Coordinate Path
Device context Pen
Filled shape Printing and print spooler
Font and text Rectangle
Input Method Editor Region
Line and curve Unicode and character set
User Interface
Controls User Input
Button Common dialog box
Combo box Keyboard accelerator
List box Keyboard input
Rich edit control Mouse input
Scroll bar Windowing
Text object model Dialog box
Data Exchange Message and message queue
Atom Multiple-document interface
Clipboard Timer
Resources Window
Cursor Window class
Icon Window procedure
Menu Window property
Resource  
String  
Version information  
Atom Functions
Win32 function Description .NET Framework API
AddAtom Adds a character string to the local atom table. System.String.Intern
Note String is not exactly an atom.
FindAtom Searches the local atom table for the specified character string. System.String.IsInterned
Note String is not exactly an atom.
Alphabetical Win32 Category List
Hierarchical Win32 Category List
Bitmap Functions
Win32 function Description .NET Framework API
AlphaBlend Displays a bitmap with transparent or semitransparent pixels. System.Drawing.Graphics.DrawImage
BitBlt Performs a bit-block transfer. System.Drawing.Graphics.DrawImage
CreateBitmap Creates a bitmap. System.Drawing.Bitmap constructor
Note Creates a DIB, not a DDB.
GetBitmapDimensionEx Gets the dimensions of a bitmap. System.Drawing.Bitmap.Size
GetDIBColorTable Retrieves RGB color values from a DIB section bitmap. System.Drawing.Bitmap.Palette
GetDIBits Copies a bitmap into a buffer. System.Drawing.Bitmap.LockBits
GetPixel Gets the RGB color value of the pixel at a given coordinate. System.Drawing.Bitmap.GetPixel
GradientFill Fills rectangle and triangle structures. System.Drawing.Graphics.FillRectangle(Drawing2D.LinearGradiantBrush, Rectangle)
LoadBitmap Loads a bitmap from a module's executable file. System.Drawing.Bitmap.Bitmap(Type, String)
SetPixel Sets the color for a pixel. System.Drawing.Bitmap.SetPixel
SetPixelV Sets a pixel to the best approximation of a color. System.Drawing.Bitmap.SetPixel(…, Graphics.GetNearestColor(Color))
StretchBlt Copies a bitmap and stretches or compresses it. System.Drawing.Graphics.DrawImage
Alphabetical Win32 Category List
Hierarchical Win32 Category List
Brush Functions
Win32 function Description .NET Framework API
CreateBrushIndirect Creates a brush with a specified style, color, and pattern. Any of the following:
System.Drawing.Brushes
System.Drawing.SolidBrush
System.Drawing.TextureBrush
System.Drawing.Drawing2D.HatchBrush
System.Drawing.Drawing2D.LinearGradientBrush
System.Drawing.Drawing2D.PathGradientBrush
CreateHatchBrush Creates a brush with a hatch pattern and color. System.Drawing.Drawing2D.HatchBrush constructor
CreatePatternBrush 与位图模式创建的画笔。 System.Drawing.TextureBrush 的构造函数
CreateSolidBrush 创建具有一种纯色画笔。 System.Drawing.SolidBrush 的构造函数
GetSysColorBrush 获取对应于颜色索引的画笔的句柄。 System.Drawing.Brushes 类
按字母顺序排列的 Win32 类别列表
分层的 Win32 类别列表
按钮功能
Win32 函数 描述 .NET 框架 API
CheckDlgButton 更改按钮控件的选中状态。 System.Windows.Forms.CheckBox.Checked
CheckRadioButton 向指定的单选按钮组中添加一个复选标记和从组中的所有其他单选按钮中删除复选标记。 System.Windows.Forms.RadioButton.Checked
IsDlgButtonChecked 确定按钮控件是否具有它或是否三状态的按钮控件显示为灰色,检查,旁边的复选标记或没有。 System.Windows.Forms.CheckBox.CheckState
按字母顺序排列的 Win32 类别列表
分层的 Win32 类别列表
剪贴板功能
Win32 函数 描述 .NET 框架 API
CountClipboardFormats 检索当前剪贴板上的不同数据格式的数量。 System.Windows.Forms.DataObject.GetFormats
EnumClipboardFormats 枚举在剪贴板上当前可用的数据格式。 System.Windows.Forms.DataObject.GetFormats
GetClipboardData 从剪贴板中指定的格式检索数据。 System.Windows.Forms.ClipBoard.GetDataObject
IsClipboardFormatAvailable 确定剪贴板是否包含指定格式的数据。 System.Windows.Forms.DataObject.GetDataPresent
RegisterClipboardFormat 注册新的剪贴板格式。 System.Windows.Forms.DataFormats.GetFormat
SetClipboardData 将数据放到剪贴板中指定的剪贴板格式。 System.Windows.Forms.ClipBoard.SetDataObject
按字母顺序排列的 Win32 类别列表
分层的 Win32 类别列表
裁剪功能
Win32 函数 描述 .NET 框架 API
ExcludeClipRect 创建一个新的剪辑区域包含现有的剪辑区域减去指定的矩形。 System.Drawing.Graphics.ExcludeClip
ExtSelectClipRgn 结合当前剪辑区域使用指定的模式的指定的地区。 System.Drawing.Graphics.SetClip
GetClipBox 检索可以在设备当前可见区域周围绘制最紧边界矩形的尺寸。 System.Drawing.Graphics.VisibleClipBounds
GetClipRgn 检索标识当前的应用程序定义的剪辑区域为指定的设备上下文的句柄。 System.Drawing.Graphics.Clip
IntersectClipRect 从当前剪辑区域和指定的矩形的交集创建一个新的剪辑区域。 System.Drawing.Graphics.IntersectClip
OffsetClipRgn 按指定的偏移量移动设备上下文的剪辑区域。 System.Drawing.Graphics.TranslateClip
PtVisible 确定指定的点是否在设备上下文的剪辑区域内。 System.Drawing.Graphics.IsVisible
RectVisible 确定是否指定任何的矩形部分在于设备上下文的剪切区内。 System.Drawing.Graphics.IsVisible
SelectClipPath 选择当前路径作为剪切区域的设备上下文,结合新的区域和任何现有的剪切区域通过使用指定的模式。 System.Drawing.Graphics.SetClip
SelectClipRgn 选择一个地区作为指定的设备上下文当前剪辑区域。 System.Drawing.Graphics.Clip
按字母顺序排列的 Win32 类别列表
分层的 Win32 类别列表
颜色函数
Win32 函数 描述 .NET 框架 API
CreateHalftonePalette 创建半色调调色板为指定的设备上下文。 System.Drawing.Graphics.GetHalftonePalette
CreatePalette 创建逻辑调色板。 System.Drawing.Image.Palette
GetNearestColor 检索一个标识时使用指定的颜色值,将显示系统调色板中的颜色的颜色值。 System.Drawing.Graphics.GetNearestColor
GetPaletteEntries 从给定的逻辑调色板中检索指定的范围的调色板项。 System.Drawing.Image.Palette.Entries
按字母顺序排列的 Win32 类别列表
分层的 Win32 类别列表
组合框功能
Win32 函数 描述 .NET 框架 API
DlgDirListComboBox 组合框中的内容替换指定的子目录和文件的名称。 System.Windows.Forms.ComboBox.Items.AddRange(XXXXXXXXX.Directory.GetFileSystemEntries)
DlgDirSelectComboBoxEx 通过使用DlgDirListComboBox来填充组合框从检索当前所选内容. System.Windows.Forms.ComboBox.SelectedItem
GetComboBoxInfo 检索有关指定的组合框的信息。 System.Windows.Forms.ComboBox属性
按字母顺序排列的 Win32 类别列表
分层的 Win32 类别列表
通用对话框功能
Win32 函数 描述 .NET 框架 API
ChooseColor 创建一个颜色对话框,使用户能够选择一种颜色。 System.Windows.Forms.ColorDialog的构造函数
注意不能通过一个钩子修改对话框。
ChooseFont 创建一个字体对话框,使用户能够选择逻辑字体属性。 System.Windows.Forms.FontDialog的构造函数
注意不能通过一个钩子修改对话框。
GetFileTitle 检索指定文件的名称。 XXXXXXXXXXXXXXXXXXXXXXX
注意并不考虑用户首选项。
GetOpenFileName 创建一个打开的对话框,允许用户指定驱动器、 目录和文件的名称或要打开的文件集。 System.Windows.Forms.OpenFileDialog.ShowDialog
注意不能通过一个钩子修改对话框。
GetSaveFileName 创建一个保存的对话框,允许用户指定的驱动器、 目录和要保存的文件的名称。 System.Windows.Forms.SaveFileDialog.ShowDialog
注意不能通过一个钩子修改对话框。
PageSetupDlg 创建一个页面设置对话框,使用户能够指定打印页的属性。 System.Windows.Forms.PageSetupDialog.ShowDialog
注意不能通过一个钩子修改对话框。
PrintDlg 显示打印对话框。 System.Windows.Forms.PrintDialog.ShowDialog
注意不能通过一个钩子修改对话框。
按字母顺序排列的 Win32 类别列表
分层的 Win32 类别列表
控制台的功能
Win32 函数 描述 .NET 框架 API
GetStdHandle 检索的标准输入、 标准输出或标准错误设备句柄。 System.Console.OpenStandardIn
System.Console.OpenStandardOut
System.Console.OpenStandardError
ReadConsole 从控制台输入缓冲区中读取字符输入和从缓冲区中删除它。 System.Console.Read
SetStdHandle 设置为标准输入、 标准输出或标准错误设备句柄。 System.Console.SetIn
System.Console.SetOut
System.Console.SetError
WriteConsole 将一个字符的字符串写入到控制台屏幕缓冲区开始在当前光标位置。 System.Console.Write
按字母顺序排列的 Win32 类别列表
分层的 Win32 类别列表
协调职能
Win32 函数 描述 .NET 框架 API
ClientToScreen 指定点的客户区坐标转换成屏幕坐标。 System.Windows.Forms.Form.PointToScreen
CombineTransform 连接两个世界空间页面空间转换。 System.Drawing.Drawing2D.Matrix.Multiply
DPtoLP 将设备坐标转换为逻辑坐标。 System.Drawing.Graphics.TransformPoints
GetMapMode 检索当前映射模式。 System.Drawing.Graphics.PageUnit
GetWindowExtEx 检索的 x 范围和 y 范围指定的设备上下文的窗口。 System.Drawing.Graphics.PageScale
GetWindowOrgEx 检索的 x 坐标和 y 坐标的窗口原点为指定的设备上下文。 System.Drawing.Graphics.Transform.OffsetX
System.Drawing.Graphics.Transform.OffsetY
GetWorldTransform 检索当前世界空间页面空间转换。 System.Drawing.Graphics.Transform
LPtoDP 将逻辑坐标转换成设备坐标。 System.Drawing.Graphics.TransformPoints
ModifyWorldTransform 更改为使用指定的模式的设备上下文的世界变换。 System.Drawing.Graphics.Transform
OffsetViewportOrgEx 修改使用指定的水平和垂直偏移量的设备上下文的视口原点。 System.Drawing.Graphics.TranslateTransform
OffsetWindowOrgEx 修改窗口原点为使用指定的水平和垂直偏移量的设备上下文。 System.Drawing.Graphics.TranslateTransform
ScreenToClient 将转换屏幕坐标指定点的屏幕坐标。 System.Windows.Forms.Form.PointToClient
SetMapMode 设置指定的设备上下文的映射模式。 System.Drawing.Graphics.PageUnit
SetWindowExtEx 通过使用指定的值设置水平和垂直扩展盘区的窗口的设备上下文。 System.Drawing.Graphics.PageScale
Drawing.Graphics.ScaleTransform
SetWindowOrgEx 指定哪个窗口点映射到视口原点 (0,0)。 System.Drawing.Graphics.TranslateTransform
SetWorldTransform 设置世界空间和页面空间为指定的设备上下文之间的二维线性变换。 System.Drawing.Graphics.Transform
按字母顺序排列的 Win32 类别列表
分层的 Win32 类别列表
游标函数
Win32 函数 描述 .NET 框架 API
ClipCursor 仅限于将光标移动到屏幕上的矩形区域。 System.Windows.Forms.Cursor.Clip
CopyCursor 复制指定的游标。 System.Windows.Forms.Cursor.CopyHandle
CreateCursor 创建具有指定的大小、 位模式和热点的游标。 System.Windows.Forms.Cursor的构造函数
System.Windows.Forms.Cursor.Size
System.Windows.Forms.Cursor.Position
DestroyCursor 销毁游标。 System.Windows.Forms.Cursor.Dispose
GetClipCursor 检索光标限于的矩形区域的屏幕坐标。 System.Windows.Forms.Cursor.Clip
GetCursor 检索当前光标句柄。 System.Windows.Forms.Cursor.Handle
GetCursorInfo 检索有关全局游标的信息。 System.Windows.Forms.Cursor.Position
System.Windows.Forms.SystemInformation.CursorSize
大体意思就是 检索光标的位置。 System.Windows.Forms.Control.MousePosition
System.Windows.Forms.Cursor.Position
LoadCursor 从可执行文件加载光标资源。 System.Windows.Forms.Cursor的构造函数
LoadCursorFromFile 创建基于数据包含在一个文件中的光标。 System.Windows.Forms.Cursor的构造函数
要 设置光标形状。 System.Windows.Forms.Cursor.Current
SetCursorPos 将光标移动到指定的屏幕坐标。 System.Windows.Forms.Cursor.Position
ShowCursor 显示或隐藏光标。 System.Windows.Forms.Cursor.Show
Windows.Forms.Cursor.Hide
按字母顺序排列的 Win32 类别列表
分层的 Win32 类别列表
调试功能
Win32 函数 描述 .NET 框架 API
终止 意味着允许将调试器附加到活动的进程并调试它。 System.Diagnostics.Debugger.Launch
DebugBreak 导致当前流程中出现断点异常。 System.Diagnostics.Debugger.Break
IsDebuggerPresent 确定是否调用进程正在运行的上下文中调试器。 System.Diagnostics.Debugger.IsAttached
一个 将字符串发送到调试器的显示。 System.Diagnostics.Debugger.Log
按字母顺序排列的 Win32 类别列表
分层的 Win32 类别列表
设备上下文函数
Win32 函数 描述 .NET 框架 API
ChangeDisplaySettings 更改默认显示设备的设置为指定的图形模式。 System.Management.ManagementClass("Win32_VideoController")
ChangeDisplaySettingsEx 指定的显示设备的设置更改为指定的图形模式。 System.Management.ManagementClass("Win32_VideoController")
DeviceCapabilities 检索打印机设备驱动程序的功能。 System.Drawing.Printing.PageSettings
System.Drawing.Printing.PrinterSettings
EnumDisplayDevices 在系统中检索有关显示设备的信息。 System.Management.ManagementClass("Win32_DesktopMonitor")
EnumDisplaySettings 检索信息的显示设备的图形模式之一。 System.Management.ManagementClass("CIM_VideoControllerResolution")
GetDC 检索指定窗口的客户区域或整个屏幕的显示设备上下文的句柄。 若要检索一个图形对象,请使用下列任一操作:
System.Drawing.Graphics.FromHwnd(Windows.Forms.Control.Handle)
System.Drawing.Printing.PrintPageEventArgs.Graphics
System.Windows.Forms.PaintEventArgs.Graphics
要显式检索一个句柄,请使用以下方法:
System.Drawing.Graphics.GetHdc
GetDCEx 检索指定窗口的客户区域或整个屏幕的显示设备上下文的句柄。 若要检索一个图形对象,请使用下列任一操作:
System.Drawing.Graphics.FromHwnd(Windows.Forms.Control.Handle)
System.Drawing.Printing.PrintPageEventArgs.Graphics
System.Windows.Forms.PaintEventArgs.Graphics
要显式检索一个句柄,请使用以下方法:
System.Drawing.Graphics.GetHdc
GetDeviceCaps 检索指定的设备的特定于设备的信息。 System.Drawing.Graphics属性
System.Drawing.Printing.PrinterSettings
System.Management类别
GetLayout 检索设备上下文的布局。 System.Windows.Forms.Control.RightToLeft
GetObject 检索指定的图形对象的信息。 System.Drawing.Bitmap属性
System.Drawing.Brush属性
System.Drawing.Font属性
System.Drawing.Pen属性
GetObjectType 检索指定对象的类型。 System.Object.GetType
GetStockObject 检索之一股票笔、 笔刷、 字体或调色板的句柄。 System.Drawing.Brushes
System.Drawing.Pens
ReleaseDC 释放设备上下文,释放它使用由其他应用程序。 System.Drawing.Graphics.ReleaseHdc
SetLayout 设置设备上下文的版式。 System.Windows.Forms.Control.RightToLeft = System.Windows.Forms.RightToLeft.Yes
按字母顺序排列的 Win32 类别列表
分层的 Win32 类别列表
对话框功能
Win32 函数 描述 .NET 框架 API
CreateDialog 从对话框模板资源创建一个模态的对话框。 System.Windows.Forms.Form的构造函数
System.Windows.Forms.Form属性
CreateDialogIndirect 从内存中的对话框模板创建无模式对话框。 System.Windows.Forms.Form的构造函数
System.Windows.Forms.Form属性
DefDlgProc 调用默认对话框窗口过程提供默认处理带有私人窗口类的对话框不会处理任何窗口消息。 System.Windows.Forms.Form.DefWndProc
DialogBox 从对话框模板资源创建一个模态的对话框。 System.Windows.Forms.Form的构造函数
System.Windows.Forms.Form.ShowDialog
DialogBoxIndirect 从内存中的对话框模板创建一个模态的对话框。 System.Windows.Forms.Form的构造函数
System.Windows.Forms.Form.ShowDialog
DialogProc 应用程序定义的回调函数,用CreateDialog和DialogBox家庭的功能。 System.Windows.Forms.Form.WndProc
EndDialog 摧毁一个模态的对话框。 System.Windows.Forms.Form.Close
GetDlgCtrlID 检索指定的控件的标识符。 System.Windows.Forms.Form.Controls.IndexOf
GetDlgItem 检索指定的对话框中的控件的句柄。 System.Windows.Forms.Form.Controls.Item
GetDlgItemInt 在对话框中的指定控件的文本转化为整数值。 System.Int32.Parse(Form.Text)
System.UInt32.Parse(Form.Text)
GetDlgItemText 检索标题或与在对话框中的控件关联的文本。 [System.Windows.Forms.Form.Controls.Item]。文本
GetNextDlgGroupItem 检索在前面 (或后面) 指定的控件的控件组中的第一个控件的句柄。 循环访问控件:
System.Windows.Forms.Form.Controls。项目
记得要确定控件是否积极通过引用控件的启用和可见的属性。
注意控件中的顺序可能不是以相同的顺序, GetNextDlgGroupItem呈现控件。
GetNextDlgTabItem 检索具有 WS_TABSTOP 风格的前面 (或后面) 指定的控件的第一个控件的句柄。 循环访问控件:
System.Windows.Forms.Form.Controls。项目
记得要确定控件是否积极通过引用启用,可见, ,该控件的TabStop属性。
注意控件中的顺序可能不是以相同的顺序, GetNextDlgGroupItem呈现控件。
消息框 创建、 显示,并经营一个消息框。 System.Windows.Forms.MessageBox.Show
MessageBoxEx 创建、 显示,并经营一个消息框。 System.Windows.Forms.MessageBox.Show
MessageBoxIndirect 创建、 显示,并经营一个消息框。 System.Windows.Forms.MessageBox.Show
也 将消息发送到对话框中指定的控件。 System.Windows.Forms.Form.WndProc(System.Windows.Forms.Message)
SetDlgItemInt 向指定的整数值的字符串表示形式的对话框中设置控件的文本。 System.Windows.Forms.Control.Text = System.Int32.ToString
SetDlgItemText 设置对话框中的标题或文本的控件。 System.Windows.Forms.Control.Text
按字母顺序排列的 Win32 类别列表
分层的 Win32 类别列表
动态链接库函数
Win32 函数 描述 .NET 框架 API
GetModuleFileName 检索包含指定的模块的文件的完整路径和文件名称。 System.Reflection.Module.FullyQualifiedName
GetModuleHandle 检索指定的模块的模块句柄。 System.Runtime.InteropServices.Marshal.GetHINSTANCE
LoadLibrary 将指定的可执行模块映射到调用进程的地址空间。 以下任一操作:
System.Reflection.Assembly.Load
System.Reflection.Assembly.LoadFrom
System.Reflection.Assembly.LoadWithPartialName
LoadLibraryEx 将指定的可执行模块映射到调用进程的地址空间。 以下任一操作:
System.Reflection.Assembly.Load
System.Reflection.Assembly.LoadFrom
System.Reflection.Assembly.LoadWithPartialName
按字母顺序排列的 Win32 类别列表
分层的 Win32 类别列表
错误处理函数
Win32 函数 描述 .NET 框架 API
FatalAppExit 显示一个消息框,关闭该消息框时终止应用程序。 System.Windows.Forms.MessageBox.Show
System.Diagnostics.Process.Kill
时出错 检索调用线程最后错误代码值。 System.Runtime.InteropServices.Marshall.GetLastWin32Error
按字母顺序排列的 Win32 类别列表
分层的 Win32 类别列表
事件日志记录功能
Win32 函数 描述 .NET 框架 API
ClearEventLog 清除指定的事件日志,并可以选择将当前日志文件的副本保存到一个备份文件。 System.Diagnostics.EventLog.Clear
CloseEventLog 关闭指定的事件日志读取的句柄。 System.Diagnostics.EventLog.Close
DeregisterEventSource 关闭指定的事件日志写入句柄。 System.Diagnostics.EventLog.DeleteEventSource
GetNumberOfEventLogRecords 检索指定的事件日志中的记录数。 System.Diagnostics.EventLog.Entries.Count
GetOldestEventLogRecord 检索指定的事件日志中的最古老记录的绝对记录号。 ] System.Diagnostics.EventLogEntryCollection[0
System.Diagnostics.EventLogEntry.TimeWritten
NotifyChangeEventLog 使应用程序能够向指定的事件日志文件中写入事件时接收通知。 System.Diagnostics.EventLog.EnableRaisingEvents
OpenBackupEventLog 打开备份事件日志的句柄。 System.Diagnostics.EventLog的构造函数
OpenEventLog 打开事件日志的句柄。 System.Diagnostics.EventLog的构造函数
ReadEventLog 从指定的事件日志中读取条目整体数量。 System.Diagnostics.EventLogEntryCollection.CopyTo
RegisterEventSource 检索事件日志注册的句柄。 System.Diagnostics.EventLog.CreateEventSource
ReportEvent 写在结束了指定的事件日志条目。 System.Diagnostics.EventLog.WriteEntry
按字母顺序排列的 Win32 类别列表
分层的 Win32 类别列表
文件 I/O 函数
Win32 函数 描述 .NET 框架 API
CopyFile 将现有文件复制到一个新的文件。 下列操作之一:
XXXXXXXXX.File.Copy
IO。FileInfo.CopyTo
CreateDirectory 创建一个新的目录。 以下任一操作:
XXXXXXXXX.Directory.CreateDirectory
XXXXXXXXX.Directory.CreateSubdirectory
XXXXXXXXX.DirectoryInfo.Create
CreateFile 创建或打开一个文件对象。 XXXXXXXXX.File类 和XXXXXXXXX.FileInfo类
DeleteFile 删除一个现有的文件。 以下任一操作:
XXXXXXXXX.Directory.Delete
XXXXXXXXX.DirectoryInfo.Delete
XXXXXXXXX.File.Delete
XXXXXXXXX.FileInfo.Delete
FileIOCompletionRoutine 用ReadFileEx和WriteFileEx应用程序定义的回调函数. 用户定义。
FindClose 关闭指定的搜索句柄。 请参阅目录中和FindNextFile
FindCloseChangeNotification 停止更改通知处理监测。 XXXXXXXXX.FileSystemWatcher.EnableRaisingEvents
FindFirstChangeNotification 创建一个更改通知句柄。 XXXXXXXXX.FileSystemWatcher类
目录中 搜索其名称与指定的文件名称匹配的文件的目录。 以下任一操作:
XXXXXXXXX.Directory.Exists
XXXXXXXXX.Directory.GetDirectories
XXXXXXXXX.Directory.GetFileSystemEntries
XXXXXXXXX.Directory.GetFiles
XXXXXXXXX.DirectoryInfo.Exists
XXXXXXXXX.DirectoryInfo.GetDirectories
XXXXXXXXX.DirectoryInfo.GetFileSystemInfos
XXXXXXXXX.DirectoryInfo.GetFiles
XXXXXXXXX.File.Exists
XXXXXXXXX.FileInfo.Exists
FindFirstFileEx 搜索其名称和属性与指定的文件名称匹配的文件的目录。 目录中相同
FindNextChangeNotification 操作系统信号更改通知的请求处理下一次它会检测到适当的更改。 XXXXXXXXX.FileSystemWatcher类
FindNextFile 继续执行文件搜索。 以下任一操作:
XXXXXXXXX.Directory.GetDirectories
XXXXXXXXX.Directory.GetFileSystemEntries
XXXXXXXXX.Directory.GetFiles
XXXXXXXXX.DirectoryInfo.GetDirectories
XXXXXXXXX.DirectoryInfo.GetFileSystemInfos
XXXXXXXXX.DirectoryInfo.GetFiles
FlushFileBuffers 清除指定的文件的缓冲区,使得所有缓冲的数据都写入到文件。 XXXXXXXXX.FileStream.Flush
GetBinaryType 确定文件是否可执行文件。 XXXXXXXXX.FileSystemInfo.Extension
注意只有操作字符串;不检查文件系统。
GetCurrentDirectory 检索当前进程的当前目录。 XXXXXXXXX.Directory.GetCurrentDirectory
GetDriveType 确定磁盘驱动器是否可移动,固定,CD-ROM,RAM 磁盘或网络驱动器。 System.Management.ManagementObject("Win32_LogicalDisk.DeviceID=\"C:\"")。获取
System.Management.ManagementObject.Properties
XXXXXXXXX.DriveInfo.DriveType
GetFileAttributes 检索指定的文件或目录的属性。 以下任一操作:
XXXXXXXXX.Directory.GetAttributes
XXXXXXXXX.File.GetAttributes
XXXXXXXXX.FileSystemInfo.Attributes
GetFileAttributesEx 检索指定的文件或目录的属性。 以下任一操作:
XXXXXXXXX.Directory.GetAttributes
XXXXXXXXX.File.GetAttributes
XXXXXXXXX.FileSystemInfo.Attributes
GetFileInformationByHandle 检索指定文件的文件信息。 XXXXXXXXX.FileInfo属性
GetFileSize 检索指定文件的大小。 下列操作之一:
XXXXXXXXX.FileInfo.Length
XXXXXXXXX.FileStream.Length
GetFileSizeEx 检索指定文件的大小。 下列操作之一:
XXXXXXXXX.FileInfo.Length
XXXXXXXXX.FileStream.Length
GetFullPathName 检索指定文件的完整路径和文件名称。 下列操作之一:
XXXXXXXXX.FileSystemInfo.FullName
XXXXXXXXX.Path.GetFullPath
GetTempFileName 创建一个临时文件的名称。 XXXXXXXXX.Path.GetTempFileName
GetTempPath 检索指定为临时文件的目录的路径。 XXXXXXXXX.Path.GetTempPath
文件 锁定一个区域中打开的文件。 XXXXXXXXX.FileStream.Lock
LockFileEx 锁定用于共享或独占访问打开的文件中的区域。 XXXXXXXXX.FileStream.Lock
MoveFile 移动现有的文件或目录。 以下任一操作:
XXXXXXXXX.Directory.Move
XXXXXXXXX.DirectoryInfo.MoveTo
XXXXXXXXX.File.Move
XXXXXXXXX.FileInfo.MoveTo
ReadDirectoryChangesW 检索信息描述目录内发生的变化。 XXXXXXXXX.FileSystemWatcher类
ReadFile 从一个文件中,在指定的位置开始读取数据。 以下任一操作:
XXXXXXXXX.FileStream.BeginRead/EndRead
XXXXXXXXX.FileStream.Read
XXXXXXXXX.FileStream.ReadByte
ReadFileEx 异步读取文件中的数据。 XXXXXXXXX.FileStream.BeginRead/EndRead
RemoveDirectory 删除一个现有的空目录。 下列操作之一:
XXXXXXXXX.Directory.Delete
XXXXXXXXX.DirectoryInfo.Delete
SearchPath 搜索指定的文件。 以下任一操作:
XXXXXXXXX.Directory.Exists
XXXXXXXXX.Directory.GetDirectories
XXXXXXXXX.Directory.GetFileSystemEntries
XXXXXXXXX.Directory.GetFiles
XXXXXXXXX.DirectoryInfo.Exists
XXXXXXXXX.DirectoryInfo.GetDirectories
XXXXXXXXX.DirectoryInfo.GetFileSystemInfos
XXXXXXXXX.DirectoryInfo.GetFiles
XXXXXXXXX.File.Exists
XXXXXXXXX.FileInfo.Exists
SetCurrentDirectory 更改当前进程的当前目录。 XXXXXXXXX.Directory.SetCurrentDirectory
SetEndOfFile 移动指定文件的文件结束位置。 XXXXXXXXX.FileStream.SetLength
SetFileAttributes 设置文件的属性。 XXXXXXXXX.File.SetAttributes
SetFilePointer 将打开的文件的文件指针。 下列操作之一:
XXXXXXXXX.FileStream.Position
XXXXXXXXX.FileStream.Seek
SetFilePointerEx 将打开的文件的文件指针。 下列操作之一:
XXXXXXXXX.FileStream.Position
XXXXXXXXX.FileStream.Seek
UnlockFile 解锁以前锁定的区域,在打开的文件。 XXXXXXXXX.FileStream.Unlock
UnlockFileEx 解锁以前锁定的区域,在打开的文件。 XXXXXXXXX.FileStream.Unlock
WriteFile 将数据写入到一个文件。 以下任一操作:
XXXXXXXXX.FileStream.BeginWrite和EndWrite
XXXXXXXXX.FileStream.Write
XXXXXXXXX.FileStream.WriteByte
XXXXXXXXX.BinaryWriter.Write
WriteFileEx 以异步方式将数据写入一个文件。 XXXXXXXXX.FileStream.BeginWrite和EndWrite
按字母顺序排列的 Win32 类别列表
分层的 Win32 类别列表
文件系统功能
与文件系统一起使用:
Win32 函数 描述 .NET 框架 API
GetDiskFreeSpace 检索有关指定的磁盘,包括磁盘上的可用空间量的信息。 System.Management.ManagementObject("Win32_LogicalDisk.DeviceID=\"C:\"")。获取
System.Management.ManagementObject.Properties
GetDiskFreeSpaceEx 检索有关指定的磁盘,包括磁盘上的可用空间量的信息。 System.Management.ManagementObject("Win32_LogicalDisk.DeviceID=\"C:\"")。获取
System.Management.ManagementObject.Properties
GetLogicalDriveStrings 指定系统中的有效驱动器的字符串填充缓冲区。 下列操作之一:
System.Environment.GetLogicalDrives
XXXXXXXXX.Directory.GetLogicalDrives
使用加密的文件系统:
Win32 函数 描述 .NET 框架 API
DecryptFile 解密加密的文件或目录。 System.Security.Cryptography.CryptoStream.Read
EncryptFile 加密的文件或目录。 System.Security.Cryptography.CryptoStream.Write
FileEncryptionStatus 检索指定文件的加密状态。 XXXXXXXXX.FileSystemInfo.Attributes
按字母顺序排列的 Win32 类别列表
分层的 Win32 类别列表
填充的形状函数
Win32 函数 描述 .NET 框架 API
和弦 绘制椭圆和线段为界的范围。 System.Drawing.Graphics.DrawArc
System.Drawing.Graphics.DrawLine
椭圆 绘制一个椭圆。 System.Drawing.Graphics.DrawEllipse
System.Drawing.Graphics.FillEllipse
FillRect 填充矩形使用的画笔。 System.Drawing.Graphics.FillRectangle
InvertRect 反转中一个矩形的像素的颜色值。 System.Windows.Forms.ControlPaint.DrawReversibleFrame
System.Windows.Forms.ControlPaint.DrawReversibleLine
馅饼 绘制椭圆及两个子午线为界的饼形图。 System.Drawing.Graphics.DrawPie
System.Drawing.Graphics.FillPie
多边形 绘制多边形。 System.Drawing.Graphics.DrawPolygon
System.Drawing.Graphics.FillPolygon
矩形 绘制一个矩形。 System.Drawing.Graphics.DrawRectangle
System.Drawing.Graphics.FillRectangle
RoundRect 绘制圆角矩形。 System.Drawing.Drawing2D.GraphicsPath.AddLines
System.Drawing.Pen.LineJoin = System.Drawing.Pen.LineJoin.Round
System.Drawing.Graphics.DrawPath
System.Drawing.Graphics.FillPath
按字母顺序排列的 Win32 类别列表
分层的 Win32 类别列表
字体和文本函数
Win32 函数 描述 .NET 框架 API
AddFontMemResourceEx 将嵌入的字体添加到系统字体表。 System.Drawing.Text.PrivateFontCollection.AddMemoryFont
AddFontResourceEx 将私人或非可枚举的字体添加到系统字体表。 System.Drawing.Text.PrivateFontCollection.AddFontFile
CreateFont 创建逻辑字体。 System.Drawing.Font的构造函数
DrawText 绘制格式化文本的矩形中。 System.Drawing.Graphics.DrawString
DrawTextEx 绘制格式化文本的矩形中。 System.Drawing.Graphics.DrawString
EnumFontFamExProc 到过程字体与EnumFontFamiliesEx一起使用的应用程序定义的回调函数。 System.Drawing.Text.InstalledFontCollection.Families
EnumFontFamiliesEx 枚举所有的字体在某些特色的体系。 System.Drawing.Text.InstalledFontCollection.Families
ExtTextOut 绘制一个字符的字符串。 System.Drawing.Graphics.DrawString
GetCharABCWidths 从 TrueType 字体获取连续字符的宽度。 获取字符的区域 [] :
System.Drawing.Graphics.MeasureCharacterRanges
确定每个区域的宽度:
System.Drawing.Rectangle.Round(Region.GetBounds)。宽度
GetCharABCWidthsFloat 从当前字体获取连续字符的宽度。 获取字符的区域 [] :
System.Drawing.Graphics.MeasureCharacterRanges
确定每个区域的宽度:
System.Drawing.Region.GetBounds.Width
GetCharWidth32 从当前字体获取连续字符的宽度。 获取字符的区域 [] :
System.Drawing.Graphics.MeasureCharacterRanges
确定每个区域的宽度:
System.Drawing.Rectangle.Round(Region.GetBounds)。宽度
GetCharWidthFloat 从当前字体获取分数的连续的字符宽度。 获取字符的区域 [] :
System.Drawing.Graphics.MeasureCharacterRanges
确定每个区域的宽度:
System.Drawing.Region.GetBounds.Width
GetOutlineTextMetrics 获取文本度量的 TrueType 字体。 System.Drawing.Font属性
GetTabbedTextExtent 计算宽度和高度的字符的字符串,包括选项卡。 System.Drawing.Graphics.MeasureString
GetTextAlign 获取设备上下文的文本对齐方式设置。 System.Drawing.StringFormat.Alignment
System.Drawing.StringFormat.LineAlignment
GetTextColor 获取用于设备上下文的文本颜色。 System.Drawing.SolidBrush.Color
GetTextExtentPoint32 计算宽度和高度的文本字符串。 System.Drawing.Graphics.MeasureString
GetTextFace 在设备上下文中获取选定的字体的名称。 XXXXXXXXXXXXXXXXXXXXXXXX
GetTextMetrics 字体的度量值填充缓冲区。 System.Drawing.Font属性
RemoveFontMemResourceEx 删除其源嵌入在文档中从系统字体表的字体。 System.Drawing.Text.PrivateFontCollection.Dispose
RemoveFontResourceEx 从系统字体表中删除私人或非可枚举的字体。 System.Drawing.Text.PrivateFontCollection.Dispose
SetTextAlign 设置设备上下文的文本对齐方式标志。 System.Drawing.StringFormat.Alignment
System.Drawing.StringFormat.LineAlignment
SetTextColor 设置设备上下文的文本颜色。 下列操作之一:
System.Drawing.Brushes
System.Drawing.SolidBrush.SolidBrush(Color)
TabbedTextOut 写在一个位置,扩展指定的值为制表符字符串。 System.Drawing.Graphics.DrawString使用System.Drawing.StringFormat.SetTabStops
TextOut 写入位置处的字符字符串。 System.Drawing.Graphics.DrawString
按字母顺序排列的 Win32 类别列表
分层的 Win32 类别列表
图标功能
Win32 函数 描述 .NET 框架 API
复制图标 从另一个模块复制图标。 System.Drawing.Icon.FromHandle
CreateIcon 创建具有指定的大小、 颜色和位模式的图标。 System.Drawing.Icon的构造函数
DestroyIcon 毁坏的图标。 System.Drawing.Icon.Dispose
DrawIcon 绘制图标。 System.Drawing.Graphics.DrawIcon
DuplicateIcon 创建一个指定图标的一个副本。 System.Drawing.Icon.Clone
LoadIcon 从与应用程序关联的可执行文件加载图标。 System.Drawing.Icon的构造函数
按字母顺序排列的 Win32 类别列表
分层的 Win32 类别列表
输入法编辑器功能
Win32 函数 描述 .NET 框架 API
ImmAssociateContext 将指定的输入的上下文与指定窗口相关联。 下列操作之一:
System.Windows.Forms.Control.DefaultImeMode
System.Windows.Forms.Control.ImeMode
ImmAssociateContextEx 更改输入的法上下文和指定的窗口或其子之间的关联。 以下任一操作:
System.Windows.Forms.Control.DefaultImeMode
System.Windows.Forms.Control.ImeMode
System.Windows.Forms.Control.ResetImeMode
ImmDisableIME 禁用输入法编辑器。 System.Windows.Forms.Control.ImeMode = System.Windows.Forms.ImeMode.Disable
ImmGetContext 检索与指定的窗口相关联的输入的上下文。 System.Windows.Forms.Control.ImeMode
按字母顺序排列的 Win32 类别列表
分层的 Win32 类别列表
键盘加速器功能
Win32 函数 描述 .NET 框架 API
TranslateAccelerator 处理菜单命令的快捷键。 System.Windows.Forms.MenuItem.Shortcut
按字母顺序排列的 Win32 类别列表
分层的 Win32 类别列表
键盘输入的函数
Win32 函数 描述 .NET 框架 API
ActivateKeyboardLayout 设置调用线程或当前进程的输入法区域设置标识符。 System.Windows.Forms.InputLanguage.CurrentInputLanguage
EnableWindow 启用或禁用鼠标和键盘输入到指定的窗口或控件。 System.Windows.Forms.Control.Enabled
对话框正在 检索附加到调用线程的消息队列的活动窗口的窗口句柄。 System.Windows.Forms.Form.ActiveForm
GetFocus 检索具有键盘焦点的窗口的句柄。 [System.Windows.Forms.Control.Controls]。聚焦
GetKeyboardLayout 检索指定的线程的活动的输入法区域设置标识符。 System.Windows.Forms.InputLanguage.CurrentInputLanguage
GetKeyboardLayoutList 检索对应于当前的输入法区域设置集系统中的输入法区域设置标识符。 System.Windows.Forms.InputLanguage.InstalledInputLanguages
GetKeyboardLayoutName 检索活动的输入法区域设置标识符的名称。 System.Windows.Forms.InputLanguage.LayoutName
GetKeyNameText 检索一个字符串,表示密钥的名称。 System.Windows.Forms.KeyEventArgs.KeyCode.ToString
IsWindowEnabled 确定指定的窗口是否启用鼠标和键盘输入。 System.Windows.Forms.Form.Enabled
SetActiveWindow 激活窗口。 System.Windows.Forms.Activate
SetFocus 将键盘焦点设置到指定窗口。 System.Windows.Forms.Form.Focus
运行 将指定的虚拟键码和键盘状态到相应的字符或字符的转换。 System.Windows.Forms.KeyPressEventArgs.KeyChar
ToUnicode 将指定的虚拟键码和键盘状态到相应的 Unicode 字符或字符的转换。 System.Windows.Forms.KeyPressEventArgs.KeyChar
按字母顺序排列的 Win32 类别列表
分层的 Win32 类别列表
直线和曲线函数
Win32 函数 描述 .NET 框架 API
AngleArc 绘制一条线段和圆弧。 System.Drawing.Graphics.DrawLine
System.Drawing.Graphics.DrawArc
电弧 绘制椭圆弧。 System.Drawing.Graphics.DrawArc
ArcTo 绘制椭圆弧。 System.Drawing.Graphics.DrawArc
线条 绘制一条线从当前位置到,但不是包括指定的点。 System.Drawing.Graphics.DrawLine
PolyBezier 绘制一个或更多 B & x00E9; 的贝塞尔曲线。 System.Drawing.Graphics.DrawBeziers
折线 通过连接指定数组中的点来绘制一系列直线段。 System.Drawing.Graphics.DrawLines
按字母顺序排列的 Win32 类别列表
分层的 Win32 类别列表
列表框的功能
Win32 函数 描述 .NET 框架 API
DlgDirList 列表框中的内容替换子目录和指定的目录中的文件的名称。 System.Windows.Forms.ListBox.Items.AddRange(XXXXXXXXX.Directory.GetFileSystemEntries)
DlgDirSelectEx 检索当前所选内容从单一选择列表框。 System.Windows.Forms.ListBox.SelectedItem
GetListBoxInfo 检索有关指定的列表框中的信息。 System.Windows.Forms.ListBox属性
按字母顺序排列的 Win32 类别列表
分层的 Win32 类别列表
内存管理函数
内存管理函数:
Win32 函数 描述 .NET 框架 API
GlobalMemoryStatus 获取有关系统当前使用的物理和虚拟内存的信息。 System.Management.ManagementClass("Win32_OperatingSystem")
System.Management.ManagementClass.GetInstances
System.Management.ManagementObject.Properties
GlobalMemoryStatusEx 获取有关系统当前使用的物理和虚拟内存的信息。 System.Management.ManagementClass("Win32_OperatingSystem")
System.Management.ManagementClass.GetInstances
System.Management.ManagementObject.Properties
全球和地方的职能:
Win32 函数 描述 .NET 框架 API
GlobalAlloc 从堆中分配指定的字节数。 System.Runtime.InteropServices.Marshall.AllocHGlobal
GlobalFree 释放指定的全局内存对象。 System.Runtime.InteropServices.Marshall.FreeHGlobal
GlobalReAlloc 更改大小或指定的全局内存对象的属性。 System.Runtime.InteropServices.Marshall.ReAllocHGlobal
LocalAlloc 从堆中分配指定的字节数。 System.Runtime.InteropServices.Marshall.AllocHGlobal
LocalFree 释放指定的本地内存对象。 System.Runtime.InteropServices.Marshall.FreeHGlobal
LocalReAlloc 更改大小或指定的本地内存对象的属性。 System.Runtime.InteropServices.Marshall.ReAllocHGlobal
按字母顺序排列的 Win32 类别列表
分层的 Win32 类别列表
菜单功能
Win32 函数 说明 .NET 框架 API
AppendMenu 将项追加到各种菜单和子菜单。 System.Windows.Forms.Menu.MenuItemCollection.Add
CheckMenuItem 检查或清除菜单项。 System.Windows.Forms.MenuItem.Checked
CheckMenuRadioItem 检查指定的菜单项,并使其无线电项目。 System.Windows.Forms.MenuItem.RadioCheck
CreateMenu 创建一个菜单。 以下任一操作:
System.Windows.Forms.ContextMenu构造函数
System.Windows.Forms.MainMenu构造函数
System.Windows.Forms.Menu.MenuItemCollection构造函数
CreatePopupMenu 创建下拉式菜单、 子菜单或快捷菜单。 下列操作之一:
System.Windows.Forms.ContextMenu构造函数
System.Windows.Forms.Menu.MenuItemCollection构造函数
DeleteMenu 删除菜单项。 System.Windows.Forms.Menu.MenuItemCollection.Remove
DestroyMenu 删除菜单。 System.Windows.Forms.Menu.Dispose
EnableMenuItem 启用、 禁用,或灰色菜单项。 System.Windows.Forms.MenuItem.Enabled
GetMenu 获取菜单的句柄。 System.Windows.Forms.Form.Menu.Handle
GetMenuBarInfo 获取有关菜单栏的信息。 System.Windows.Forms.Form.Menu
GetMenuCheckMarkDimensions 返回默认选中标记位图的尺寸。 System.Windows.Forms.SystemInformation.MenuCheckSize
GetMenuDefaultItem 获取默认菜单项在菜单上。 System.Windows.Forms.MenuItem.DefaultItem
GetMenuInfo 获取有关菜单的信息。 System.Windows.Forms.MenuItem属性
GetMenuItemCount 获取菜单中的项的数目。 System.Windows.Forms.Menu.MenuItemCollection.Count
GetMenuItemID 获取菜单项的标识符。 System.Windows.Forms.MenuItem.MenuID
GetMenuItemInfo 获取有关菜单项目的详细信息。 System.Windows.Forms.MenuItem属性
GetMenuItemRect 获取菜单项的边框。 System.Windows.Forms.MenuItem.DrawItem
System.Windows.Forms.DrawItemEventArgs.Bounds
GetMenuState 获取与菜单项关联的菜单标志。 System.Windows.Forms.MenuItem.Break
System.Windows.Forms.MenuItem.BarBreak
System.Windows.Forms.MenuItem.Checked
System.Windows.Forms.MenuItem.Enabled
System.Windows.Forms.MenuItem.OwnerDraw
GetMenuString 将一个菜单项的文本字符串复制到缓冲区中。 System.Windows.Forms.MenuItem.Text
GetSubMenu 获取下拉菜单或子菜单中激活一个菜单项的句柄。 [System.Windows.Forms.Menu.MenuItems]。句柄
InsertMenu 菜单中插入一个新的菜单项。 System.Windows.Forms.Menu.MenuItemCollection.Add
InsertMenuItem 在菜单中插入一个新的菜单项。 System.Windows.Forms.Menu.MenuItemCollection.Add
ModifyMenu 更改现有的菜单项。 System.Windows.Forms.MenuItem.Break
System.Windows.Forms.MenuItem.BarBreak
System.Windows.Forms.MenuItem.Checked
System.Windows.Forms.MenuItem.Enabled
System.Windows.Forms.MenuItem.OwnerDraw
System.Windows.Forms.MenuItem.Text
RemoveMenu 删除菜单项或子菜单中的选项菜单中分离。 System.Windows.Forms.Menu.MenuItemCollection.Remove
SetMenu 将一个新的菜单分配给一个窗口。 System.Windows.Forms.Form.Menu
SetMenuDefaultItem 设置菜单的默认菜单项。 System.Windows.Forms.MenuItem.DefaultItem
SetMenuInfo 设置菜单的信息。 System.Windows.Forms.MenuItem属性
SetMenuItemBitmaps 与菜单项关联的位图。 System.Windows.Forms.MenuItem.DrawItem
SetMenuItemInfo 更改菜单项的信息。 System.Windows.Forms.MenuItem属性
弹出菜单 在一个位置显示一个快捷菜单和跟踪项目选择上一个菜单。 System.Windows.Forms.ContextMenu.Show
按字母顺序排列的 Win32 类别列表
分层的 Win32 类别列表
消息和消息队列功能
Win32 函数 描述 .NET 框架 API
GetMessagePos 检索检索中的最后一个消息的光标的位置. 内部事件处理程序:
System.Windows.Forms.Windows.Forms.Control.MousePosition
PostQuitMessage 向系统指示线程已要求终止 (退出)。 System.Windows.Forms.Application.ExitThread
给我们留言 将指定的消息发送到窗口或窗口。 以下任一操作:
System.Windows.Forms.Control.DefWndProc
System.Windows.Forms.Control.WndProc
System.Windows.Forms.Form.DefWndProc
System.Windows.Forms.Form.WndProc
按字母顺序排列的 Win32 类别列表
分层的 Win32 类别列表
图元文件功能
Win32 函数 描述 .NET 框架 API
CopyEnhMetaFile 增强型格式图元文件的内容复制到指定的文件。 System.Drawing.Imaging.Metafile.Save
CreateEnhMetaFile 创建增强型格式图元文件设备上下文。 System.Drawing.Imaging.Metafile的构造函数
DeleteEnhMetaFile 删除增强型格式图元文件或增强型格式图元文件的句柄。 System.Drawing.Imaging.Metafile.Dispose
EnhMetaFileProc 与EnumEnhMetaFile一起使用的应用程序定义的回调函数. System.Drawing.Graphics.EnumerateMetafileProc
EnumEnhMetaFile 枚举中的增强型格式图元文件记录。 System.Drawing.Graphics.EnumerateMetafile
GdiComment 将注释从缓冲区复制到指定的增强型格式图元文件。 System.Drawing.Graphics.AddMetafileComment
GetEnhMetaFile 创建标识存储在指定文件中的增强型格式图元文件的句柄。 System.Drawing.Imaging.Metafile的构造函数
GetEnhMetaFileBits 检索指定的增强型格式图元文件的内容,并将其复制到缓冲区中。 System.Drawing.Imaging.Metafile.Save
GetEnhMetaFileHeader 检索指定的增强型格式图元文件的标头中包含的记录。 System.Drawing.Imaging.Metafile.GetMetafileHeader
GetEnhMetaFilePaletteEntries 从指定的增强图元文件中检索可选调色板项。 System.Drawing.Imaging.Metafile.Palette.Entries
GetWinMetaFileBits 增强型格式记录从图元文件转换成 Windows 格式记录。 System.Drawing.Imaging.Metafile.Save
PlayEnhMetaFile 显示存储在指定的增强型格式图元文件中的图片。 System.Drawing.Graphics.DrawImage
PlayEnhMetaFileRecord 通过执行由该记录标识的图形设备接口函数发挥增强图元文件记录。 System.Drawing.Imaging.Metafile.PlayRecord
System.Drawing.Imaging.PlayRecordCallback
SetEnhMetaFileBits 从指定的数据创建一个基于内存的增强型格式图元文件。 System.Drawing.Imaging.Metafile.Save
SetWinMetaFileBits 将从较旧的 Windows 格式的图元文件转换为新增强的格式。 System.Drawing.Imaging.Metafile.Save
按字母顺序排列的 Win32 类别列表
分层的 Win32 类别列表
鼠标输入的功能
Win32 函数 描述 .NET 框架 API
GetDoubleClickTime 获取鼠标的双击时间。 System.Windows.Forms.SystemInformation.DoubleClickTime
mouse_event 综合运动和按钮点击鼠标。 System.Windows.Forms.MouseEventArgs
ReleaseCapture 释放鼠标捕获和恢复鼠标输入的处理。 System.Windows.Forms.Control.Capture
SetCapture 设置鼠标捕获的窗口。 System.Windows.Forms.Control.Capture
TrackMouseEvent
— — 或者 — —
_TrackMouseEvent 当鼠标离开窗口或悬停在一个窗口上发布消息。 System.Windows.Forms.Control.OnMouseLeave
System.Windows.Forms.Control.OnMouseHover
按字母顺序排列的 Win32 类别列表
分层的 Win32 类别列表
多个显示监视器功能
Win32 函数 描述 .NET 框架 API
GetMonitorInfo 检索有关显示监视器的信息。 System.Windows.Forms.Screen.Bounds
System.Windows.Forms.Screen.Primary
System.Windows.Forms.Screen.WorkingArea
MonitorFromPoint 检索包含指定的点的显示器的句柄。 System.Windows.Forms.Screen.FromPoint
MonitorFromRect 检索与指定的矩形相交处面积最大的显示器的句柄。 System.Windows.Forms.Screen.FromRectangle
MonitorFromWindow 检索与指定的窗口的边界矩形的交集面积最大的显示器的句柄。 System.Windows.Forms.Screen.FromHandle
按字母顺序排列的 Win32 类别列表
分层的 Win32 类别列表
多文档界面功能
Win32 函数 描述 .NET 框架 API
CreateMDIWindow 创建多文档界面 (MDI) 子窗口。 System.Windows.Forms.Form的构造函数
System.Windows.Forms.Form.AutoScroll
System.Windows.Forms.Form.DesktopBounds
System.Windows.Forms.Form.MdiParent
System.Windows.Forms.Form.WindowState
TranslateMDISysAccel 处理与指定 MDI 客户端窗口相关联的 MDI 子窗口的窗口菜单命令的加速器击键。 自动翻译的 MDI 子级的键盘事件。
按字母顺序排列的 Win32 类别列表
分层的 Win32 类别列表
国家语言功能
Win32 函数 描述 .NET 框架 API
ConvertDefaultLocale 将默认区域设置值转换为实际的区域设置标识符。 System.Globalization.CultureInfo.CurrentCulture
System.Globalization.CultureInfo.InstalledUICulture
EnumCalendarInfo 枚举指定的区域设置的日历信息。 访问System.Globalization.CultureInfo.DateTimeFormat属性,以便得到一个System.Globalization.DateTimeFormatInfo对象,然后访问其属性:
System.Globalization.DateTimeFormatInfo.AbbreviatedDayNames
System.Globalization.DateTimeFormatInfo.AbbreviatedMonthNames
System.Globalization.DateTimeFormatInfo.DayNames
System.Globalization.DateTimeFormatInfo.LongDatePattern
System.Globalization.DateTimeFormatInfo.MonthNames
System.Globalization.DateTimeFormatInfo.ShortDatePattern
EnumCalendarInfoEx 枚举指定的区域设置的日历信息。 遍历日历:
System.Globalization.CultureInfo.DateTimeFormat.Calendar = System.Globalization.CultureInfo.OptionalCalendars[i]
EnumCalendarInfoProc 与EnumCalendarInfo一起使用的应用程序定义的函数. 和EnumCalendarInfo一样
EnumCalendarInfoProcEx 与EnumCalendarInfoEx一起使用的应用程序定义的函数. 和EnumCalendarInfoEx一样
EnumCodePagesProc 与EnumSystemCodePages一起使用的应用程序定义的函数. 和EnumSystemCodePages一样
EnumDateFormats 枚举可用于指定的区域设置的长或短的日期格式。 System.DateTime.GetDateTimeFormats(System.Globalization.CultureInfo)
EnumDateFormatsEx 枚举可用于指定的区域设置,包括任何备用日历日期格式的长或短的日期格式。 遍历日历:
System.Globalization.CultureInfo.DateTimeFormat.Calendar = System.Globalization.CultureInfo.OptionalCalendars[i];
System.DateTime.GetDateTimeFormats(System.Globalization.CultureInfo)
EnumDateFormatsProc 与EnumDateFormats一起使用的应用程序定义的函数. 和EnumDateFormats一样
EnumDateFormatsProcEx 与EnumDateFormatsEx一起使用的应用程序定义的函数. 和EnumDateFormatsEx一样
EnumGeoInfoProc 与EnumSystemGeoID一起使用的回调函数. 和EnumSystemGeoID一样
EnumLocalesProc 与EnumSystemLocales一起使用的应用程序定义的函数. 和EnumSystemLocales一样
EnumSystemCodePages 枚举的上安装或系统所支持的代码页。 System.Globalization.CultureInfo.GetCultures(System.Globalization.CultureTypes.AllCultures)返回数组CultureInfo
System.Globalization.CultureInfo.TextInfo各种代码页属性
EnumSystemGeoID 枚举系统上的所有检核。 通过调用System.Globalization.CultureInfo.GetCultures(System.Globalization.CultureTypes.AllCultures),检索的CultureInfo数组,然后访问以下CultureInfo属性:
System.Globalization.CultureInfo.ThreeLetterISOLanguageName
System.Globalization.CultureInfo.ThreeLetterWindowsLanguageName
System.Globalization.CultureInfo.TwoLetterISOLanguageName
EnumSystemLocales 枚举上安装或系统所支持的区域设置。 System.Globalization.CultureInfo.GetCultures(System.Globalization.CultureTypes.SpecificCultures)
System.Globalization.CultureInfo.GetCultures(System.Globalization.CultureTypes.InstalledWin32Cultures)
EnumTimeFormats 枚举可用于指定的区域设置的时间格式。 System.DateTime.GetDateTimeFormats
EnumTimeFormatsProc 与EnumTimeFormats一起使用的应用程序定义的函数. 和EnumTimeFormats一样
要确定 检索系统的当前 ANSI 代码页标识符。 System.Globalization.CultureInfo.InstalledUICulture.TextInfo.ANSICodePage
GetCalendarInfo 检索有关日历信息。 System.Globalization.CultureInfo.DateTimeFormat
GetCurrencyFormat 将数字的字符串格式设置为指定的区域设置货币字符串。 创建一个System.Globalization.CultureInfo对象,该对象使用指定的区域性名称或标识符的构造函数 (或使用当前区域性的应用程序的可用性对System.Threading.Thread.CurrentCulture);
调用System.Convert.ToDouble(str) str在哪里数字字符串要设置格式;
然后调用System.Double.ToString ("C",ci) (或System.Double.ToString("C")来使用当前区域性),其中C是标准货币格式说明符, ci是CultureInfo对象创建
注意在.NET 框架中提供的格式设置选项的各种详细信息,请参阅System.String.Format.
GetDateFormat 将日期字符串指定区域设置的日期格式设置。 System.DateTime (...,CultureInfo(LCID)。日历)。ToString
GetLocaleInfo 检索有关区域设置的信息。 System.Globalization.CultureInfo.DateTimeFormat
System.Globalization.CultureInfo.NumberFormat
System.Globalization.CultureInfo.TextInfo
GetNumberFormat 将数字的字符串格式设置为指定的区域设置为自定义数字字符串。 创建一个System.Globalization.CultureInfo对象,该对象使用指定的区域性名称或标识符的构造函数 (或使用当前区域性的应用程序的可用性对System.Threading.Thread.CurrentCulture);
调用System.Convert.ToDouble(str).数字字符串str在哪里您想要设置的格式;
然后调用System.Double.ToString ("N",ci) (或System.Double.ToString("N")来使用当前区域性),其中N是标准数字格式说明符, ci是CultureInfo对象创建
注意在.NET 框架中提供的格式设置选项的各种详细信息,请参阅System.String.Format.
GetOEMCP 检索当前系统的原始设备制造商 (OEM) 代码页标识符。 System.Globalization.CultureInfo.InstalledUICulture.TextInfo.OEMCodePage
GetSystemDefaultLangID 检索系统区域设置的语言标识符。 System.Globalization.CultureInfo.InstalledUICulture
GetSystemDefaultLCID 检索的系统默认区域设置标识符。 System.Globalization.CultureInfo.InstalledUICulture
GetSystemDefaultUILanguage 检索系统的默认语言的语言标识符。 System.Globalization.CultureInfo.InstalledUICulture
GetThreadLocale 检索当前的区域设置为调用线程。 下列操作之一:
System.Globalization.CultureInfo.CurrentCulture
System.Threading.Thread.CurrentCulture
GetTimeFormat 将时间作为时间字符串格式为指定的区域设置。 System.DateTime (...,CultureInfo(LCID)。日历)。ToString
GetUserDefaultLangID 检索当前用户区域设置的语言标识符。 System.Globalization.CultureInfo.CurrentCulture
GetUserDefaultLCID 检索用户默认 — — 区域设置标识符。 System.Globalization.CultureInfo.CurrentCulture
GetUserDefaultUILanguage 检索当前用户语言的语言标识符。 System.Globalization.CultureInfo.CurrentUICulture
GetUserGeoID 获取有关用户的位置信息。 System.Globalization.RegionInfo
IsValidCodePage 确定指定的代码页是否有效。 使用的CultureInfo对象返回的数组:
System.Globalization.CultureInfo.GetCultures(System.Globalization.CultureTypes.AllCultures)
比较System.Globalization.CultureInfo.TextInfo的代码页属性
IsValidLocale 确定指定的区域设置标识符是否有效。 试着 {System.Globalization.CultureInfo(LCID)}
LCMapString 将一个字符的字符串映射到另一个指定的区域设置依赖于转换的执行。 System.Globalization.SortKey
SetCalendarInfo 设置项目日历的区域设置信息。 System.Globalization.CultureInfo.DateTimeFormat
SetLocaleInfo 设置项目的区域设置信息。 System.Globalization.CultureInfo.DateTimeFormat
System.Globalization.CultureInfo.NumberFormat
SetThreadLocale 设置为调用线程的当前区域设置。 System.Threading.Thread.CurrentCulture
注意设置仅langid 。
按字母顺序排列的 Win32 类别列表
分层的 Win32 类别列表
绘画和绘图函数
Win32 函数 描述 .NET 框架 API
BeginPaint 准备画的一个窗口。 System.Windows.Forms.Form.OnPaint
帧 绘制框架控件。 System.Window.Forms.ControlPaint
GetBkColor 返回一个设备上下文的背景颜色。 System.Windows.Forms.Form.BackColor
GetBkMode 返回一个设备上下文的背景混合模式。 System.Windows.Forms.Form.GetStyle(ControlStyles.Opaque)
GetUpdateRect 获取包含一个窗口更新区域的最小矩形的坐标。 System.Windows.Forms.PaintEventArgs.ClipRectangle
GetWindowDC 获取窗口,包括标题栏、 菜单和滚动条的设备上下文。 以下任一操作:
System.Drawing.Graphics.FromHwnd(Windows.Forms.Control.Handle)
System.Windows.Forms.Control.CreateGraphics.GetHdc
System.Windows.Forms.PaintEventArgs.Graphics.GetHdc
GetWindowRgn 获取一个窗口的窗口区域的副本。 System.Windows.Forms.Control.Region
GrayString 在一个位置绘制灰色文本。 System.Drawing.Graphics.DrawString (...,Drawing.Brushes.Gray, ......)
InvalidateRect 将一个矩形添加更新区域的一个窗口。 System.Windows.Forms.Control.Invalidate
InvalidateRgn 在一个区域内的客户端区域无效。 System.Windows.Forms.Control.Invalidate(System.Windows.Forms.Form.ClientRectangle)
RedrawWindow 更新中客户端窗口的一个地区。 System.Windows.Forms.Control.Update
SetBkColor 将背景设置为颜色值。 System.Windows.Forms.Form.BackColor
SetBkMode 设置背景混合模式的设备上下文。 System.Windows.Forms.Form.SetStyle (System.Windows.Forms.ControlStyles.Opaque,System.Boolean)
SetWindowRgn 设置窗口的窗口区域。 System.Windows.Forms.Control.Region
UpdateWindow 更新窗口的客户区。 System.Windows.Forms.Control.Update
按字母顺序排列的 Win32 类别列表
分层的 Win32 类别列表
路径功能
Win32 函数 描述 .NET 框架 API
CloseFigure 关闭路径中的打开图。 System.Drawing.Drawing2D.GraphicsPath.CloseFigure
FillPath 关闭当前路径中任何打开的图表,并通过使用当前画刷和多边形填充模式填充路径的内部。 System.Drawing.Graphics.FillPath
System.Drawing.Drawing2D.GraphicsPath.CloseFigures
FlattenPath 将选中的路径中的任何曲线转换到当前的设备上下文中,每条曲线转化为一系列直线。 System.Drawing.Drawing2D.GraphicsPath.Flatten
GetMiterLimit 检索斜接限制为指定的设备上下文。 System.Drawing.Pen.MiterLimit
GetPath 检索定义线的端点和选入指定的设备上下文路径中找到的曲线控制点的坐标。 System.Drawing.Drawing2D.GraphicsPath.PathData
PathToRegion 从选择到指定的设备上下文路径中创建一个区域。 System.Drawing.Region.Region(System.Drawing.Drawing2D.GraphicsPath)
SetMiterLimit 设置为指定的设备上下文连接长度的限制。 System.Drawing.Pen.MiterLimit
StrokeAndFillPath 关闭任何打开的图表,在路径中,通过使用当前笔描边路径轮廓和通过使用当前画笔填充其内部。 System.Drawing.Graphics.DrawPath
System.Drawing.Graphics.FillPath
System.Drawing.Drawing2D.GraphicsPath.CloseFigures
StrokePath 通过使用当前笔,呈现指定的路径。 System.Drawing.Graphics.DrawPath
WidenPath 将当前路径重新定义为将绘制如果路径被抚摸使用笔到给定的设备上下文中当前选定的区域。 System.Drawing.Drawing2D.GraphicsPath.Widen
按字母顺序排列的 Win32 类别列表
分层的 Win32 类别列表
钢笔功能
Win32 函数 描述 .NET 框架 API
CreatePen 创建具有指定的样式、 宽度和颜色的逻辑钢笔。 System.Drawing.Pen的构造函数
ExtCreatePen 创建具有指定的样式,宽度,和刷属性逻辑的化妆品或几何钢笔。 System.Drawing.Pen的构造函数
按字母顺序排列的 Win32 类别列表
分层的 Win32 类别列表
性能监视功能
Win32 函数 描述 .NET 框架 API
PdhAddCounter 初始化为指定的查询中指定的计数器的计数器结构。 System.Diagnostics.PerformanceCounter的构造函数
PdhCalculateCounterFromRawValue 计算使用传递的参数列表中的原始计数器数据计数器的当前值。 System.Diagnostics.CounterSample.Calculate
PdhCloseLog 关闭指定的日志文件。 System.Diagnostics.EventLog.Close
PdhCloseQuery 关闭指定查询中包含的所有计数器,将都关闭查询相关的所有句柄并释放与查询关联的所有内存。 System.Diagnostics.PerformanceCounterCategory.Delete
PdhCollectQueryData 收集原始数据中指定的查询的所有计数器的当前值并更新每个计数器的状态代码。 System.Diagnostics.PerformanceCounterCategory.ReadCategory
PdhEnumObjectItems 返回可用的计数器和实例提供由指定的对象指定的计算机上。 System.Diagnostics.PerformanceCounterCategory.GetCounters
System.Diagnostics.PerformanceCounterCategory.GetInstanceNames
PdhEnumObjects 返回指定的计算机上可用的对象的列表。 System.Diagnostics.PerformanceCounterCategory.GetCategories
PdhFormatFromRawValue 如果格式转换是基于时间的将转换为指定格式的一个原始性能数据值或两个原始性能数据值。 System.Diagnostics.CounterSample.Calculate
PdhGetCounterInfo 检索一个计数器,如数据大小、 计数器类型、 路径和用户提供的数据值有关的信息。 System.Diagnostics.PerformanceCounter属性
PdhGetCounterTimeBase 返回的时间基础的指定的计数器。 System.Diagnostics.CounterSample.CounterFrequency
PdhGetFormattedCounterValue 在由调用方请求的格式返回指定的计数器的当前值。 System.Diagnostics.PerformanceCounter.NextValue
PdhGetRawCounterArray 返回从指定的计数器的原始值的数组。 System.Diagnostics.PerformanceCounterCategory.ReadCategory
PdhGetRawCounterValue 返回当前计数器的原始值。 System.Diagnostics.PerformanceCounter.NextSample
注意System.Diagnostics.InstanceData持有的原始数据。
PdhMakeCounterPath 创建一个完整的计数器路径使用传递的参数列表中的结构中指定的成员。 所有以下:
System.Diagnostics.PerformanceCounter.MachineName
System.Diagnostics.PerformanceCounter.CategoryName
System.Diagnostics.PerformanceCounter.InstanceName
System.Diagnostics.PerformanceCounter.CounterName
PdhOpenLog 打开指定的日志文件。 System.Diagnotics.EventLog的构造函数
注意必须显式处理写入日志文件。
PdhOpenQuery 创建并初始化一个唯一的查询结构,用于管理收集的性能数据。 System.Diagnostics.PerformanceCounterCategory的构造函数
PdhValidatePath 验证指定的计数器的计数器路径中指定的计算机上存在。 下列操作之一:
System.Diagnostics.PerformanceCounterCategory.Exists
System.Diagnostics.PerformanceCounterCategory.InstanceExists
按字母顺序排列的 Win32 类别列表
分层的 Win32 类别列表
打印功能
用于打印的功能:
Win32 函数 描述 .NET 框架 API
AbortDoc 停止当前的打印作业并擦除自最后一次调用StartDoc得出的所有东西. System.Drawing.Printing.PrintPageEventArgs.Cancel
DeviceCapabilities 检索打印机设备驱动程序的功能。 System.Drawing.Printing.PrinterSettings.PrinterName
System.Drawing.Printing.PrinterSettings属性
EndDoc 最后一个打印作业。 下列操作之一:
System.Drawing.Printing.PrintDocument.OnEndPrint
System.Drawing.Printing.PrintController.OnEndPrint
尾页 通知设备应用程序已完成对页的写。 System.Drawing.Printing.PrintController.OnEndPage
StartDoc 开始打印作业。 System.Drawing.Printing.PrintDocument.Print
System.Drawing.Printing.PrintDocument.OnBeginPrint
System.Drawing.Printing.PrintController.OnStartPrint
起始 准备接受数据的打印机驱动程序。 System.Drawing.Printing.PrintDocument.OnQueryPageSettings
System.Drawing.Printing.PrintController.OnStartPage
System.Drawing.Printing.PrintDocument.OnPrintPage
用于访问后台打印程序的功能:
Win32 函数 描述 .NET 框架 API
DocumentProperties 检索或修改打印机初始化信息或显示指定打印机的打印机配置属性表。 System.Windows.Forms.PageSetupDialog
System.Windows.Forms.PrintDialog
EndPagePrinter 通知后台打印程序应用程序是在网页中的打印作业结束。 System.Drawing.Printing.PrintPageEventArgs.HasMorePages
EnumForms 枚举指定的打印机所支持的形式。 System.Drawing.Printing.PrinterSettings.PaperSizes
EnumPrinters 枚举可用的打印机、 打印服务器、 域或打印提供程序。 System.Drawing.Printing.PrinterSettings.InstalledPrinters
GetDefaultPrinter 检索本地计算机上的当前用户的默认打印机的打印机名称。 System.Drawing.Printing.PrinterSettings的构造函数
System.Drawing.Printing.PrinterSettings.PrinterName
GetForm 检索有关指定表单的信息。 [System.Drawing.Printing.PrinterSettings.PaperSizes]
GetPrinter 检索指定打印机的信息。 System.Drawing.Printing.PrinterSettings.PrinterName
System.Drawing.Printing.PrinterSettings属性
PrinterProperties 显示为指定的打印机的打印机属性属性表。 System.Windows.Forms.PageSetupDialog
System.Windows.Forms.PrintDialog
SetPrinter 将数据设置为指定的打印机或通过暂停印刷、 恢复打印,或清除所有打印作业设置指定打印机的状态。 System.Drawing.Printing.PrinterSettings.PrinterName
System.Drawing.Printing.PrinterSettings属性
按字母顺序排列的 Win32 类别列表
分层的 Win32 类别列表
进程和线程函数
与进程所使用的函数:
Win32 函数 描述 .NET 框架 API
CreateProcess 创建一个新的过程和它的主线程。 System.Diagnostics.Process的构造函数
System.Diagnostics.Process.Start
ExitProcess 结束进程和它的所有线程。 System.Diagnostics.Process.CloseMainWindow
按 检索当前进程的命令行字符串。 下列操作之一:
System.Environment.CommandLine
System.Diagnostics.ProcessStartInfo.Arguments
GetCurrentProcess 检索当前进程伪句柄。 System.Diagnostics.Process.Handle
GetCurrentProcessId 检索调用进程的进程标识符。 XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
GetEnvironmentStrings 检索当前进程的环境块。 System.Diagnostics.ProcessStartInfo.EnvironmentVariables
GetEnvironmentVariable 从调用进程的环境块检索指定变量的值。 [System.Diagnostics.ProcessStartInfo.EnvironmentVariables]
GetExitCodeProcess 检索指定的进程的终止状态。 System.Diagnostics.Process.ExitCode
GetPriorityClass 检索指定的进程的优先级类。 System.Diagnostics.Process.PriorityClass
GetProcessAffinityMask 检索指定的进程进程关联掩码和系统的系统的亲和力掩码。 System.Diagnostics.Process.ProcessorAffinity
GetProcessPriorityBoost 检索指定的进程的优先级提升控制状态。 System.Diagnostics.Process.PriorityBoostEnabled
GetProcessTimes 检索对指定进程的计时信息。 System.Diagnostics.Process.ExitTime
System.Diagnostics.Process.PrivilegedProcessorTime
System.Diagnostics.Process.StartTime
System.Diagnostics.Process.TotalProcessorTime
System.Diagnostics.Process.UserProcessorTime
内存 检索指定的进程的最小和最大工作集的大小。 System.Diagnostics.Process.MinWorkingSet
System.Diagnostics.Process.MaxWorkingSet
GetStartupInfo 检索调用进程被创建时指定的STARTUPINFO结构的内容。 System.Diagnostics.Process.StandardError
System.Diagnostics.Process.StandardInput
System.Diagnostics.Process.StandardOutput
System.Diagnostics.Process.StartInfo.WindowStyle
句柄 打开一个现有的进程对象。 System.Diagnostics.Process.GetProcessById
SetEnvironmentVariable 设置当前进程的环境变量的值。 [System.Diagnostics.ProcessStartInfo.EnvironmentVariables]
SetPriorityClass 设置为指定的进程的优先级类。 System.Diagnostics.Process.PriorityClass
SetProcessAffinityMask 设置为一个指定的进程的线程的处理器关联掩码。 System.Diagnostics.Process.ProcessorAffinity
SetProcessPriorityBoost 禁用系统暂时提升的指定进程的线程优先级的能力。 System.Diagnostics.Process.PriorityBoostEnabled
SetProcessWorkingSetSize 设置最小和最大工作集的大小为指定的进程。 System.Diagnostics.Process.MaxWorkingSet
System.Diagnostics.Process.MinWorkingSet
很快 终止指定的进程和所有它的线程。 System.Diagnostics.Process.Kill
与线程所使用的函数:
Win32 函数 描述 .NET 框架 API
CreateThread 创建一个线程来执行在调用进程的虚拟地址空间内。 计数的构造函数
System.Threading.Thread.Start
GetCurrentThread 检索当前线程伪句柄。 System.Threading.Thread.CurrentThread
GetCurrentThreadId 检索调用线程的线程标识符。 下列操作之一:
System.AppDomain.GetCurrentThreadId
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
GetThreadPriority 检索指定的线程的优先级值。 下列操作之一:
System.Diagnostics.ProcessThread.PriorityLevel
System.Threading.Thread.Priority
GetThreadPriorityBoost 检索指定的线程的优先级提升控制状态。 System.Diagnostics.ProcessThread.PriorityBoostEnabled
GetThreadTimes 检索指定线程的计时信息。 System.Diagnostics.ProcessThread.PrivilegedProcessorTime
System.Diagnostics.ProcessThread.StartTime
System.Diagnostics.ProcessThread.TotalProcessorTime
System.Diagnostics.ProcessThread.UserProcessorTime
ResumeThread 线程的挂起计数递减。 System.Threading.Thread.Resume
SetThreadAffinityMask 设置为指定的线程的处理器关联掩码。 System.Diagnostics.ProcessThread.ProcessorAffinity
SetThreadIdealProcessor 指定线程的首选的处理器。 System.Diagnostics.ProcessThread.IdealProcessor
SetThreadPriority 设置指定的线程的优先级值。 下列操作之一:
System.Diagnostics.ProcessThread.PriorityLevel
System.Threading.Thread.Priority
SetThreadPriorityBoost 启用或禁用系统能够暂时提升该线程的优先级。 System.Diagnostics.ProcessThread.PriorityBoostEnabled
睡眠 挂起当前线程的执行为指定的时间间隔。 System.Threading.Thread.Sleep
SuspendThread 将指定的线程挂起。 System.Threading.Thread.Suspend
SwitchToThread 导致调用线程执行准备好在当前处理器上运行的另一个线程。 System.Threading.Thread.Sleep(0)
TerminateThread 终止线程。 System.Threading.Thread.Abort
供 应用程序定义的函数作为线程的起始地址。 看到System.Threading.ThreadStart委托
TlsAlloc 分配一个线程本地存储区 (TLS) 索引。 System.Threading.Thread.AllocateNamedDataSlot
TlsFree 释放一个 TLS 索引。 System.Threading.Thread.FreeNamedDataSlot
TlsGetValue 检索指定的 TLS 索引调用线程的 TLS 槽中的值。 System.Threading.Thread.GetData
TlsSetValue 在调用线程的 TLS 插槽为 TLS 的指定索引中存储一个值。 System.Threading.Thread.SetData
WaitForInputIdle 等待,直到指定的进程正在等待用户输入与之前没有输入,或直到超时间隔已过时。 System.Diagnostics.Process.WaitForInputIdle
所使用的线程池的函数:
Win32 函数 描述 .NET 框架 API
BindIoCompletionCallback 将指定的文件句柄绑定到线程池的 I/O 完成端口。 System.Threading.ThreadPool.BindHandle
QueueUserWorkItem 排队到线程池中的工作线程的工作项。 System.Threading.ThreadPool.QueueUserWorkItem
System.Threading.ThreadPool.UnsafeQueueUserWorkItem
按字母顺序排列的 Win32 类别列表
分层的 Win32 类别列表
PSAPI 功能
Win32 函数 描述 .NET 框架 API
EnumProcesses 在系统中检索过程的每个对象的进程标识符。 System.Diagnostics.Process.GetProcesses
EnumProcessModules 检索指定的进程中每个模块的句柄。 System.Diagnostics.Process.Modules
GetModuleBaseName 检索指定的模块的基名称。 System.Diagnostics.ProcessModule.ModuleName
GetModuleFileNameEx 检索指定的模块的完全限定的路径。 下列操作之一:
System.Diagnostics.ProcessModule.FileName
System.Reflection.Module.FullyQualifiedName
GetModuleInformation 检索有关指定的模块的信息。 System.Diagnostics.ProcessModule
GetProcessMemoryInfo 检索指定进程的内存使用情况有关的信息。 System.Diagnostics.Process.PagedMemorySize
System.Diagnostics.Process.PeakPagedMemorySize
System.Diagnostics.Process.PeakWorkingSet
System.Diagnostics.Process.WorkingSet
按字母顺序排列的 Win32 类别列表
分层的 Win32 类别列表
矩形函数
Win32 函数 描述 .NET 框架 API
EqualRect 确定是否两个指定的矩形是否相等比较其左上角和右下角的坐标。 System.Drawing.Rectangle.Equals
InflateRect 增大或减小的宽度和高度指定的矩形。 System.Drawing.Rectangle.Inflate
IntersectRect 计算两个源矩形的交集并放置到目标矩形的交集矩形坐标。 System.Drawing.Rectangle.Intersect
IsRectEmpty 确定指定的矩形是否为空。 System.Drawing.Rectangle.IsEmpty
OffsetRect 将指定的矩形移动指定的偏移量。 System.Drawing.Rectangle.Offset
PtInRect 确定是否在指定的点范围内指定的矩形。 System.Drawing.Rectangle.Contains
SetRect 设置指定的矩形的坐标。 System.Drawing.Rectangle.FromLTRB
SetRectEmpty 创建一个空的矩形,所有坐标都将都设置为零。 System.Drawing.Rectangle.FromLTRB
UnionRect 创建两个矩形的联盟。 System.Drawing.Rectangle.Union
按字母顺序排列的 Win32 类别列表
分层的 Win32 类别列表
区域功能
Win32 函数 描述 .NET 框架 API
CombineRgn 结合两个地区,并将结果存储在第三个地区。 System.Drawing.Region.Clone
System.Drawing.Region.Exclude
System.Drawing.Region.Intersect
System.Drawing.Region.Union
System.Drawing.Region.Xor
CreateEllipticRgn 创建椭圆区域。 System.Drawing.Drawing2D.GraphicsPath的构造函数
System.Drawing.Drawing2D.GraphicsPath.AddEllipse
System.Drawing.Region.Region(System.Drawing.Drawing2D.GraphicsPath)
CreateEllipticRgnIndirect 创建椭圆区域。 System.Drawing.Drawing2D.GraphicsPath的构造函数
System.Drawing.Drawing2D.GraphicsPath.AddEllipse
System.Drawing.Region.Region(System.Drawing.Drawing2D.GraphicsPath)
CreatePolygonRgn 创建一个多边形区域。 System.Drawing.Drawing2D.GraphicsPath的构造函数
System.Drawing.Drawing2D.GraphicsPath.AddPolygon
System.Drawing.Region.Region(System.Drawin
张静茹作者
11年5个月前IP:北京
777574
1楼
引用
评论
笔记
{{note.content}}
{{n.user.username}}
{{fromNow(n.toc)}} {{n.status === noteStatus.disabled ? "已屏蔽" : ""}} {{n.status === noteStatus.unknown ? "正在审核" : ""}} {{n.status === noteStatus.deleted ? '已删除' : ''}}
  • 编辑
  • 删除
  • {{n.status === 'disabled' ? "解除屏蔽" : "屏蔽" }}
我也是有底线的