Alphabetical List Hierarchical List
Alphabetical List Hierarchical List
Alphabetical List Hierarchical List
NET Framework and Microsoft Visual Studio User Education Teams Microsoft Corporation January 2004 Applies to: Microsoft .NET Framework version 1.0 or 1.1 Microsoft Visual Studio .NET Microsoft Win32 functions Summary: This article identifies the Microsoft .NET Framework version 1.0 or 1.1 APIs that provide similar functionality to Microsoft Win32 functions. One or more relevant .NET Framework APIs are shown for each Win32 function listed. The intended audience for this article is experienced Win32 developers who are creating applications or libraries based on the Microsoft .NET Framework, but anyone looking for a managed counterpart for a Win32 function could find this document useful. (85 printed pages) In this article, the Microsoft Win32 functions are organized by category. Each Win32 function that is listed belongs to only one category, and each category is presented in its own table. An alphabetical list of the Win32 categories is provided, as well as a hierarchical list. To locate a Win32 function, select the appropriate category from one of the category lists or search the article for the name of the function. If you do not find the Win32 function that you are seeking, it means that no equivalent .NET Framework API exists in the .NET Framework version 1.0 or 1.1 or that the Win32 function and the relevant .NET Framework API were inadvertently omitted from the list. If you believe that a Win32 function and the relevant .NET Framework API have been omitted from this article, please let us know by using the feedback link. For more information on the APIs listed in this article, see the Platform SDK documentation or the .NET Framework SDK documentation in the MSDN library. Alphabetical Win32 Category List A-C Atom functions Bitmap functions Brush functions Button functions Color functions Combo box functions Common dialog box functions Console functions
Clipboard functions Clipping functons D-I Debugging functions Device context functions Dialog box functions Dynamic-link library functions Error handling functions Event logging functions J-N Keyboard accelerator functions Keyboard input functions Line and curve functions List box functions Memory management functions Menu functions O-R
File I/O functions File system functions Filled shape functions Font and text functions Icon functions Input Method Editor functions
Message and message queue functions Metafile functions Mouse input functons Multiple display monitor functions Multiple-document interface functions National language functions
Painting and drawing functions Path functions Pen functions Performance monitoring functions Printing functions Process and thread functions S-T Scroll bar functions Service functions String functions Structured exception-handling functions Synchronization functions System information functions U-Z Unicode and character set functions User profile functions Version information functions
PSAPI functions Rectangle functions Region functions Registry functions Resource functions Rich edit control functions
Tape backup functions Text object model functions Time functions Timer functions Tool Help functions
Window functions Window class functions Window procedure functions Window property functions
Hierarchical Win32 Category List Base Services Debugging and Error Handling Debugging Error handling Event logging Structured exception-handling DLLs, Processes, and Threads Console applications Dynamic-link library Process and thread Service Synchronization Files and I/O File I/O File system Tape backup Graphics Device Interface Miscellaneous Memory management User profile Performance Performance monitoring PSAPI Tool Help Windows System Information Registry System information Time
Bitmap Brush Clipping Color Coordinate Device context Filled shape Font and text Input Method Editor Line and curve User Interface Controls Button Combo box List box Rich edit control Scroll bar Text object model
Metafile Multiple display monitor National language Painting and drawing Path Pen Printing and print spooler Rectangle Region Unicode and character set
User Input Common dialog box Keyboard accelerator Keyboard input Mouse input Windowing Dialog box
Data Exchange Atom Clipboard Resources Cursor Icon Menu Resource String Version information Atom Functions Win32 function AddAtom Description
Message and message queue Multiple-document interface Timer Window Window class Window procedure Window property
FindAtom
Searches the local atom table for System.String.IsInterned the specified character string. Note String is not exactly an atom.
Bitmap Functions Win32 function AlphaBlend Description .NET Framework API Displays a System.Drawing.Graphics.DrawImage bitmap with transparent or semitranspa rent pixels. Performs a bit-block transfer. Creates a bitmap. System.Drawing.Graphics.DrawImage
BitBlt
CreateBitmap
GetBitmapDimen Gets the System.Drawing.Bitmap.Size sionEx dimensions of a bitmap. GetDIBColorTabl Retrieves System.Drawing.Bitmap.Palette e RGB color values from a DIB section bitmap. GetDIBits Copies a System.Drawing.Bitmap.LockBits bitmap into a buffer. Gets the System.Drawing.Bitmap.GetPixel RGB color value of the pixel at a given coordinate.
GetPixel
GradientFill
Fills System.Drawing.Graphics.FillRectangle(Drawing2D.Li rectangle nearGradiantBrush, Rectangle) and triangle structures. Loads a System.Drawing.Bitmap.Bitmap(Type, String) bitmap from a module's executable file. Sets the color for a pixel. System.Drawing.Bitmap.SetPixel
LoadBitmap
SetPixel
SetPixelV
Sets a pixel System.Drawing.Bitmap.SetPixel(, to the best Graphics.GetNearestColor(Color)) approximati on of a color. Copies a System.Drawing.Graphics.DrawImage bitmap and stretches or compresses it.
StretchBlt
Alphabetical Win32 Category List Hierarchical Win32 Category List Brush Functions Win32 function Description CreateBrushIndi Creates a brush with a rect specified style, color, and pattern. .NET Framework API Any of the following: System.Drawing.Brushes System.Drawing.SolidBrush System.Drawing.TextureBrush System.Drawing.Drawing2D.HatchBrush System.Drawing.Drawing2D.LinearGradi entBrush
System.Drawing.Drawing2D.PathGradie ntBrush CreateHatchBru Creates a brush with a sh hatch pattern and color. CreatePatternBr Creates a brush with a ush bitmap pattern. CreateSolidBrus Creates a brush with a h solid color. System.Drawing.Drawing2D.HatchBrush constructor System.Drawing.TextureBrush constructor System.Drawing.SolidBrush constructor
GetSysColorBru Gets a handle for a brush System.Drawing.Brushes class sh that corresponds to a color index. Alphabetical Win32 Category List Hierarchical Win32 Category List Button Functions Win32 function Description .NET Framework API
CheckDlgButton Changes the check state of a System.Windows.Forms.CheckBox.Ch button control. ecked CheckRadioButt Adds a check mark to a on specified radio button in a group and removes a check mark from all other radio buttons in the group. System.Windows.Forms.RadioButton. Checked
IsDlgButtonChe Determines whether a button System.Windows.Forms.CheckBox.Ch cked control has a check mark eckState next to it or whether a threestate button control is grayed, checked, or neither. Alphabetical Win32 Category List Hierarchical Win32 Category List
CountClipboardForma Retrieves the System.Windows.Forms.DataObject.GetFor ts number of mats different data formats currently on the clipboard. EnumClipboardForma Enumerates the ts data formats currently available on the clipboard. GetClipboardData System.Windows.Forms.DataObject.GetFor mats
IsClipboardFormatAva Determines System.Windows.Forms.DataObject.GetDat ilable whether the aPresent clipboard contains data in the specified format. RegisterClipboardFor mat SetClipboardData Registers a new System.Windows.Forms.DataFormats.GetF clipboard format. ormat Places data on the System.Windows.Forms.ClipBoard.SetData clipboard in a Object specified clipboard format.
Alphabetical Win32 Category List Hierarchical Win32 Category List Clipping Functions Win32 function Description .NET Framework API
ExcludeClipRect Creates a new clipping region that consists of the existing clipping region minus the specified rectangle.
System.Drawing.Graphics.ExcludeCl ip
ExtSelectClipRg Combines the specified region System.Drawing.Graphics.SetClip n with the current clipping region using the specified mode. GetClipBox Retrieves the dimensions of System.Drawing.Graphics.VisibleCli the tightest bounding pBounds rectangle that can be drawn around the current visible area on the device. Retrieves a handle identifying System.Drawing.Graphics.Clip the current application-defined clipping region for the specified device context.
GetClipRgn
IntersectClipRe Creates a new clipping region System.Drawing.Graphics.Intersect ct from the intersection of the Clip current clipping region and the specified rectangle. OffsetClipRgn Moves the clipping region of a System.Drawing.Graphics.Translate device context by the specified Clip offsets. Determines whether the specified point is within the clipping region of a device context. Determines whether any part of the specified rectangle lies within the clipping region of a device context. System.Drawing.Graphics.IsVisible
PtVisible
RectVisible
System.Drawing.Graphics.IsVisible
SelectClipPath
Selects the current path as a clipping region for a device context, combining the new region with any existing clipping region by using the specified mode.
System.Drawing.Graphics.SetClip
SelectClipRgn
Selects a region as the current System.Drawing.Graphics.Clip clipping region for the specified device context.
Alphabetical Win32 Category List Hierarchical Win32 Category List Color Functions Win32 function Description .NET Framework API System.Drawing.Graphics.GetHalfton ePalette
CreateHalftonePal Creates a halftone palette ette for the specified device context. CreatePalette GetNearestColor Creates a logical palette.
System.Drawing.Image.Palette
Retrieves a color value System.Drawing.Graphics.GetNearest identifying a color from the Color system palette that will be displayed when the specified color value is used.
GetPaletteEntries Retrieves a specified range System.Drawing.Image.Palette.Entrie of palette entries from the s given logical palette. Alphabetical Win32 Category List Hierarchical Win32 Category List Combo Box Functions Win32 Description .NET Framework API
function DlgDirListCom Replaces the System.Windows.Forms.ComboBox.Items.AddRange(Sys boBox contents of tem.IO.Directory.GetFileSystemEntries) a combo box with the names of specified subdirectori es and files. DlgDirSelectC Retrieves System.Windows.Forms.ComboBox.SelectedItem omboBoxEx the current selection from a combo box filled by using DlgDirListCo mboBox. GetComboBox Retrieves System.Windows.Forms.ComboBox properties Info information about a specified combo box. Alphabetical Win32 Category List Hierarchical Win32 Category List Common Dialog Box Functions Win32 function ChooseColor Description .NET Framework API
Creates a Color dialog box that enables the user to select a color.
ChooseFont
box that enables the user to choose attributes for a logical font. GetFileTitle Retrieves the name of the specified file.
GetOpenFileN Creates an Open dialog System.Windows.Forms.OpenFileDialog.Sho ame box that lets the user wDialog specify the drive, directory, and name of a Note Dialog cannot be modified through a hook. file or set of files to open. GetSaveFileNa Creates a Save dialog System.Windows.Forms.SaveFileDialog.Sho me box that lets the user wDialog specify the drive, directory, and name of a Note Dialog cannot be modified through a hook. file to save. PageSetupDlg Creates a Page Setup dialog box that enables the user to specify the attributes of a printed page. PrintDlg Displays a Print dialog box. System.Windows.Forms.PageSetupDialog.S howDialog Note Dialog cannot be modified through a hook.
Alphabetical Win32 Category List Hierarchical Win32 Category List Console Functions Win32 function Description .NET Framework API
GetStdHandle
Retrieves a handle for the System.Console.OpenStandardIn standard input, standard output, System.Console.OpenStandardO or standard error device. ut System.Console.OpenStandardEr ror Reads character input from the console input buffer and removes it from the buffer. System.Console.Read
ReadConsole
SetStdHandle
Sets the handle for the standard System.Console.SetIn input, standard output, or System.Console.SetOut standard error device. System.Console.SetError Writes a character string to a System.Console.Write console screen buffer beginning at the current cursor location.
WriteConsole
Alphabetical Win32 Category List Hierarchical Win32 Category List Coordinate Functions Win32 function ClientToScreen Description .NET Framework API
Converts the client-area System.Windows.Forms.Form.PointTo coordinates of a specified Screen point to screen coordinates. System.Drawing.Drawing2D.Matrix.M ultiply
CombineTransform Concatenates two worldspace to page-space transformations. DPtoLP Converts device coordinates into logical coordinates. Retrieves the current
System.Drawing.Graphics.TransformP oints
GetMapMode
System.Drawing.Graphics.PageUnit
mapping mode. GetWindowExtEx Retrieves the x-extent and System.Drawing.Graphics.PageScale y-extent of the window for the specified device context. Retrieves the xcoordinates and ycoordinates of the window origin for the specified device context. System.Drawing.Graphics.Transform. OffsetX System.Drawing.Graphics.Transform. OffsetY
GetWindowOrgEx
GetWorldTransfor m
Retrieves the current System.Drawing.Graphics.Transform world-space to page-space transformation. Converts logical coordinates into device coordinates. System.Drawing.Graphics.TransformP oints
LPtoDP
ModifyWorldTransf Changes the world orm transformation for a device context using the specified mode.
System.Drawing.Graphics.Transform
OffsetViewportOrg Modifies the viewport System.Drawing.Graphics.TranslateTr Ex origin for a device context ansform using the specified horizontal and vertical offsets. OffsetWindowOrgE Modifies the window origin System.Drawing.Graphics.TranslateTr x for a device context using ansform the specified horizontal and vertical offsets. ScreenToClient Converts the screen System.Windows.Forms.Form.PointTo coordinates of a specified
Client
Sets the mapping mode of System.Drawing.Graphics.PageUnit the specified device context. Sets the horizontal and vertical extents of the window for a device context by using the specified values. System.Drawing.Graphics.PageScale Drawing.Graphics.ScaleTransform
SetWindowExtEx
SetWindowOrgEx
Specifies which window System.Drawing.Graphics.TranslateTr point maps to the viewport ansform origin (0,0). Sets a two-dimensional System.Drawing.Graphics.Transform linear transformation between world space and page space for the specified device context.
SetWorldTransfor m
Alphabetical Win32 Category List Hierarchical Win32 Category List Cursor Functions Win32 function Description ClipCursor .NET Framework API
Confines the cursor to System.Windows.Forms.Cursor.Clip a rectangular area on the screen. Copies the specified cursor. System.Windows.Forms.Cursor.CopyHandle
CopyCursor
CreateCursor
Creates a cursor System.Windows.Forms.Cursor constructor having the specified System.Windows.Forms.Cursor.Size size, bit patterns, and
hot spot. DestroyCursor GetClipCursor Destroys a cursor. Retrieves the screen coordinates of the rectangular area to which the cursor is confined.
GetCursor
Retrieves a handle to System.Windows.Forms.Cursor.Handle the current cursor. Retrieves information System.Windows.Forms.Cursor.Position about the global System.Windows.Forms.SystemInformation. cursor. CursorSize Retrieves the cursor's System.Windows.Forms.Control.MousePositio position. n System.Windows.Forms.Cursor.Position Loads a cursor resource from an executable file. Creates a cursor based on data contained in a file. System.Windows.Forms.Cursor constructor
GetCursorInfo
GetCursorPos
LoadCursor
LoadCursorFro mFile
System.Windows.Forms.Cursor constructor
SetCursor SetCursorPos
Sets the cursor shape. System.Windows.Forms.Cursor.Current Moves the cursor to the specified screen coordinates. Displays or hides the cursor. System.Windows.Forms.Cursor.Position
ShowCursor
System.Windows.Forms.Cursor.Show Windows.Forms.Cursor.Hide
Alphabetical Win32 Category List Hierarchical Win32 Category List Debugging Functions Win32 function Description .NET Framework API
DebugActiveProc Enables a debugger to attach to System.Diagnostics.Debugger.La ess an active process and debug it. unch DebugBreak Causes a breakpoint exception System.Diagnostics.Debugger.Br to occur in the current process. eak
IsDebuggerPrese Determines whether the calling System.Diagnostics.Debugger.IsA nt process is running under the ttached context of a debugger. OutputDebugStri Sends a string to the debugger ng for display. Alphabetical Win32 Category List Hierarchical Win32 Category List Device Context Functions Win32 function Descripti .NET Framework API on System.Diagnostics.Debugger.Lo g
ChangeDisplaySe Changes System.Management.ManagementClass("Win32_Video ttings the Controller") settings of the default display device to the specified graphics mode. ChangeDisplaySe Changes System.Management.ManagementClass("Win32_Video ttingsEx the
settings Controller") of the specified display device to the specified graphics mode. DeviceCapabilitie Retrieves System.Drawing.Printing.PageSettings s the System.Drawing.Printing.PrinterSettings capabiliti es of a printer device driver. EnumDisplayDevi Retrieves System.Management.ManagementClass("Win32_Deskt ces informati opMonitor") on about the display devices in a system. EnumDisplaySetti Retrieves System.Management.ManagementClass("CIM_VideoCon ngs informati trollerResolution") on about one of the graphics modes for a display device. GetDC Retrieves a handle to a display To retrieve a Graphics object, use any of the following: System.Drawing.Graphics.FromHwnd(Windows.Forms.C ontrol.Handle) System.Drawing.Printing.PrintPageEventArgs.Graphics
device System.Windows.Forms.PaintEventArgs.Graphics context To explicitly retrieve a handle, use the following: for the System.Drawing.Graphics.GetHdc client area of a specified window or for the entire screen. GetDCEx Retrieves a handle to a display device context for the client area of a specified window or for the entire screen. To retrieve a Graphics object, use any of the following: System.Drawing.Graphics.FromHwnd(Windows.Forms.C ontrol.Handle) System.Drawing.Printing.PrintPageEventArgs.Graphics System.Windows.Forms.PaintEventArgs.Graphics To explicitly retrieve a handle, use the following: System.Drawing.Graphics.GetHdc
GetDeviceCaps
Retrieves System.Drawing.Graphics properties deviceSystem.Drawing.Printing.PrinterSettings specific System.Management classes informati on for the specified device. Retrieves System.Windows.Forms.Control.RightToLeft the layout of a device context. Retrieves System.Drawing.Bitmap properties
GetLayout
GetObject
informati System.Drawing.Brush properties on for the System.Drawing.Font properties specified System.Drawing.Pen properties graphics object. GetObjectType Retrieves System.Object.GetType the type of the specified object. Retrieves System.Drawing.Brushes a handle System.Drawing.Pens to one of the stock pens, brushes, fonts, or palettes. Releases System.Drawing.Graphics.ReleaseHdc a device context, freeing it for use by other applicatio ns. Sets the System.Windows.Forms.Control.RightToLeft = layout for System.Windows.Forms.RightToLeft.Yes a device context.
GetStockObject
ReleaseDC
SetLayout
Alphabetical Win32 Category List Hierarchical Win32 Category List Dialog Box Functions Win32 function Description .NET Framework API
CreateDialog
Creates a System.Windows.Forms.Form constructor modeless System.Windows.Forms.Form properties dialog box from a dialog box template resource.
CreateDialogInd Creates a System.Windows.Forms.Form constructor irect modeless System.Windows.Forms.Form properties dialog box from a dialog box template in memory. DefDlgProc Calls the System.Windows.Forms.Form.DefWndProc default dialog box window procedure to provide default processing for any window messages that a dialog box with a private window class does not process. Creates a System.Windows.Forms.Form constructor modal System.Windows.Forms.Form.ShowDialog dialog box from a dialog box
DialogBox
template resource. DialogBoxIndire Creates a System.Windows.Forms.Form constructor ct modal System.Windows.Forms.Form.ShowDialog dialog box from a dialog box template in memory. DialogProc An System.Windows.Forms.Form.WndProc applicationdefined callback function used with the CreateDialo g and DialogBox families of functions. Destroys a System.Windows.Forms.Form.Close modal dialog box. Retrieves System.Windows.Forms.Form.Controls.IndexOf the identifier of the specified control. Retrieves a System.Windows.Forms.Form.Controls.Item handle to a control in the specified
EndDialog
GetDlgCtrlID
GetDlgItem
dialog box. GetDlgItemInt Translates System.Int32.Parse(Form.Text) the text of System.UInt32.Parse(Form.Text) a specified control in a dialog box into an integer value.
GetDlgItemText Retrieves System.Windows.Forms.Form.Controls.Item[].Text the title or text associated with a control in a dialog box. GetNextDlgGrou Retrieves a pItem handle to the first control in a group of controls that precedes (or follows) the specified control. Iterate through the controls: System.Windows.Forms.Form.Controls.Item Remember to determine whether the control is active by referencing the Enabled and Visible properties of the control. Note The order that the controls are presented in might not be the same order in which GetNextDlgGroupItem presents the controls.
GetNextDlgTabI Retrieves a Iterate through the controls: tem handle to System.Windows.Forms.Form.Controls.Item the first control that Remember to determine whether the control is active by referencing the Enabled, Visible, and TabStop has the WS_TABST properties of the control. OP style Note The order that the controls are presented in might that not be the same order in which GetNextDlgGroupItem precedes
(or follows) presents the controls. the specified control. MessageBox Creates, System.Windows.Forms.MessageBox.Show displays, and operates a message box. Creates, System.Windows.Forms.MessageBox.Show displays, and operates a message box.
MessageBoxEx
MessageBoxIndi Creates, System.Windows.Forms.MessageBox.Show rect displays, and operates a message box. SendDlgItemMe Sends a System.Windows.Forms.Form.WndProc(System.Window ssage message to s.Forms.Message) the specified control in a dialog box. SetDlgItemInt Sets the System.Windows.Forms.Control.Text = text of a System.Int32.ToString control in a dialog box to the string representat
ion of a specified integer value. SetDlgItemText Sets the System.Windows.Forms.Control.Text title or text of a control in a dialog box. Alphabetical Win32 Category List Hierarchical Win32 Category List Dynamic-Link Library Functions Win32 function Description .NET Framework API
GetModuleFileN Retrieves the full System.Reflection.Module.FullyQualifiedName ame path and file name for the file containing the specified module. GetModuleHandl Retrieves a module System.Runtime.InteropServices.Marshal.GetH e handle for the INSTANCE specified module. LoadLibrary Maps the specified executable module into the address space of the calling process. Maps the specified executable module into the address space of the calling process. Any of the following: System.Reflection.Assembly.Load System.Reflection.Assembly.LoadFrom System.Reflection.Assembly.LoadWithPartialN ame Any of the following: System.Reflection.Assembly.Load System.Reflection.Assembly.LoadFrom System.Reflection.Assembly.LoadWithPartialN ame
LoadLibraryEx
Alphabetical Win32 Category List Hierarchical Win32 Category List Error Handling Functions Win32 function Description .NET Framework API
FatalAppE Displays a message xit box and terminates the application when the message box is closed. GetLastEr Retrieves the calling ror thread's last-error code value. Alphabetical Win32 Category List Hierarchical Win32 Category List Event Logging Functions Win32 function ClearEventLog
System.Windows.Forms.MessageBox.Show System.Diagnostics.Process.Kill
System.Runtime.InteropServices.Marshall.GetLast Win32Error
Description
Clears the System.Diagnostics.EventLog.Clear specified event log, and optionally saves the current copy of the log file to a backup file. Closes a read System.Diagnostics.EventLog.Close handle to the specified event log. Closes a write System.Diagnostics.EventLog.DeleteEvent handle to the Source specified event
CloseEventLog
DeregisterEventSource
log. GetNumberOfEventLogR Retrieves the System.Diagnostics.EventLog.Entries.Coun ecords number of t records in the specified event log. GetOldestEventLogRecor Retrieves the d absolute record number of the oldest record in the specified event log. NotifyChangeEventLog System.Diagnostics.EventLogEntryCollecti on[0] System.Diagnostics.EventLogEntry.TimeWr itten
Enables an System.Diagnostics.EventLog.EnableRaisin application to gEvents receive notification when an event is written to the specified event log file. Opens a handle to a backup event log. Opens a handle to an event log. System.Diagnostics.EventLog constructor
OpenBackupEventLog
OpenEventLog
System.Diagnostics.EventLog constructor
ReadEventLog
Reads a whole System.Diagnostics.EventLogEntryCollecti number of on.CopyTo entries from the specified event log.
RegisterEventSource
System.Diagnostics.EventLog.CreateEvent Source
ReportEvent
Alphabetical Win32 Category List Hierarchical Win32 Category List File I/O Functions Win32 function Descriptio .NET Framework API n Copies an Either of the following: existing System.IO.File.Copy file to a IO.FileInfo.CopyTo new file. Creates a Any of the following: new System.IO.Directory.CreateDirectory directory. System.IO.Directory.CreateSubdirectory System.IO.DirectoryInfo.Create Creates or System.IO.File class and System.IO.FileInfo class opens a file object. Deletes an Any of the following: existing System.IO.Directory.Delete file. System.IO.DirectoryInfo.Delete System.IO.File.Delete System.IO.FileInfo.Delete An User defined. application
CopyFile
CreateDirectory
CreateFile
DeleteFile
FileIOCompletion Routine
-defined callback function used with ReadFileEx and WriteFileE x. FindClose Closes the See FindFirstFile and FindNextFile specified search handle.
FindCloseChange Stops System.IO.FileSystemWatcher.EnableRaisingEvents Notification change notificatio n handle monitoring . FindFirstChangeN Creates a System.IO.FileSystemWatcher class otification change notificatio n handle. FindFirstFile Searches a Any of the following: directory System.IO.Directory.Exists for a file System.IO.Directory.GetDirectories whose System.IO.Directory.GetFileSystemEntries name System.IO.Directory.GetFiles matches System.IO.DirectoryInfo.Exists the System.IO.DirectoryInfo.GetDirectories specified System.IO.DirectoryInfo.GetFileSystemInfos file name. System.IO.DirectoryInfo.GetFiles System.IO.File.Exists System.IO.FileInfo.Exists Searches a Same as FindFirstFile directory
FindFirstFileEx
for a file whose name and attributes match the specified file name. FindNextChangeN Requests System.IO.FileSystemWatcher class otification that the operating system signal a change notificatio n handle the next time it detects an appropriat e change. FindNextFile Continues Any of the following: a file System.IO.Directory.GetDirectories search. System.IO.Directory.GetFileSystemEntries System.IO.Directory.GetFiles System.IO.DirectoryInfo.GetDirectories System.IO.DirectoryInfo.GetFileSystemInfos System.IO.DirectoryInfo.GetFiles Clears the System.IO.FileStream.Flush buffers for the specified file and causes all buffered data to be written to the file.
FlushFileBuffers
GetBinaryType
Determine System.IO.FileSystemInfo.Extension s whether Note Only manipulates strings; does not do a filea file is executable system check. .
GetCurrentDirecto Retrieves System.IO.Directory.GetCurrentDirectory ry the current directory for the current process. GetDriveType Determine s whether a disk drive is a removable , fixed, CD-ROM, RAM disk, or network drive. Retrieves attributes for a specified file or directory. System.Management.ManagementObject("Win32_Logi calDisk.DeviceID=\"C:\"").Get System.Management.ManagementObject.Properties System.IO.DriveInfo.DriveType
GetFileAttributes
GetFileAttributesE Retrieves Any of the following: x attributes System.IO.Directory.GetAttributes for a System.IO.File.GetAttributes specified System.IO.FileSystemInfo.Attributes file or directory. GetFileInformatio Retrieves System.IO.FileInfo properties
nByHandle
file informatio n for a specified file. Retrieves Either of the following: the size of System.IO.FileInfo.Length a specified System.IO.FileStream.Length file. Retrieves Either of the following: the size of System.IO.FileInfo.Length a specified System.IO.FileStream.Length file.
GetFileSize
GetFileSizeEx
GetFullPathName Retrieves Either of the following: the full System.IO.FileSystemInfo.FullName path and System.IO.Path.GetFullPath file name of a specified file. GetTempFileNam Creates a System.IO.Path.GetTempFileName e name for a temporary file. GetTempPath Retrieves System.IO.Path.GetTempPath the path of the directory designate d for temporary files. Locks a region in System.IO.FileStream.Lock
LockFile
an open file. LockFileEx Locks a System.IO.FileStream.Lock region in an open file for shared or exclusive access. Moves an existing file or a directory. Any of the following: System.IO.Directory.Move System.IO.DirectoryInfo.MoveTo System.IO.File.Move System.IO.FileInfo.MoveTo
MoveFile
ReadDirectoryCha Retrieves System.IO.FileSystemWatcher class ngesW informatio n describing the changes occurring within a directory. ReadFile Reads data from a file, starting at the specified position. Any of the following: System.IO.FileStream.BeginRead/EndRead System.IO.FileStream.Read System.IO.FileStream.ReadByte
ReadFileEx
RemoveDirectory Deletes an Either of the following: existing System.IO.Directory.Delete empty System.IO.DirectoryInfo.Delete directory. SearchPath Searches for the specified file. Any of the following: System.IO.Directory.Exists System.IO.Directory.GetDirectories System.IO.Directory.GetFileSystemEntries System.IO.Directory.GetFiles System.IO.DirectoryInfo.Exists System.IO.DirectoryInfo.GetDirectories System.IO.DirectoryInfo.GetFileSystemInfos System.IO.DirectoryInfo.GetFiles System.IO.File.Exists System.IO.FileInfo.Exists System.IO.Directory.SetCurrentDirectory
SetCurrentDirecto Changes ry the current directory for the current process. SetEndOfFile
Moves the System.IO.FileStream.SetLength end-of-file position for the specified file. Sets the System.IO.File.SetAttributes attributes for a file. Moves the Either of the following: file pointer System.IO.FileStream.Position of an open System.IO.FileStream.Seek file.
SetFileAttributes
SetFilePointer
SetFilePointerEx
Moves the Either of the following: file pointer System.IO.FileStream.Position of an open System.IO.FileStream.Seek file. Unlocks a System.IO.FileStream.Unlock previously locked region in an open file. Unlocks a System.IO.FileStream.Unlock previously locked region in an open file. Writes data to a file. Any of the following: System.IO.FileStream.BeginWrite and EndWrite System.IO.FileStream.Write System.IO.FileStream.WriteByte System.IO.BinaryWriter.Write
UnlockFile
UnlockFileEx
WriteFile
WriteFileEx
Alphabetical Win32 Category List Hierarchical Win32 Category List File System Functions Used with file systems: Win32 function Descripti .NET Framework API on
GetDiskFreeSp Retrieve System.Management.ManagementObject("Win32_LogicalDi ace s sk.DeviceID=\"C:\"").Get informat System.Management.ManagementObject.Properties ion about the specified disk, includin g the amount of free space on the disk. GetDiskFreeSp Retrieve System.Management.ManagementObject("Win32_LogicalDi aceEx s sk.DeviceID=\"C:\"").Get informat System.Management.ManagementObject.Properties ion about the specified disk, includin g the amount of free space on the disk. GetLogicalDriv Fills a Either of the following: eStrings buffer System.Environment.GetLogicalDrives with System.IO.Directory.GetLogicalDrives strings that specify valid drives in the system. Used with an encrypted file system:
EncryptFile
FileEncryptionSt Retrieves the encryption System.IO.FileSystemInfo.Attributes atus status of the specified file. Alphabetical Win32 Category List Hierarchical Win32 Category List Filled Shape Functions Win32 function Chord Description .NET Framework API
Draws an area bounded System.Drawing.Graphics.DrawArc by an ellipse and a line System.Drawing.Graphics.DrawLine segment. Draws an ellipse. System.Drawing.Graphics.DrawEllipse System.Drawing.Graphics.FillEllipse
Ellipse
FillRect
InvertRec Inverts the color values System.Windows.Forms.ControlPaint.DrawRevers t of the pixels in a ibleFrame rectangle. System.Windows.Forms.ControlPaint.DrawRevers ibleLine Pie Draws a pie-shaped wedge bounded by an ellipse and two radials. System.Drawing.Graphics.DrawPie System.Drawing.Graphics.FillPie
Polygon
Draws a polygon.
System.Drawing.Graphics.DrawPolygon System.Drawing.Graphics.FillPolygon System.Drawing.Graphics.DrawRectangle System.Drawing.Graphics.FillRectangle System.Drawing.Drawing2D.GraphicsPath.AddLi nes System.Drawing.Pen.LineJoin = System.Drawing.Pen.LineJoin.Round System.Drawing.Graphics.DrawPath System.Drawing.Graphics.FillPath
Alphabetical Win32 Category List Hierarchical Win32 Category List Font and Text Functions Win32 function Description .NET Framework API
AddFontMemResourc Adds an System.Drawing.Text.PrivateFontCollection.A eEx embedded font ddMemoryFont to the system font table. AddFontResourceEx Adds a private or nonenumerable font to the system font table. Creates a logical font. System.Drawing.Text.PrivateFontCollection.A ddFontFile
CreateFont
System.Drawing.Font constructor
DrawText
DrawTextEx
formatted text in a rectangle. EnumFontFamExProc An application- System.Drawing.Text.InstalledFontCollection. defined Families callback function used with EnumFontFamili esEx to process fonts. EnumFontFamiliesEx Enumerates all System.Drawing.Text.InstalledFontCollection. fonts in the Families system with certain characteristics. ExtTextOut Draws a character string. System.Drawing.Graphics.DrawString
GetCharABCWidths
Gets the widths Get a Region[] for the characters: of consecutive System.Drawing.Graphics.MeasureCharacterR characters from anges; the TrueType Determine the width of each Region: font. System.Drawing.Rectangle.Round(Region.Get Bounds).Width
GetCharABCWidthsFl Gets the widths Get a Region[] for the characters: oat of consecutive System.Drawing.Graphics.MeasureCharacterR characters from anges; the current Determine the width of each Region: font. System.Drawing.Region.GetBounds.Width GetCharWidth32 Gets the widths Get a Region[] for the characters: of consecutive System.Drawing.Graphics.MeasureCharacterR characters from anges;
GetCharWidthFloat
Gets the Get a Region[] for the characters: fractional System.Drawing.Graphics.MeasureCharacterR widths of anges; consecutive characters from Determine the width of each Region: System.Drawing.Region.GetBounds.Width the current font.
GetOutlineTextMetric Gets text System.Drawing.Font properties s metrics for TrueType fonts. GetTabbedTextExtent Computes the System.Drawing.Graphics.MeasureString width and height of a character string, including tabs. GetTextAlign Gets the text- System.Drawing.StringFormat.Alignment alignment System.Drawing.StringFormat.LineAlignment setting for a device context. Gets the text System.Drawing.SolidBrush.Color color for a device context. System.Drawing.Graphics.MeasureString
GetTextColor
is selected into a device context. GetTextMetrics Fills a buffer with the metrics for a font. System.Drawing.Font properties
RemoveFontMemRes Removes a font System.Drawing.Text.PrivateFontCollection.Di ourceEx whose source spose was embedded in a document from the system font table. RemoveFontResource Removes a System.Drawing.Text.PrivateFontCollection.Di Ex private or non- spose enumerable font from the system font table. SetTextAlign Sets the text- System.Drawing.StringFormat.Alignment alignment flags System.Drawing.StringFormat.LineAlignment for a device context. Sets the text Either of the following: color for a System.Drawing.Brushes device context. System.Drawing.SolidBrush.SolidBrush(Color) Writes a System.Drawing.Graphics.DrawString using character string System.Drawing.StringFormat.SetTabStops at a location, expanding tabs to specified values.
SetTextColor
TabbedTextOut
TextOut
Alphabetical Win32 Category List Hierarchical Win32 Category List Icon Functions Win32 function CopyIcon Description Copies an icon from another module. .NET Framework API System.Drawing.Icon.FromHandl e
CreateIcon
Creates an icon with a specified System.Drawing.Icon constructor size, color, and bit pattern. Destroys an icon. Draws an icon. System.Drawing.Icon.Dispose System.Drawing.Graphics.DrawIc on System.Drawing.Icon.Clone
DestroyIcon DrawIcon
DuplicateIcon
Creates a duplicate of a specified icon. Loads an icon from the executable file associated with an application.
LoadIcon
System.Drawing.Icon constructor
Alphabetical Win32 Category List Hierarchical Win32 Category List Input Method Editor Functions Win32 function Description .NET Framework API Either of the following: System.Windows.Forms.Control.DefaultI meMode System.Windows.Forms.Control.ImeMod
ImmAssociateCont Associates the ext specified input context with the specified window.
e ImmAssociateCont Changes the extEx association between the input method context and the specified window or its children. Any of the following: System.Windows.Forms.Control.DefaultI meMode System.Windows.Forms.Control.ImeMod e System.Windows.Forms.Control.ResetIm eMode System.Windows.Forms.Control.ImeMod e= System.Windows.Forms.ImeMode.Disabl e System.Windows.Forms.Control.ImeMod e
ImmDisableIME
ImmGetContext
Alphabetical Win32 Category List Hierarchical Win32 Category List Keyboard Accelerator Functions Win32 function Description .NET Framework API
TranslateAcceler Processes accelerator keys for System.Windows.Forms.MenuItem.S ator menu commands. hortcut Alphabetical Win32 Category List Hierarchical Win32 Category List Keyboard Input Functions Win32 function Description .NET Framework API
ActivateKeyboardLa Sets the System.Windows.Forms.InputLanguage.CurrentInp yout input locale utLanguage identifier for the
calling thread or the current process. EnableWindow Enables or System.Windows.Forms.Control.Enabled disables mouse and keyboard input to the specified window or control. Retrieves System.Windows.Forms.Form.ActiveForm the window handle to the active window attached to the calling thread's message queue. Retrieves System.Windows.Forms.Control.Controls[].Focused the handle to the window that has the keyboard focus.
GetActiveWindow
GetFocus
GetKeyboardLayout Retrieves System.Windows.Forms.InputLanguage.CurrentInp the active utLanguage input locale identifier for the specified thread.
GetKeyboardLayout Retrieves System.Windows.Forms.InputLanguage.InstalledInp List the input utLanguages locale identifiers correspondi ng to the current set of input locales in the system. GetKeyboardLayout Retrieves System.Windows.Forms.InputLanguage.LayoutNam Name the name of e the active input locale identifier. GetKeyNameText Retrieves a System.Windows.Forms.KeyEventArgs.KeyCode.To string that String represents the name of a key. Determines System.Windows.Forms.Form.Enabled whether the specified window is enabled for mouse and keyboard input. Activates a System.Windows.Forms.Activate window. Sets the System.Windows.Forms.Form.Focus keyboard focus to the specified window.
IsWindowEnabled
SetActiveWindow
SetFocus
ToAscii
Translates System.Windows.Forms.KeyPressEventArgs.KeyCh the ar specified virtual-key code and keyboard state to the correspondi ng character or characters. Translates System.Windows.Forms.KeyPressEventArgs.KeyCh the ar specified virtual-key code and keyboard state to the correspondi ng Unicode character or characters.
ToUnicode
Alphabetical Win32 Category List Hierarchical Win32 Category List Line and Curve Functions Win32 function AngleArc Description Draws a line segment and an arc. .NET Framework API System.Drawing.Graphics.DrawLi ne System.Drawing.Graphics.DrawA rc System.Drawing.Graphics.DrawA rc
Arc
ArcTo
System.Drawing.Graphics.DrawA rc
LineTo
Draws a line from the current System.Drawing.Graphics.DrawLi position up to, but not including, ne the specified point. Draws one or more B&x00E9;zier curves. System.Drawing.Graphics.DrawB eziers
PolyBezier
Polyline
Draws a series of line segments System.Drawing.Graphics.DrawLi by connecting the points in the nes specified array.
Alphabetical Win32 Category List Hierarchical Win32 Category List List Box Functions Win32 function Descriptio .NET Framework API n
DlgDirList Replaces System.Windows.Forms.ListBox.Items.AddRange(System.IO.Dir the ectory.GetFileSystemEntries) contents of a list box with the names of the subdirecto ries and files in a specified directory. DlgDirSel Retrieves System.Windows.Forms.ListBox.SelectedItem ectEx the current selection from a
singleselection list box. GetListBo Retrieves System.Windows.Forms.ListBox properties xInfo informatio n about the specified list box. Alphabetical Win32 Category List Hierarchical Win32 Category List Memory Management Functions Memory management functions: Win32 function Descriptio .NET Framework API n System.Management.ManagementClass("Win32_Opera tingSystem") System.Management.ManagementClass.GetInstances System.Management.ManagementObject.Properties
GlobalMemoryStat Obtains us informati on about the system's current usage of both physical and virtual memory. GlobalMemoryStat Obtains usEx informati on about the system's current usage of both
physical and virtual memory. Global and local functions: Win32 function Description .NET Framework API
GlobalAlloc Allocates the specified number of bytes from the heap. GlobalFree Frees the specified global memory object.
System.Runtime.InteropServices.Marshall.Alloc HGlobal
System.Runtime.InteropServices.Marshall.Free HGlobal
GlobalReAl Changes the size or System.Runtime.InteropServices.Marshall.ReAll loc attributes of a specified ocHGlobal global memory object. LocalAlloc Allocates the specified number of bytes from the heap. LocalFree System.Runtime.InteropServices.Marshall.Alloc HGlobal
LocalReAll Changes the size or the System.Runtime.InteropServices.Marshall.ReAll oc attributes of a specified ocHGlobal local memory object. Alphabetical Win32 Category List Hierarchical Win32 Category List Menu Functions Win32 function Descriptio .NET Framework API ns
AppendMenu
Appends System.Windows.Forms.Menu.MenuItemCollecti an item to on.Add various menus and submenus . Checks or System.Windows.Forms.MenuItem.Checked clears a menu item. Checks a System.Windows.Forms.MenuItem.RadioCheck specified menu item and makes it a radio item. Creates a Any of the following: menu. System.Windows.Forms.ContextMenu constructor System.Windows.Forms.MainMenu constructor System.Windows.Forms.Menu.MenuItemCollecti on constructor Creates a dropdown menu, submenu, or shortcut menu. Either of the following: System.Windows.Forms.ContextMenu constructor System.Windows.Forms.Menu.MenuItemCollecti on constructor
CheckMenuItem
CheckMenuRadioItem
CreateMenu
CreatePopupMenu
DeleteMenu
DestroyMenu
Deletes a System.Windows.Forms.Menu.Dispose menu. Enables, System.Windows.Forms.MenuItem.Enabled disables, or grays a menu item. Gets a System.Windows.Forms.Form.Menu.Handle handle to the menu. Gets System.Windows.Forms.Form.Menu informatio n about a menu bar.
EnableMenuItem
GetMenu
GetMenuBarInfo
GetMenuCheckMarkDime Returns System.Windows.Forms.SystemInformation.Men nsions the uCheckSize dimension s of the default checkmark bitmap. GetMenuDefaultItem Gets the System.Windows.Forms.MenuItem.DefaultItem default menu item on a menu. Gets System.Windows.Forms.MenuItem properties informatio n about a menu. Gets the System.Windows.Forms.Menu.MenuItemCollecti
GetMenuInfo
GetMenuItemCount
number of on.Count items in a menu. GetMenuItemID Gets the System.Windows.Forms.MenuItem.MenuID identifier of a menu item. Gets System.Windows.Forms.MenuItem properties informatio n about a menu item. Gets the System.Windows.Forms.MenuItem.DrawItem bounding System.Windows.Forms.DrawItemEventArgs.Bo rectangle unds for a menu item. Gets the menu flags associate d with a menu item. 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
GetMenuItemInfo
GetMenuItemRect
GetMenuState
GetMenuString
Copies System.Windows.Forms.MenuItem.Text the text string of a menu item into a buffer. Gets a System.Windows.Forms.Menu.MenuItems[].Han handle to dle the drop-
GetSubMenu
down menu or submenu activated by a menu item. InsertMenu Inserts a System.Windows.Forms.Menu.MenuItemCollecti new menu on.Add item into a menu. Inserts a System.Windows.Forms.Menu.MenuItemCollecti new menu on.Add item in a menu. Changes an existing menu item. 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
InsertMenuItem
ModifyMenu
RemoveMenu
Deletes a System.Windows.Forms.Menu.MenuItemCollecti menu on.Remove item or detaches a submenu from a menu. Assigns a System.Windows.Forms.Form.Menu new menu to a window. Sets the System.Windows.Forms.MenuItem.DefaultItem
SetMenu
SetMenuDefaultItem
default menu item for a menu. SetMenuInfo Sets System.Windows.Forms.MenuItem properties informatio n for a menu. Associate System.Windows.Forms.MenuItem.DrawItem sa bitmap with a menu item. Changes System.Windows.Forms.MenuItem properties informatio n about a menu item. Displays a System.Windows.Forms.ContextMenu.Show shortcut menu at a location and tracks item selection on a menu.
SetMenuItemBitmaps
SetMenuItemInfo
TrackPopupMenu
Alphabetical Win32 Category List Hierarchical Win32 Category List Message and Message Queue Functions Win32 function Description .NET Framework API
GetMessageP Retrieves the os position of the cursor for the last message retrieved by GetMessage.
PostQuitMess Indicates to the System.Windows.Forms.Application.ExitThread age system that a thread has made a request to terminate (quit). SendMessage Sends the specified message to a window or windows. Any of the following: System.Windows.Forms.Control.DefWndProc System.Windows.Forms.Control.WndProc System.Windows.Forms.Form.DefWndProc System.Windows.Forms.Form.WndProc
Alphabetical Win32 Category List Hierarchical Win32 Category List Metafile Functions Win32 function CopyEnhMetaFile Description .NET Framework API
Copies the System.Drawing.Imaging.Metafile.Save contents of an enhancedformat metafile to a specified file. Creates a System.Drawing.Imaging.Metafile device context constructor for an enhancedformat metafile.
CreateEnhMetaFile
DeleteEnhMetaFile
Deletes an System.Drawing.Imaging.Metafile.Dispose enhancedformat metafile or an enhancedformat metafile handle. An application- System.Drawing.Graphics.EnumerateMetafi defined leProc callback function used with EnumEnhMetaF ile. Enumerates the System.Drawing.Graphics.EnumerateMetafi records within le an enhancedformat metafile. Copies a System.Drawing.Graphics.AddMetafileCom comment from ment a buffer into a specified enhancedformat metafile. Creates a System.Drawing.Imaging.Metafile handle that constructor identifies the enhancedformat metafile stored in the specified file. Retrieves the System.Drawing.Imaging.Metafile.Save contents of the
EnhMetaFileProc
EnumEnhMetaFile
GdiComment
GetEnhMetaFile
GetEnhMetaFileBits
specified enhancedformat metafile and copies it into a buffer. GetEnhMetaFileHeader Retrieves the System.Drawing.Imaging.Metafile.GetMetaf record ileHeader containing the header for the specified enhancedformat metafile. GetEnhMetaFilePaletteE Retrieves System.Drawing.Imaging.Metafile.Palette.E ntries optional palette ntries entries from the specified enhanced metafile. GetWinMetaFileBits Converts the System.Drawing.Imaging.Metafile.Save enhancedformat records from a metafile into Windowsformat records. Displays the System.Drawing.Graphics.DrawImage picture stored in the specified enhancedformat metafile. System.Drawing.Imaging.Metafile.PlayReco rd System.Drawing.Imaging.PlayRecordCallba ck
PlayEnhMetaFile
the graphics device interface functions identified by the record. SetEnhMetaFileBits Creates a System.Drawing.Imaging.Metafile.Save memory-based enhancedformat metafile from the specified data. Converts a System.Drawing.Imaging.Metafile.Save metafile from the older Windows format to the new enhanced format.
SetWinMetaFileBits
Alphabetical Win32 Category List Hierarchical Win32 Category List Mouse Input Functions Win32 function Description .NET Framework API
GetDoubleClick Gets the double- System.Windows.Forms.SystemInformation.Doubl Time click time for the eClickTime mouse. mouse_event Synthesizes mouse motion and button clicks. System.Windows.Forms.MouseEventArgs
System.Windows.Forms.Control.Capture
mouse input processing. SetCapture Sets the mouse capture to a window. System.Windows.Forms.Control.Capture
Posts messages System.Windows.Forms.Control.OnMouseLeave when a mouse System.Windows.Forms.Control.OnMouseHover leaves a window or hovers over a window.
Alphabetical Win32 Category List Hierarchical Win32 Category List Multiple Display Monitor Functions Win32 function GetMonitorInfo Description Retrieves information about a display monitor. .NET Framework API System.Windows.Forms.Screen.Bound s System.Windows.Forms.Screen.Primar y System.Windows.Forms.Screen.Workin gArea
MonitorFromPoin Retrieves a handle to the System.Windows.Forms.Screen.FromP t display monitor that oint contains a specified point. MonitorFromRect Retrieves a handle to the display monitor that has the largest area of intersection with a specified rectangle. MonitorFromWin Retrieves a handle to the dow display monitor that has the largest area of System.Windows.Forms.Screen.FromR ectangle
System.Windows.Forms.Screen.FromH andle
intersection with the bounding rectangle of a specified window. Alphabetical Win32 Category List Hierarchical Win32 Category List Multiple-Document Interface Functions Win32 function Description .NET Framework API System.Windows.Forms.Form constructor System.Windows.Forms.Form.AutoScr oll System.Windows.Forms.Form.Deskto pBounds System.Windows.Forms.Form.MdiPare nt System.Windows.Forms.Form.Window State Keyboard events for MDI children are automatically translated.
TranslateMDISys Processes accelerator Accel keystrokes for window menu commands of the MDI child windows associated with the specified MDI client window. Alphabetical Win32 Category List Hierarchical Win32 Category List National Language Functions Win32 function Description
ConvertDefault Converts a System.Globalization.CultureInfo.CurrentCulture Locale default System.Globalization.CultureInfo.InstalledUICulture locale value to an actual locale
identifier. EnumCalendarI Enumerates Access the nfo calendar System.Globalization.CultureInfo.DateTimeFormat information property to get a for a System.Globalization.DateTimeFormatInfo object, and specified then access its properties: locale. System.Globalization.DateTimeFormatInfo.Abbreviated DayNames System.Globalization.DateTimeFormatInfo.Abbreviated MonthNames System.Globalization.DateTimeFormatInfo.DayNames System.Globalization.DateTimeFormatInfo.LongDatePa ttern System.Globalization.DateTimeFormatInfo.MonthName s System.Globalization.DateTimeFormatInfo.ShortDatePa ttern EnumCalendarI Enumerates Iterate through the calendars: nfoEx calendar System.Globalization.CultureInfo.DateTimeFormat.Cale information ndar = for a System.Globalization.CultureInfo.OptionalCalendars[i] specified locale. EnumCalendarI An Same as EnumCalendarInfo nfoProc applicationdefined function used with EnumCalend arInfo. EnumCalendarI An Same as EnumCalendarInfoEx nfoProcEx applicationdefined function used with EnumCalend
arInfoEx. EnumCodePag An Same as EnumSystemCodePages esProc applicationdefined function used with EnumSystem CodePages. EnumDateFor mats Enumerates System.DateTime.GetDateTimeFormats(System.Global the long or ization.CultureInfo) short date formats that are available for a specified locale. Enumerates the long or short date formats that are available for a specified locale, including date formats for any alternate calendars. Iterate through the calendars: System.Globalization.CultureInfo.DateTimeFormat.Cale ndar = System.Globalization.CultureInfo.OptionalCalendars[i]; System.DateTime.GetDateTimeFormats(System.Global ization.CultureInfo)
EnumDateFor matsEx
EnumDateFor matsProc
EnumDateFor matsProcEx
EnumGeoInfoP A callback Same as EnumSystemGeoID roc function used with EnumSystem GeoID. EnumLocalesPr An Same as EnumSystemLocales oc applicationdefined function used with EnumSystem Locales. EnumSystemC Enumerates System.Globalization.CultureInfo.GetCultures(System. odePages the code Globalization.CultureTypes.AllCultures) returns an pages that array of CultureInfo are either installed on The various code page properties of or supported System.Globalization.CultureInfo.TextInfo by a system. EnumSystemG Enumerates Retrieve an array of CultureInfo by calling eoID all GeoIDs on System.Globalization.CultureInfo.GetCultures(System. the system. Globalization.CultureTypes.AllCultures), and then access the following CultureInfo properties: System.Globalization.CultureInfo.ThreeLetterISOLangu ageName System.Globalization.CultureInfo.ThreeLetterWindowsL anguageName System.Globalization.CultureInfo.TwoLetterISOLanguag eName
EnumSystemL Enumerates System.Globalization.CultureInfo.GetCultures(System. ocales the locales Globalization.CultureTypes.SpecificCultures) that are System.Globalization.CultureInfo.GetCultures(System. either Globalization.CultureTypes.InstalledWin32Cultures) installed on or supported by a system. EnumTimeFor mats Enumerates System.DateTime.GetDateTimeFormats the time formats that are available for a specified locale. An Same as EnumTimeFormats applicationdefined function used with EnumTimeFo rmats. Retrieves the System.Globalization.CultureInfo.InstalledUICulture.Tex current ANSI tInfo.ANSICodePage code-page identifier for the system. System.Globalization.CultureInfo.DateTimeFormat
EnumTimeFor matsProc
GetACP
GetCalendarInf Retrieves o information about a calendar. GetCurrencyFo Formats a rmat number string as a currency string for a
Create a System.Globalization.CultureInfo object using the constructor, specifying either the culture name or identifier (or use the current culture of the application available on System.Threading.Thread.CurrentCulture); call System.Convert.ToDouble(str) where str is the
specified locale.
numeric string you want to format; and then call System.Double.ToString("C", ci) (or System.Double.ToString("C") to use the current culture), where C is the standard currency format specifier and ci is the CultureInfo object you created Note For more information on the variety of formatting options available in the .NET Framework, see System.String.Format.
GetDateForma Formats a t date as a date string for a specified locale. GetLocaleInfo Retrieves information about a locale.
System.DateTime(, CultureInfo(LCID).Calendar).ToString
GetNumberFor Formats a mat number string as a number string customized for a specified locale.
Create a System.Globalization.CultureInfo object using the constructor, specifying either the culture name or identifier (or use the current culture of the application available on System.Threading.Thread.CurrentCulture); call System.Convert.ToDouble(str). where str is the numeric string you want to format; and then call System.Double.ToString("N", ci) (or System.Double.ToString("N") to use the current culture), where N is the standard number format specifier and ci is the CultureInfo object you created Note For more information on the variety of formatting options available in the .NET Framework, see System.String.Format.
GetOEMCP
manufacture r (OEM) code-page identifier for the system. GetSystemDef Retrieves the System.Globalization.CultureInfo.InstalledUICulture aultLangID language identifier of the system locale. GetSystemDef Retrieves the System.Globalization.CultureInfo.InstalledUICulture aultLCID system default locale identifier. GetSystemDef Retrieves the System.Globalization.CultureInfo.InstalledUICulture aultUILanguag language e identifier for the default language of the system. GetThreadLoca Retrieves the Either of the following: le current System.Globalization.CultureInfo.CurrentCulture locale for the System.Threading.Thread.CurrentCulture calling thread. GetTimeForma Formats time System.DateTime(, t as a time CultureInfo(LCID).Calendar).ToString string for a specified locale. GetUserDefault Retrieves the System.Globalization.CultureInfo.CurrentCulture LangID language identifier of
the current user locale. GetUserDefault Retrieves the System.Globalization.CultureInfo.CurrentCulture LCID user default locale identifier. GetUserDefault Retrieves the System.Globalization.CultureInfo.CurrentUICulture UILanguage language identifier for the current user language. GetUserGeoID Gets information about the user's location. IsValidCodePag Determines e whether a specified code page is valid. System.Globalization.RegionInfo
Use an array of CultureInfo objects returned by: System.Globalization.CultureInfo.GetCultures(System. Globalization.CultureTypes.AllCultures) Compare to the code page properties of System.Globalization.CultureInfo.TextInfo try{ System.Globalization.CultureInfo(LCID) }
IsValidLocale
LCMapString
specified localedependent transformati on. SetCalendarInf Sets an item System.Globalization.CultureInfo.DateTimeFormat o of locale information for a calendar. SetLocaleInfo Sets an item System.Globalization.CultureInfo.DateTimeFormat of locale System.Globalization.CultureInfo.NumberFormat information.
SetThreadLoca Sets the System.Threading.Thread.CurrentCulture le current locale for the Note Sets langid only. calling thread. Alphabetical Win32 Category List Hierarchical Win32 Category List Painting and Drawing Functions Win32 function BeginPaint Descript .NET Framework API ion Prepares System.Windows.Forms.Form.OnPaint a window for painting.
GetBkColor
Returns System.Windows.Forms.Form.BackColor the backgro und color for a device context. Returns System.Windows.Forms.Form.GetStyle(ControlStyles.Opaque) the backgro und mix mode for a device context.
GetBkMode
GetUpdateR Gets the System.Windows.Forms.PaintEventArgs.ClipRectangle ect coordina tes of the smallest rectangl e that encloses the update region of a window. GetWindowD Gets the C device context for a window, includin g title bar, menus, and Any of the following: System.Drawing.Graphics.FromHwnd(Windows.Forms.Control. Handle) System.Windows.Forms.Control.CreateGraphics.GetHdc System.Windows.Forms.PaintEventArgs.Graphics.GetHdc
scroll bars. GetWindowR Gets a System.Windows.Forms.Control.Region gn copy of the window region of a window. GrayString Draws System.Drawing.Graphics.DrawString(, gray Drawing.Brushes.Gray, ) text at a location.
InvalidateRe Adds a System.Windows.Forms.Control.Invalidate ct rectangl e to the update region of a window. InvalidateRg Invalidat System.Windows.Forms.Control.Invalidate(System.Windows.F n es the orms.Form.ClientRectangle) client area within a region. RedrawWind Updates System.Windows.Forms.Control.Update ow a region in the client area of a window. SetBkColor Sets the System.Windows.Forms.Form.BackColor
backgro und to a color value. SetBkMode Sets the System.Windows.Forms.Form.SetStyle(System.Windows.Form backgro s.ControlStyles.Opaque, System.Boolean) und mix mode of a device context.
SetWindowR Sets the System.Windows.Forms.Control.Region gn window region of a window. UpdateWind Updates System.Windows.Forms.Control.Update ow the client area of a window. Alphabetical Win32 Category List Hierarchical Win32 Category List Path Functions Win32 function CloseFigure Descriptio .NET Framework API n Closes an System.Drawing.Drawing2D.GraphicsPath.CloseFigure open figure in a path. Closes System.Drawing.Graphics.FillPath any open System.Drawing.Drawing2D.GraphicsPath.CloseFigures figures in
FillPath
the current path and fills the interior of the path by using the current brush and polygonfilling mode. FlattenPath Transfor System.Drawing.Drawing2D.GraphicsPath.Flatten ms any curves in the path that is selected into the current device context, turning each curve into a sequence of lines.
GetMiterLimit Retrieves System.Drawing.Pen.MiterLimit the miter limit for the specified device context. GetPath Retrieves System.Drawing.Drawing2D.GraphicsPath.PathData the
coordinat es defining the endpoints of lines and the control points of curves found in the path that is selected into the specified device context. PathToRegion Creates a System.Drawing.Region.Region(System.Drawing.Drawing2 region D.GraphicsPath) from the path that is selected into the specified device context. SetMiterLimit Sets the System.Drawing.Pen.MiterLimit limit for the length of miter joins for the specified device context.
StrokeAndFill Closes System.Drawing.Graphics.DrawPath Path any open System.Drawing.Graphics.FillPath figures in System.Drawing.Drawing2D.GraphicsPath.CloseFigures a path, strokes the outline of the path by using the current pen, and fills its interior by using the current brush. StrokePath Renders System.Drawing.Graphics.DrawPath the specified path by using the current pen. Redefines System.Drawing.Drawing2D.GraphicsPath.Widen the current path as the area that would be painted if the path were stroked using the pen currently selected
WidenPath
into the given device context. Alphabetical Win32 Category List Hierarchical Win32 Category List Pen Functions Win32 function CreatePen Description Creates a logical pen that has the specified style, width, and color. .NET Framework API System.Drawing.Pen constructor
ExtCreatePen
Creates a logical cosmetic or System.Drawing.Pen constructor geometric pen that has the specified style, width, and brush attributes.
Alphabetical Win32 Category List Hierarchical Win32 Category List Performance Monitoring Functions Win32 function Descripti .NET Framework API on Initializes System.Diagnostics.PerformanceCounter a counter constructor structure for the specified counter in the specified query.
PdhAddCounter
value of a counter using the raw counter data passed in the paramete r list. PdhCloseLog Closes System.Diagnostics.EventLog.Close the specified log file. Closes all System.Diagnostics.PerformanceCounterCategor counters y.Delete containe d in the specified query, closes all handles related to the query, and frees all memory associate d with the query. Collects System.Diagnostics.PerformanceCounterCategor the y.ReadCategory current raw data value for all
PdhCloseQuery
PdhCollectQueryData
counters in the specified query and updates the status code of each counter. PdhEnumObjectItems Returns System.Diagnostics.PerformanceCounterCategor the y.GetCounters available System.Diagnostics.PerformanceCounterCategor counters y.GetInstanceNames and instances provided by the specified object on the specified computer . Returns a System.Diagnostics.PerformanceCounterCategor list of y.GetCategories objects available on the specified computer .
PdhEnumObjects
the specified format or two raw performa nce data values if the format conversio n is timebased. PdhGetCounterInfo Retrieves System.Diagnostics.PerformanceCounter informati properties on about a counter, such as data size, counter type, path, and usersupplied data values.
PdhGetCounterTimeBase Returns System.Diagnostics.CounterSample.CounterFreq the time uency base of the specified counter. PdhGetFormattedCounte Returns System.Diagnostics.PerformanceCounter.NextVa rValue the lue current value of a specified
counter in the format requeste d by the caller. PdhGetRawCounterArray Returns System.Diagnostics.PerformanceCounterCategor an array y.ReadCategory of raw values from the specified counter. PdhGetRawCounterValue Returns System.Diagnostics.PerformanceCounter.NextSa the mple current raw value Note System.Diagnostics.InstanceData holds the raw data. of the counter. PdhMakeCounterPath Creates a All of the following: full counter System.Diagnostics.PerformanceCounter.Machin eName path using the System.Diagnostics.PerformanceCounter.Catego members ryName specified System.Diagnostics.PerformanceCounter.Instanc eName in the structure System.Diagnostics.PerformanceCounter.Counte passed in rName the paramete r list. Opens System.Diagnotics.EventLog constructor the specified Note Must explicitly handle writing to the log file. log file.
PdhOpenLog
PdhOpenQuery
Creates System.Diagnostics.PerformanceCounterCategor and y constructor initializes a unique query structure that is used to manage the collection of performa nce data. Validates Either of the following: that the System.Diagnostics.PerformanceCounterCategor specified y.Exists counter System.Diagnostics.PerformanceCounterCategor is y.InstanceExists present on the computer that is specified in the counter path.
PdhValidatePath
Alphabetical Win32 Category List Hierarchical Win32 Category List Printing Functions Functions used to print: Win32 function AbortDoc Description .NET Framework API
Stops the current System.Drawing.Printing.PrintPageEventArgs.Cance print job and l erases everything drawn
since the last call to StartDoc. DeviceCapabil Retrieves the ities capabilities of a printer device driver. EndDoc System.Drawing.Printing.PrinterSettings.PrinterNa me System.Drawing.Printing.PrinterSettings properties
Ends a print job. Either of the following: System.Drawing.Printing.PrintDocument.OnEndPrin t System.Drawing.Printing.PrintController.OnEndPrint Notifies the device that the application has finished writing to a page. System.Drawing.Printing.PrintController.OnEndPag e
EndPage
StartDoc
Starts a print job. System.Drawing.Printing.PrintDocument.Print System.Drawing.Printing.PrintDocument.OnBeginPr int System.Drawing.Printing.PrintController.OnStartPri nt Prepares the printer driver to accept data. System.Drawing.Printing.PrintDocument.OnQueryP ageSettings System.Drawing.Printing.PrintController.OnStartPag e System.Drawing.Printing.PrintDocument.OnPrintPa ge
StartPage
Functions used to access the print spooler: Win32 function Description .NET Framework API
displays a printerconfiguration property sheet for the specified printer. EndPagePrinter Notifies the print System.Drawing.Printing.PrintPageEventArgs.Has spooler that the MorePages application is at the end of a page in a print job. Enumerates the System.Drawing.Printing.PrinterSettings.PaperSiz forms supported es by the specified printer. Enumerates System.Drawing.Printing.PrinterSettings.Installed available Printers printers, print servers, domains, or print providers. System.Drawing.Printing.PrinterSettings constructor System.Drawing.Printing.PrinterSettings.PrinterN ame
EnumForms
EnumPrinters
GetDefaultPrinte Retrieves the r printer name of the default printer for the current user on the local computer. GetForm
GetPrinter
information ame about a specified System.Drawing.Printing.PrinterSettings printer. properties PrinterProperties Displays a System.Windows.Forms.PageSetupDialog printerSystem.Windows.Forms.PrintDialog properties property sheet for the specified printer. SetPrinter Sets the data for a specified printer or sets the state of the specified printer by pausing printing, resuming printing, or clearing all print jobs. System.Drawing.Printing.PrinterSettings.PrinterN ame System.Drawing.Printing.PrinterSettings properties
Alphabetical Win32 Category List Hierarchical Win32 Category List Process and Thread Functions Functions used with processes: Win32 function CreateProcess Description .NET Framework API Creates a System.Diagnostics.Process constructor new process System.Diagnostics.Process.Start and its primary thread. Ends a System.Diagnostics.Process.CloseMainWindow process and all its
ExitProcess
threads. GetCommandLine Retrieves the commandline string for the current process. Either of the following: System.Environment.CommandLine System.Diagnostics.ProcessStartInfo.Arguments
GetCurrentProcess
GetCurrentProcessId Retrieves System.Diagnostics.Process.Id the process identifier of the calling process. GetEnvironmentStrin Retrieves System.Diagnostics.ProcessStartInfo.Environmen gs the tVariables environment block for the current process. GetEnvironmentVaria Retrieves System.Diagnostics.ProcessStartInfo.Environmen ble the value of tVariables[] the specified variable from the environment block of the calling process.
GetExitCodeProcess
Retrieves System.Diagnostics.Process.ExitCode the termination status of the specified process. Retrieves System.Diagnostics.Process.PriorityClass the priority class for the specified process.
GetPriorityClass
GetProcessAffinityMa Retrieves a System.Diagnostics.Process.ProcessorAffinity sk process affinity mask for the specified process and the system affinity mask for the system. GetProcessPriorityBo Retrieves System.Diagnostics.Process.PriorityBoostEnabled ost the priority boost control state of the specified process. GetProcessTimes Retrieves timing information for the specified process. System.Diagnostics.Process.ExitTime System.Diagnostics.Process.PrivilegedProcessorTi me System.Diagnostics.Process.StartTime System.Diagnostics.Process.TotalProcessorTime System.Diagnostics.Process.UserProcessorTime System.Diagnostics.Process.MinWorkingSet
GetProcessWorkingS Retrieves
etSize
the System.Diagnostics.Process.MaxWorkingSet minimum and maximum working set sizes of the specified process. Retrieves System.Diagnostics.Process.StandardError the contents System.Diagnostics.Process.StandardInput of the System.Diagnostics.Process.StandardOutput STARTUPINF System.Diagnostics.Process.StartInfo.WindowStyl O structure e that was specified when the calling process was created. Opens an existing process object. System.Diagnostics.Process.GetProcessById
GetStartupInfo
OpenProcess
SetEnvironmentVaria Sets the System.Diagnostics.ProcessStartInfo.Environmen ble value of an tVariables[] environment variable for the current process. SetPriorityClass Sets the System.Diagnostics.Process.PriorityClass priority class for the specified process. System.Diagnostics.Process.ProcessorAffinity
SetProcessAffinityMa Sets a
sk
SetProcessPriorityBo Disables the System.Diagnostics.Process.PriorityBoostEnabled ost ability of the system to temporarily boost the priority of the threads of the specified process. SetProcessWorkingSe Sets the System.Diagnostics.Process.MaxWorkingSet tSize minimum System.Diagnostics.Process.MinWorkingSet and maximum working set sizes for the specified process. TerminateProcess Terminates System.Diagnostics.Process.Kill the specified process and all of its threads.
Functions used with threads: Win32 function CreateThread Description .NET Framework API
the virtual address space of the calling process. GetCurrentThread Retrieves a System.Threading.Thread.CurrentThread pseudo handle for the current thread.
GetCurrentThreadId Retrieves the Either of the following: thread System.AppDomain.GetCurrentThreadId identifier of System.Diagnostics.ProcessThread.Id the calling thread. GetThreadPriority Retrieves the Either of the following: priority value System.Diagnostics.ProcessThread.PriorityLevel for the System.Threading.Thread.Priority specified thread.
GetThreadPriorityB Retrieves the System.Diagnostics.ProcessThread.PriorityBoost oost priority boost Enabled control state of the specified thread. GetThreadTimes Retrieves System.Diagnostics.ProcessThread.PrivilegedPro timing cessorTime information for System.Diagnostics.ProcessThread.StartTime the specified System.Diagnostics.ProcessThread.TotalProcess thread. orTime System.Diagnostics.ProcessThread.UserProcesso rTime Decrements the suspend count for a System.Threading.Thread.Resume
ResumeThread
thread. SetThreadAffinityM Sets a ask processor affinity mask for the specified thread. SetThreadIdealProc Specifies a essor preferred processor for a thread. SetThreadPriority System.Diagnostics.ProcessThread.ProcessorAffi nity
System.Diagnostics.ProcessThread.IdealProcess or
Sets the Either of the following: priority value System.Diagnostics.ProcessThread.PriorityLevel for the System.Threading.Thread.Priority specified thread. System.Diagnostics.ProcessThread.PriorityBoost Enabled
SetThreadPriorityBo Enables or ost disables the ability of the system to temporarily boost the priority of a thread. Sleep
Suspends the System.Threading.Thread.Sleep execution of the current thread for a specified interval. Suspends the System.Threading.Thread.Suspend specified thread.
SuspendThread
SwitchToThread
Causes the System.Threading.Thread.Sleep(0) calling thread to yield execution to another thread that is ready to run on the current processor. Terminates a thread. System.Threading.Thread.Abort
TerminateThread
ThreadProc
An See System.Threading.ThreadStart delegate applicationdefined function that serves as the starting address for a thread. Allocates a System.Threading.Thread.AllocateNamedDataSl thread local ot storage (TLS) index. Releases a TLS index. System.Threading.Thread.FreeNamedDataSlot
TlsAlloc
TlsFree
TlsGetValue
Retrieves the System.Threading.Thread.GetData value in the calling thread's TLS slot for a specified TLS index. Stores a value System.Threading.Thread.SetData in the calling
TlsSetValue
thread's TLS slot for a specified TLS index. WaitForInputIdle Waits until the System.Diagnostics.Process.WaitForInputIdle specified process is waiting for user input with no input pending or until the timeout interval has elapsed.
Functions used in thread pooling: Win32 function Description .NET Framework API
BindIoCompletionCal Binds the System.Threading.ThreadPool.BindHandle lback specified file handle to the I/O completion port for the thread pool. QueueUserWorkItem Queues a work item to a worker thread in the thread pool. Alphabetical Win32 Category List Hierarchical Win32 Category List PSAPI Functions Win32 function EnumProcesses Description .NET Framework API System.Threading.ThreadPool.QueueUserWorkIt em System.Threading.ThreadPool.UnsafeQueueUser WorkItem
identifier for each process object in the system. EnumProcessModu Retrieves a handle for System.Diagnostics.Process.Modules les each module in the specified process. GetModuleBaseNa Retrieves the base System.Diagnostics.ProcessModule.Modul me name for the specified eName module. GetModuleFileNam Retrieves the fully Either of the following: eEx qualified path for the System.Diagnostics.ProcessModule.FileNa specified module. me System.Reflection.Module.FullyQualifiedN ame GetModuleInforma Retrieves information System.Diagnostics.ProcessModule tion about the specified module. GetProcessMemor Retrieves information yInfo about the memory usage of the specified process. System.Diagnostics.Process.PagedMemor ySize System.Diagnostics.Process.PeakPagedMe morySize System.Diagnostics.Process.PeakWorking Set System.Diagnostics.Process.WorkingSet
Alphabetical Win32 Category List Hierarchical Win32 Category List Rectangle Functions Win32 function EqualRect Description .NET Framework API
Determines whether the two System.Drawing.Rectangle.Equal specified rectangles are equal by s comparing the coordinates of
their upper-left and lower-right corners. InflateRect Increases or decreases the width System.Drawing.Rectangle.Inflat and height of the specified e rectangle. Calculates the intersection of two source rectangles and places the coordinates of the intersection rectangle into the destination rectangle. Determines whether the specified rectangle is empty. System.Drawing.Rectangle.Inter sect
IntersectRect
IsRectEmpty
System.Drawing.Rectangle.IsEm pty
OffsetRect
Moves the specified rectangle by System.Drawing.Rectangle.Offse the specified offsets. t Determines whether the specified point lies within the specified rectangle. Sets the coordinates of the specified rectangle. Creates an empty rectangle in which all coordinates are set to zero. Creates the union of two rectangles. System.Drawing.Rectangle.Cont ains
PtInRect
SetRect
SetRectEmpty
UnionRect
System.Drawing.Rectangle.Unio n
Alphabetical Win32 Category List Hierarchical Win32 Category List Region Functions Win32 function Description .NET Framework API
CombineRgn
Combines System.Drawing.Region.Clone two regions System.Drawing.Region.Exclude and stores System.Drawing.Region.Intersect the result System.Drawing.Region.Union in a third System.Drawing.Region.Xor region.
CreateEllipticRgn Creates an System.Drawing.Drawing2D.GraphicsPath constructor elliptical System.Drawing.Drawing2D.GraphicsPath.AddEllipse region. System.Drawing.Region.Region(System.Drawing.Draw ing2D.GraphicsPath) CreateEllipticRgnI Creates an System.Drawing.Drawing2D.GraphicsPath constructor ndirect elliptical System.Drawing.Drawing2D.GraphicsPath.AddEllipse region. System.Drawing.Region.Region(System.Drawing.Draw ing2D.GraphicsPath) CreatePolygonRg Creates a n polygonal region. System.Drawing.Drawing2D.GraphicsPath constructor System.Drawing.Drawing2D.GraphicsPath.AddPolygon System.Drawing.Region.Region(System.Drawing.Draw ing2D.GraphicsPath) System.Drawing.Drawing2D.GraphicsPath constructor System.Drawing.Drawing2D.GraphicsPath.AddPolygon System.Drawing.Region.Region(System.Drawing.Draw ing2D.GraphicsPath)
CreateRectRgnIn Creates a System.Drawing.Region.Region(System.Drawing.Rect direct rectangular angle) region. CreateRoundRect Creates a System.Drawing.Drawing2D.GraphicsPath.AddLines Rgn rectangular System.Drawing.Pen.LineJoin = region with System.Drawing.Drawing2D.LineJoin.Round rounded corners.
EqualRgn
Checks the System.Drawing.Region.Equals two specified regions to determine whether they are identical.
ExtCreateRegion Creates a System.Drawing.Region.Transform region from the specified region and transforma tion data. FillRgn Fills a region by using the specified brush. System.Drawing.Graphics.FillRegion
GetPolyFillMode
Retrieves System.Drawing.Drawing2D.GraphicsPath.FillMode the current polygon fill mode. Fills the System.Drawing.Region.GetRegionData specified buffer with data describing a region. Retrieves the bounding rectangle of the System.Drawing.Region.GetBounds
GetRegionData
GetRgnBox
PtInRegion
Determines System.Drawing.Region.IsVisible whether the specified point is inside the specified region. Determines System.Drawing.Region.IsVisible whether any part of the specified rectangle is within the boundaries of a region. Sets the System.Drawing.Drawing2D.GraphicsPath.FillMode polygon fill mode for functions that fill polygons.
RectInRegion
SetPolyFillMode
Alphabetical Win32 Category List Hierarchical Win32 Category List Registry Functions Win32 function Description .NET Framework API
RegCloseKey
RegConnectRegistry Establishes a connection to a predefined registry handle on another computer. RegCreateKeyEx Creates the specified registry key. Deletes a subkey.
Microsoft.Win32.RegistryKey.CreateSubKe y
RegDeleteKey
RegDeleteValue
RegEnumKeyEx
Enumerates subkeys Microsoft.Win32.RegistryKey.GetSubKeyN of the specified ames open registry key. Enumerates the values for the specified open registry key. Microsoft.Win32.RegistryKey.GetValueNa mes Microsoft.Win32.RegistryKey.GetValue
RegEnumValue
RegFlushKey
Writes all the Microsoft.Win32.RegistryKey.Flush attributes of the specified open registry key into the registry. Microsoft.Win32.Registry.CurrentUser
HKEY_CURRENT_USE R key for the user that the current thread is impersonating. RegOpenKeyEx Opens the specified Microsoft.Win32.RegistryKey.OpenSubKey registry key.
RegOpenUserClasse Retrieves a handle Microsoft.Win32.Registry.ClassesRoot sRoot to the HKEY_CLASSES_ROO T key for the specified user. RegQueryInfoKey Retrieves information about the specified registry key. Retrieves the type and data for a specified value name associated with an open registry key. Sets the data and type of a specified value under a registry key. Microsoft.Win32.RegistryKey.SubKeyCoun t Microsoft.Win32.RegistryKey.ValueCount
RegQueryValueEx
Microsoft.Win32.RegistryKey.GetValue
RegSetValueEx
Microsoft.Win32.RegistryKey.SetValue
Alphabetical Win32 Category List Hierarchical Win32 Category List Resource Functions Win32 function CopyImage Description Creates a new icon, .NET Framework API System.Drawing.Image.Clone
cursor, or bitmap and copies the attributes of the old one to the new one. EnumResNamePr An application-defined System.Resources.ResourceReader.GetEnu oc callback function used merator with EnumResourceNames. EnumResourceNa Searches for resources System.Resources.ResourceReader.GetEnu mes of a specified type and merator passes the name or the ID to a callback function. LoadImage Loads an icon, cursor, System.Drawing.Bitmap.Bitmap(System.Ty or bitmap. pe, System.String) System.Drawing.Icon.Icon(System.Type, System.String) System.Windows.Forms.Cursor.Cursor(Syst em.Type, System.String) System.Resources.ResourceManager.GetO bject System.Resources.ResourceSet.GetObject
Alphabetical Win32 Category List Hierarchical Win32 Category List Rich Edit Control Functions Win32 Funtion Description EditStreamCall An applicationback defined callback function used with the EM_STREAMIN and EM_STREAMOUT messages. .NET Framework API System.Windows.Forms.RichTextBox.LoadFile System.Windows.Forms.RichTextBox.RichTextB ox.SaveFile Note Not a callback function.
Alphabetical Win32 Category List Hierarchical Win32 Category List Scroll Bar Functions Win32 function Description .NET Framework API
GetScrollBarI Retrieves information about System.Windows.Forms.ScrollBar.Value nfo the specified scroll bar. System.Windows.Forms.ScrollEventArgs.T ype GetScrollInfo Retrieves the parameters of System.Windows.Forms.ScrollBar.Maximu a scroll bar. m System.Windows.Forms.ScrollBar.Minimu m System.Windows.Forms.ScrollBar.Value GetScrollPos Retrieves the current position of the scroll box. GetScrollRan Retrieves the current ge minimum and maximum scroll box positions. System.Windows.Forms.ScrollBar.Value
System.Windows.Forms.ScrollBar.Minimu m System.Windows.Forms.ScrollBar.Maximu m Any of the following: System.Windows.Forms.Form.AutoScroll System.Windows.Forms.HScrollBar constructor System.Windows.Forms.ListBox.Horizontal ScrollBar System.Windows.Forms.ListBox.ScrollAlwa ysVisible System.Windows.Forms.RichTextBox.Scrol lBars System.Windows.Forms.ScrollableControl. HScroll System.Windows.Forms.ScrollableControl. VScroll System.Windows.Forms.TextBox.ScrollBar s System.Windows.Forms.VScrollBar constructor
Alphabetical Win32 Category List Hierarchical Win32 Category List Service Functions Functions implemented by services: Win32 function Handler Description .NET Framework API
An application-defined All of the following: callback function used System.ServiceProcess.ServiceBase.OnContin with ue RegisterServiceCtrlHandle System.ServiceProcess.ServiceBase.OnCusto r. mCommand ServiceProcess.ServiceBase.OnPause System.ServiceProcess.ServiceBase.OnShutdo wn
System.ServiceProcess.ServiceBase.OnStop HandlerEx An application-defined All of the following: callback function used System.ServiceProcess.ServiceBase.OnContin with ue RegisterServiceCtrlHandle System.ServiceProcess.ServiceBase.OnCusto rEx. mCommand System.ServiceProcess.ServiceBase.OnPause System.ServiceProcess.ServiceBase.OnPowerE vent System.ServiceProcess.ServiceBase.OnShutdo wn System.ServiceProcess.ServiceBase.OnStop ServiceMai An application-defined n function that serves as the entry point for a service. System.ServiceProcess.ServiceBase.Run
Functions used by programs that control or configure services: Win32 function Description .NET Framework API
ChangeServiceConfi Changes System.ServiceProcess.ServiceController.DisplayN g the ame configuratio n parameters of a service. CloseServiceHandle Closes the System.ServiceProcess.ServiceController.Close specified handle to a service control manager object or a service object. ControlService Sends a System.ServiceProcess.ServiceController.Continue
control code System.ServiceProcess.ServiceController.Pause to a service. System.ServiceProcess.ServiceController.Stop CreateService Creates a service object and adds it to the specified service control manager database. Marks the specified service for deletion from the service control manager database. System.ServiceProcess.ServiceBase.ServiceName System.ServiceProcess.ServiceInstaller.Install
DeleteService
System.ServiceProcess.ServiceInstaller.Uninstall
EnumDependentSer Retrieves System.ServiceProcess.ServiceController.Depende vices the name ntServices and status of each service that depends on the specified service. EnumServicesStatu Enumerates System.ServiceProcess.ServiceController.GetServic s services in es the specified service control manager
database. GetServiceDisplayN Retrieves System.ServiceProcess.ServiceController.DisplayN ame the display ame name of the specified service. GetServiceKeyNam Retrieves System.ServiceProcess.ServiceBase.ServiceName e the name of System.ServiceProcess.ServiceController.ServiceN the ame specified service. OpenService Opens an existing service. System.ServiceProcess.ServiceController constructor
QueryServiceStatus Retrieves System.ServiceProcess.ServiceController.Status the current status of the specified service. StartService Starts a service. System.ServiceProcess.ServiceController.Start
Alphabetical Win32 Category List Hierarchical Win32 Category List String Functions
Description
Converts a character string System.String.ToLower or a single character to lowercase. Retrieves a pointer to the next character in a string. System.String.GetEnumerator.MoveNe xt
CharNext
CharUpper
Converts a character string System.String.ToUpper or a single character to uppercase. Compares two character strings, using the specified locale. System.String.Compare
CompareString
IsCharAlpha
Determines whether a System.Char.IsLetter character is an alphabetical character. Determines whether a character is either an alphabetical or a numeric character. Determines whether a character is lowercase. Determines whether a character is uppercase. System.Char.IsLetterOrDigit
IsCharAlphaNu meric
IsCharLower
System.Char.IsLower
IsCharUpper
System.Char.IsUpper
LoadString
Loads a string resource from System.Resources.ResourceManager. the executable file GetString associated with a specified module. Appends one string to System.String.Concat
lstrcat
another.
Note Strings are immutable in the .NET Framework. Methods that appear to modify a string actually return a new string. System.String.Compare
lstrcmp
Compares two character strings. Compares two character strings. Copies a string to a buffer.
lstrcmpi
System.String.Compare
lstrcpy lstrcpyn
System.String.ToCharArray
Copies a specified number System.String.CopyTo of characters from a source System.String.ToCharArray string into a buffer. Retrieves the length of the specified string (not including the terminating null character). System.String.Length
lstrlen
wsprintf
Formats and stores a series System.String.Format of characters and values in a buffer. Formats and stores a series System.String.Format of characters and values in a buffer.
wvsprintf
Alphabetical Win32 Category List Hierarchical Win32 Category List Structured Exception-Handling Functions Win32 function GetExceptionCode Description .NET Framework API
occurred. GetExceptionInform Retrieves a machineSystem.Exception class ation independent description of an exception and information about the machine state that existed for the thread when the exception occurred. RaiseException Raises an exception in the calling thread. Throw an instance of a System.Exception
Alphabetical Win32 Category List Hierarchical Win32 Category List Synchronization Functions CriticalSection functions: Win32 function Description .NET Framework API
EnterCriticalSectio Waits for ownership of the System.Threading.Monitor.Enter n specified critical section object. LeaveCriticalSecti Releases ownership of the System.Threading.Monitor.Exit on specified critical section object. TryEnterCriticalSe Attempts to enter a critical ction section without blocking. Event functions: Win32 function Description CreateEvent Creates or opens a named or an unnamed event object. .NET Framework API Either of the following: System.Threading.AutoResetEvent constructor System.Threading.ManualResetEve nt constructor System.Threading.Monitor.TryEn ter
ResetEvent
Sets the specified event object Either of the following: to the nonsignaled state. System.Threading.AutoResetEvent. Reset System.Threading.ManualResetEve nt.Reset Sets the specified event object Either of the following: to the signaled state. System.Threading.AutoResetEvent. Set System.Threading.ManualResetEve nt.Set
SetEvent
InterlockedCompareExchange Performs an System.Threading.Interlocked.Compare atomic Exchange comparison of the specified values and exchanges the values, based on the outcome of the comparison. InterlockedCompareExchange Performs an System.Threading.Interlocked.Compare Pointer atomic Exchange comparison of the specified values and exchange of the values, based on the outcome of the comparison.
InterlockedDecrement
Decrements System.Threading.Interlocked.Decreme (decreases nt by one) the value of the specified variable and checks the resulting value. Atomically System.Threading.Interlocked.Exchange exchanges a pair of values. Increments System.Threading.Interlocked.Incremen (increases by t one) the value of the specified variable and checks the resulting value.
InterlockedExchange
InterlockedIncrement
Creates or opens a named or an System.Threading.Mutex unnamed mutex object. constructor Opens an existing named mutex System.Threading.Mutex(false, object. string, name) constructor Releases ownership of the specified mutex object. System.Threading.Mutex.Releas eMutex
OpenMutex
ReleaseMutex
on RegisterWaitForSingle Directs a Object wait thread in the thread pool to wait on the object. UnregisterWait System.Threading.ThreadPool.RegisterWaitForSingl eObject System.Threading.ThreadPool.UnsafeRegisterWaitF orSingleObject
WaitForMultipleObject Returns Either of the following: s when the System.Threading.WaitHandle.WaitAll specified System.Threading.WaitHandle.WaitAny criteria for the specified objects is met. WaitForSingleObject Returns System.Threading.WaitHandle.WaitOne when the specified criteria for the specified object is met.
CancelWaitable Sets the System.Threading.Timer.Change(System.Threading. Timer specified Timeout.Infinite, System.Threading.Timeout.Infinite) waitable timer to the inactive state. CreateWaitable Creates or System.Threading.Timer constructor Timer opens a waitable timer object. SetWaitableTim Activates the er specified waitable timer. TimerAPCProc System.Threading.Timer constructor
ApplicationSee System.Threading.TimerCallback delegate defined timer completion routine used with SetWaitableTi mer.
Alphabetical Win32 Category List Hierarchical Win32 Category List System Information Functions Win32 function Descriptio .NET Framework API n
variable strings with their defined values. GetComputerName Retrieves System.Environment.MachineName the System.Windows.Forms.SystemInformation.Compute NetBIOS rName name of the local computer. GetCurrentHwProfil Retrieves Use System.Management and e the Microsoft.Win32.RegistryKey current hardware profile for the local computer. GetKeyboardType Retrieves informatio n about the current keyboard. System.Management.ManagementClass("Win32_Key board") System.Management.ManagementClass.GetInstances System.Management.ManagementObject.Properties
GetNativeSystemIn Retrieves System.Management.ManagementClass("Win32_Proc fo informatio essor") n about System.Management.ManagementClass.GetInstances the System.Management.ManagementObject.Properties current system for an applicatio n running under WOW64.
GetSysColor
GetSystemDirector Retrieves System.Environment.SystemDirectory y the path of the system directory. GetSystemInfo Retrieves informatio n about the current system. System.Management.ManagementClass("Win32_Proc essor") System.Management.ManagementClass.GetInstances System.Management.ManagementObject.Properties
GetSystemMetrics
Retrieves System.Windows.Forms.SystemInformation system properties metrics and configurati on settings. Retrieves System.Environment.UserName the user name of the current thread. Retrieves System.Environment.OSVersion the version number of the
GetUserName
GetVersion
operating system. GetVersionEx Retrieves System.Environment.OSVersion the version number of the current operating system.
GetWindowsDirect Retrieves System.Management.ManagementClass("Win32_Ope ory the path ratingSystem") of the System.Management.ManagementClass.GetInstances Windows System.Management.ManagementObject["WindowsD directory. irectory"].ToString Alphabetical Win32 Category List Hierarchical Win32 Category List Tape Backup Functions Win32 function Description GetTapeParame Retrieves ters information that describes the tape or the tape drive. .NET Framework API System.Management.ManagementClass("MSTapeMedi aCapacity") System.Management.ManagementClass("Win32_Tape Drive") System.Management.ManagementClass.GetInstances System.Management.ManagementObject.Properties
Alphabetical Win32 Category List Hierarchical Win32 Category List Text Object Model Functions Win32 function ITextDocument Description Retrieves the active selection and range objects for any story .NET Framework API System.Windows.Forms.RichText
Box
Encapsulates the functionality of System.Windows.Forms.RichText the Microsoft Word Font dialog Box box. Encapsulates the functionality of System.Windows.Forms.RichText the Microsoft Word Paragraph Box dialog box. Enables an application to select System.Windows.Forms.RichText text in a story, and then Box examine or change that text.
ITextPara
ITextRange
Alphabetical Win32 Category List Hierarchical Win32 Category List Time Functions Win32 function GetSystemTime Description Retrieves the current system date and time in UTC format. .NET Framework API System.DateTime.UtcNow
GetTimeFormat
Formats a system time as a System.DateTime.ToString time string for a specified locale. Converts a system time to a System.DateTime.ToFileTime file time.
SystemTimeToFileTi me
FileTimeToLocalFileTi Converts a UTC file time to System.DateTime.ToFileTime me a local file time. GetLocalTime Retrieves the current local date and time. System.DateTime.Now
tion CompareFileTime
ne System.DateTime.Compare
FileTimeToLocalFileTi Converts a UTC file time to System.DateTime.ToLocalTime me a local file time. FileTimeToSystemTi me GetFileTime Converts a file time to system time format. System.DateTime.ToUniversalTim e
Retrieves the date and time Any of the following: that a file was created, last System.IO.Directory.GetCreationT accessed, and last modified. ime System.IO.Directory.GetLastAcces sTime System.IO.Directory.GetLastWrite Time System.IO.DirectoryInfo.CreationT ime System.IO.DirectoryInfo.LastAcce ssTime System.IO.DirectoryInfo.LastWrite Time System.IO.File.GetCreationTime System.IO.File.GetLastAccessTim e System.IO.File.GetLastWriteTime System.IO.FileInfo.CreationTime System.IO.FileInfo.LastAccessTim e System.IO.FileInfo.LastWriteTime System.DateTime.UtcNow.ToFileT imeUtc
GetSystemTimeAsFil Retrieves the current eTime system date and time in UTC format.
LocalFileTimeToFileTi Converts a local file time to System.DateTime.ToFileTimeUtc me a file time based on UTC.
SetFileTime
Sets the date and time that Any of the following: a file was created, last System.IO.Directory.SetCreationTi accessed, or last modified. me System.IO.Directory.SetLastAcces sTime System.IO.Directory.SetLastWrite Time System.IO.DirectoryInfo.CreationT ime System.IO.DirectoryInfo.LastAcce ssTime System.IO.DirectoryInfo.LastWrite Time System.IO.File.SetCreationTime System.IO.File.SetLastAccessTime System.IO.File.SetLastWriteTime System.IO.FileInfo.CreationTime System.IO.FileInfo.LastAccessTim e System.IO.FileInfo.LastWriteTime Converts a system time to a System.DateTime.ToFileTime file time. Retrieves the number of milliseconds that have elapsed since the system was started. System.Environment.TickCount
SystemTimeToFileTi me GetTickCount
Alphabetical Win32 Category List Hierarchical Win32 Category List Timer Functions Win32 function KillTimer Description Destroys the specified timer. .NET Framework API System.Threading.Timer.Dispose System.Timers.Timer.Dispose System.Windows.Forms.Timer.Dispose System.Diagnostics.PerformanceCounter.Ne
ter
QueryPerformanceFreq Retrieves the uency frequency of the highresolution performance counter. SetTimer Creates a timer with the specified timeout value.
System.Diagnostics.PerformanceCounter.Co unterType
Any of the following: System.Threading.Timer constructor System.Timers.Timer constructor System.Windows.Forms.Timer constructor System.Windows.Forms.Timer.Interval Either of the following: System.Threading.TimerCallback delegate System.Timers.ElapsedEventHandler delegate
TimerProc
Alphabetical Win32 Category List Hierarchical Win32 Category List Tool Help Functions Win32 function Description .NET Framework API System.Diagnostics.Process.GetPr ocesses System.Diagnostics.Process.Modu les System.Diagnostics.Process.Threa ds
CreateToolhelp32Sna Takes a snapshot of the pshot processes and heaps, modules, and threads used by the processes.
Module32First
Retrieves information System.Diagnostics.Process.Modu about the first module les associated with a process. Retrieves information about the next module associated with a process or thread. Retrieves information about the first process encountered in a system snapshot. Retrieves information about the next process recorded in a system snapshot. System.Diagnostics.Process.Modu les
Module32Next
Process32First
System.Diagnostics.Process.GetPr ocesses
Process32Next
System.Diagnostics.Process.GetPr ocesses
Thread32First
Retrieves information System.Diagnostics.Process.Threa about the first thread of ds any process encountered in a system snapshot. Retrieves information System.Diagnostics.Process.Threa about the next thread of ds any process encountered in the system memory snapshot.
Thread32Next
Alphabetical Win32 Category List Hierarchical Win32 Category List Unicode and Character Set Functions Win32 function GetTextCharset Description Retrieves a character-set identifier for the font that is currently selected into a .NET Framework API System.Drawing.Font.GdiCharSe t
specified device context. Alphabetical Win32 Category List Hierarchical Win32 Category List User Profile Functions Win32 function Descriptio .NET Framework API n
CreateEnvironmentBlock Retrieves Microsoft.Win32.Registry class the Microsoft.Win32.RegistryKey.OpenSubKey(name environm ).GetValue ent variables for the specified user. DeleteProfile Deletes System.IO.Directory.Delete the user Microsoft.Win32.Registry profile Microsoft.Win32.RegistryKey.DeleteSubKey and all userrelated settings from the specified computer . Microsoft.Win32.Registry class Microsoft.Win32.RegistryKey.OpenSubKey(name ).GetValueNames, and then call GetValue for each name
ExpandEnvironmentStrin Expands gsForUser the source string by using the environm ent block establish ed for the specified
user. GetAllUsersProfileDirecto Retrieves Microsoft.Win32.Registry class ry the path Microsoft.Win32.RegistryKey.OpenSubKey(name to the ).GetValue root of the All Users profile. GetDefaultUserProfileDir Retrieves Microsoft.Win32.Registry class ectory the path Microsoft.Win32.RegistryKey.OpenSubKey(name to the ).GetValue root of the Default User profile. GetProfilesDirectory Retrieves Microsoft.Win32.Registry class the path Microsoft.Win32.RegistryKey.OpenSubKey(name to the ).GetValue root directory where all of the user profiles are stored. Retrieves Microsoft.Win32.Registry class the path Microsoft.Win32.RegistryKey.OpenSubKey(name to the ).GetValue root directory of the profile for the specified
GetUserProfileDirectory
user. Alphabetical Win32 Category List Hierarchical Win32 Category List Version Information Functions Win32 function Description .NET Framework API System.Diagnostics.FileVersionInfo.GetVe rsionInfo
GetFileVersionInf Determines whether System.Diagnostics.FileVersionInfo.GetVe oSize the operating system rsionInfo can retrieve version information for a specified file. If version information is available, the function returns the size, in bytes, of that information. VerLanguageNam Retrieves a description System.Globalization.CultureInfo.Name e string for the language associated with a specified binary Microsoft language identifier. VerQueryValue Retrieves specified version information from the specified version-information resource. System.Diagnostics.FileVersionInfo properties
Alphabetical Win32 Category List Hierarchical Win32 Category List Window Functions Win32 function Description .NET Framework API
AdjustWindowRect
Calculates the System.Windows.Forms.Form.ClientSize required size of the window rectangle, based on the desired clientrectangle size.
AdjustWindowRectE Calculates the System.Windows.Forms.Form.ClientSize x required size of the window rectangle, based on the desired clientrectangle size. ArrangeIconicWindo Arranges all System.Windows.Forms.Form.LayoutMdi(MdiLay ws minimized out.ArrangeIcons) (iconic) child windows of the specified parent window. BringWindowToTop Brings the System.Windows.Forms.Form.BringToFront specified window to the top of the Z order. Cascades the System.Windows.Forms.Form.LayoutMdi(MdiLay specified child out.Cascade) windows of the specified parent window. System.Windows.Forms.Form.GetChildAtPoint
CascadeWindows
ChildWindowFromPo Determines
int
which, if any, of the child windows belonging to a parent window contains the specified point. Minimizes (but System.Windows.Forms.Form.WindowState = does not System.Windows.Forms.FormWindowState.Mini destroy) the mized specified window. Creates an System.Windows.Forms.Form constructor overlapped, pop-up, or child window. Creates an System.Windows.Forms.Form constructor overlapped, pop-up, or child window with an extended window style. Destroys the specified window. System.Windows.Forms.Form.Close
CloseWindow
CreateWindow
CreateWindowEx
DestroyWindow
EnumChildProc
An application- Same as EnumChildWindows defined callback function used with EnumChildWin dows.
EnumChildWindows Enumerates the child windows that belong to the specified parent window. GetAncestor
System.Windows.Forms.Form.Controls
Retrieves the System.Windows.Forms.Form.FindForm handle to the System.Windows.Forms.Form.Owner ancestor of the System.Windows.Forms.Form.Parent specified window. Retrieves the System.Windows.Forms.Form.ClientRectangle coordinates of the client area for a window. System.Windows.Forms.Form.ActiveForm
GetClientRect
GetLayeredWindow Retrieves the System.Windows.Forms.Form.Opacity Attributes opacity and System.Windows.Forms.Form.TransparencyKey transparency color key of a layered window. GetNextWindow Retrieves a handle to the next or previous window in Z order. Retrieves a handle to the System.Windows.Forms.Form.Controls[1 +/Control.IndexOf]
GetParent
System.Windows.Forms.Form.FindForm
parent window System.Windows.Forms.Form.Parent for the specified child window. GetTitleBarInfo Retrieves information about the specified title bar. System.Windows.Forms.Form.SystemInformatio n.CaptionButtonSize System.Windows.Forms.Form.SystemInformatio n.CaptionHeight System.Windows.Forms.Form.HelpButton System.Windows.Forms.Form.MaximizeBox System.Windows.Forms.Form.MinimizeBox System.Windows.Forms.Form.Controls[0]
GetTopWindow
GetWindow
Retrieves a System.Windows.Forms.Form.Controls handle to a window that has the specified relationship to the specified window. Retrieves information about the specified window. System.Windows.Forms.Form.ClientSize System.Windows.Forms.Form.CreateParams.Ex Style System.Windows.Forms.Form.CreateParams.Sty le System.Windows.Forms.Form.Name System.Windows.Forms.Form.ProductVersion System.Windows.Forms.Form.Size System.Windows.Forms.SystemInformation.Bor derSize System.Windows.Forms.Form.Bounds
GetWindowInfo
nt
show state and the restored, minimized, and maximized positions of the specified window.
GetWindowRect
Retrieves the System.Windows.Forms.Form.Bounds dimensions of the bounding rectangle of the specified window. Copies the System.Windows.Forms.Form.Text text of the title bar of the specified window. System.Windows.Forms.Form.Text.Length
GetWindowText
GetWindowTextLeng Retrieves the th length of the title bar text for the specified window. IsChild
Tests whether System.Windows.Forms.Form.Contains a window is a System.Windows.Forms.Form.IsMdiChild child window or descendant window of a specified parent window. Determines System.Windows.Forms.Form.WindowState
IsIconic
whether the specified window is minimized (iconic). IsWindowVisible Retrieves the System.Windows.Forms.Form.Visible visibility state of the specified window. Determines whether a window is maximized (zoomed). System.Windows.Forms.Form.WindowState
IsZoomed
MoveWindow
Changes the System.Windows.Forms.Form.SetBounds position and dimensions of the specified window. Restores a minimized (iconic) window to its previous size and position. System.Windows.Forms.Form.WindowState = System.Windows.Forms.FormWindowState.Nor mal
OpenIcon
SetForegroundWind Puts the System.Windows.Forms.Form.Activate ow thread that created the specified window into the foreground and activates the window.
SetLayeredWindowA Sets the System.Windows.Forms.Form.Opacity ttributes opacity and System.Windows.Forms.Form.TransparencyKey transparency color key of a layered window. SetParent Changes the System.Windows.Forms.Form.Parent parent window of the specified child window. System.Windows.Forms.Form.Bounds System.Windows.Forms.Form.MaximizedBounds System.Windows.Forms.Form.SetBounds System.Windows.Forms.Form.Visible System.Windows.Forms.Form.WindowState
SetWindowPlaceme Sets the show nt state and the restored, minimized, and maximized positions of the specified window. SetWindowPos Changes the size, position, and Z order of a window.
SetWindowText
Changes the System.Windows.Forms.Form.Text text of the title bar for the specified window. Sets the show System.Windows.Forms.Form.Show state of the System.Windows.Forms.Form.Visible specified System.Windows.Forms.Form.WindowState window.
ShowWindow
TileWindows
Tiles the System.Windows.Forms.Form.LayoutMdi(MdiLay specified child out.TileHorizontal) windows of the System.Windows.Forms.Form.LayoutMdi(MdiLay specified out.TileVertical) parent window. Retrieves a handle to the window that contains the specified point. System.Windows.Forms.Form.GetChildAtPoint
WindowFromPoint
Alphabetical Win32 Category List Hierarchical Win32 Category List Window Class Functions Win32 function Description GetClassInfo .NET Framework API
Retrieves information System.ComponentModel.Component.Events about a window class. System.Windows.Forms.Control.Cursor System.Windows.Forms.Control.Name System.Windows.Forms.Form.BackColor System.Windows.Forms.Form.Icon System.Windows.Forms.Form.Menu System.Windows.Forms.Form.CreateParams. ClassStyle Retrieves the specified 32-bit value from the WNDCLASSEX structure associated with the specified window. System.ComponentModel.Component.Events System.Windows.Forms.Control.Cursor System.Windows.Forms.Control.Name System.Windows.Forms.Form.BackColor System.Windows.Forms.Form.Icon System.Windows.Forms.Form.Menu System.Windows.Forms.Form.CreateParams. ClassStyle System.ComponentModel.Component.Events System.Windows.Forms.Control.Cursor
GetClassLong
GetClassName
Retrieves the name of System.Windows.Forms.Control.Name the class to which the specified window belongs.
GetWindowLon Retrieves information System.ComponentModel.Component.Events g about the specified System.Windows.Forms.Control.Parent window. System.Windows.Forms.Form.CreateParams. ExStyle System.Windows.Forms.Form.CreateParams. Style System.Windows.Forms.Form properties GetWindowLon Retrieves information System.ComponentModel.Component.Events gPtr about the specified System.Windows.Forms.Control.Parent window. System.Windows.Forms.Form.CreateParams. ExStyle System.Windows.Forms.Form.CreateParams. Style System.Windows.Forms.Form properties RegisterClass Registers a window class. System.Windows.Forms.Control.Cursor System.Windows.Forms.Control.Name System.Windows.Forms.Form.BackColor System.Windows.Forms.Form.Icon System.Windows.Forms.Form.Menu System.Windows.Forms.Form.CreateParams. ClassStyle System.Windows.Forms.Form events
SetClassLong
Replaces the specified System.Windows.Forms.Control.Cursor 32-bit value at the System.Windows.Forms.Control.Name specified offset into System.Windows.Forms.Form.BackColor
System.Windows.Forms.Form.Icon System.Windows.Forms.Form.Menu System.Windows.Forms.Form.CreateParams. ClassStyle System.Windows.Forms.Form events System.Windows.Forms.Control.Cursor System.Windows.Forms.Control.Name System.Windows.Forms.Form.BackColor System.Windows.Forms.Form.Icon System.Windows.Forms.Form.Menu System.Windows.Forms.Form.CreateParams. ClassStyle System.Windows.Forms.Form events System.Windows.Forms.Control.Parent System.Windows.Forms.Form.CreateParams. ExStyle System.Windows.Forms.Form.CreateParams. Style System.Windows.Forms.Form properties System.Windows.Forms.Form events System.Windows.Forms.Control.Parent System.Windows.Forms.Form.CreateParams. ExStyle System.Windows.Forms.Form.CreateParams. Style System.Windows.Forms.Form properties System.Windows.Forms.Form events
SetClassLongPt Replaces the specified r value at the specified offset into the extra class memory or the WNDCLASSEX structure.
Alphabetical Win32 Category List Hierarchical Win32 Category List Window Procedure Functions Win32 function Description .NET Framework API
default processing for any window messages that an application does not process. WindowProc An application-defined function that processes messages sent to a window.
System.Windows.Forms.Control.DefWndPro c System.Windows.Forms.NativeWindow.Def WndProc Any of the following: System.Windows.Forms.Form.WndProc System.Windows.Forms.Control.WndProc System.Windows.Forms.NativeWindow.Wn dProc
Alphabetical Win32 Category List Hierarchical Win32 Category List Window Property Functions Win32 function GetProp Description .NET Framework API
Retrieves a data handle from the System.Windows.Forms.Control. property list of the specified Tag window. Removes an entry from the property list of the specified window. System.Windows.Forms.Control. Tag
RemoveProp
SetProp
Adds a new entry or changes an System.Windows.Forms.Control. existing entry in the property list Tag of the specified window.