RSG.Interop.Microsoft
Simple ActiveDirectory class; methods for authenticating users and
reading their properties from Active Directory.
Authenticate user against Active Directory.
Username
User's password
Domain
Read Active Directory user properties.
Gets the first mail address for a single user. Will throw an exception if it finds multiple results.
LDAP Domain for the user.
User name to find the first mail address for.
Exception when something goes wrong with the Active Directory Query
Exception thrown when we have issues with active directory operations
Windows file association class; used for reading and writing file association
data to/from the Windows registry.
DHM TODO: add support for loading the associated icon.
Microsoft Windows perceived file types.
http://msdn.microsoft.com/en-us/library/windows/desktop/cc144150(v=vs.85).aspx"
No perceived type specified (default).
File contains text data.
File contains image data.
File contains audio data.
File contains video data.
File contains compressed data.
File is an application document.
File is a system file.
File is an application.
File contains game media.
File contains contact data.
Represents a shell handler consisting of an action string and command-line.
Whether this handler is considered by the shell to be default.
Action name.
Command.
Constructor.
Constructor; from Registry key; e.g. HKEY_CLASSES_ROOT\RockstarGames.Zipfile.UniversalLogZipFile\shell\Open.
Filename extension for association.
File association description.
Icon filename used by Windows Explorer.
Flags.
File association handler alias.
All the Shell handlers associated with the extension.
Content-type as MIME string.
Perceived data type.
http://msdn.microsoft.com/en-us/library/windows/desktop/cc144150(v=vs.85).aspx
Create a new FileAssocation object; writing information into the system registry.
Create a new FileAssocation object; writing information into the system registry.
Internet Explorer interoperability class.
Path to the browser emulation registry key.
Path to the Internet Explorer registry key.
Version value key name.
Returns true if the user has at least ieVersion of Internet Explorer installed.
Internet explorer version. Just the major version number, e.g. 7, 8, 9.
True if the installed version number is greater than or equal to the ieVersion supplied.
Return the version string of Internet Explorer currently installed.
The version of Internet Explorer installed (e.g. "8.0.7600.16385").
Set embedded version of Internet Explorer in WebBrowser control to a
specific version (for entry assembly).
Browser version.
This sets both normal executable and the Visual Studio hosted application.
Set embedded version of Internet Explorer in WebBrowser control to a
specific version (for entry assembly).
Browser version.
This optionally sets both normal executable and the Visual Studio hosted
application.
Set embedded version of Internet Explorer in WebBrowser control to a
specific version for a specific image name (e.g. "Workbench").
Browser version.
Application image name name the setting will apply (e.g. "Workbench").
This sets both normal executable and the Visual Studio hosted application.
Set embedded version of Internet Explorer in WebBrowser control to a
specific version for a specific image name (e.g. "Workbench").
Browser version.
Application image name name the setting will apply (e.g. "Workbench").
A value indicating whether the debug host also gets set.
true iff successful; false if user lacks secutiry credentials.
No path or ".exe" extension should be supplied.
This optionally sets both normal executable and the Visual Studio hosted
application.
Set the web browser to use a specific version of Internet Explorer to render content.
Browser version.
Application name the setting will apply.
Internet Explorer version identifier enumeration.
Default (usually IE7)
Internet explorer 7 with web pages containing standards-based !DOCTYPE directives.
Internet explorer 8 with web pages containing standards-based !DOCTYPE directives.
Internet Explorer 8.
Internet explorer 9 with web pages containing standards-based !DOCTYPE directives.
Internet Explorer 9.
Internet Explorer 10 with web pages containing standard-based !DOCTYPE directives.
Internet Explorer 10
MSBuild interoperability class.
reg.exe query "HKLM\SOFTWARE\Microsoft\MSBuild\ToolsVersions\4.0" /v MSBuildToolsPath
Determine whether any version of MSBuild is installed.
Determine whether a particular version of MSBuild is installed.
MSBuild version identifier enumeration.
Unknown version.
MSBuild 2.0.
MSBuild 3.5.
MSBuild 4.0.
MSBuild 12.0.
MSBuild 14.0.
MSBuild 15.0.
Native Resource Reader class; allows reading of embedded resources in native
executables and dynamic-link libraries.
Library or executable absolute filename.
Loaded module handle.
Temporary callback method.
Constructor; loading library/executable to be ready for reading resources.
Dispose native resources.
Read string resource from loaded module.
Resource string.
If the Resource ID is invalid.
Enumerate resources in module.
Internal callback for enumerating resources.
A class which provides events for a COM object
For more information on late-bound COM events, see
Uwe Keim's article
Constructor
The target COM object
The intercepted type.
The owner
is
-or-
is
does not define the
attribute.
Finalizer
Cleans up the COM object references.
Cleans up the COM object references.
if this was called from the
interface.
Initialize the event sink.
Returns the key for the specified event.
The name of the event.
The event key.
The event sink class should have a static readonly object
field called {EventName}Event, which is used as the
key for the event. If it doesn't, a new object will be
created and used as the key.
Adds an event handler.
The name of the event.
The event handler delegate.
Removes an event handler.
The name of the event.
The event handler delegate.
An attribute used to associate the COM event
interfaces with the wrapped interface.
Extracts the attribute from the specified type.
The interface type.
The .
is .
Extracts the from an interface using
the attribute.
The interface type.
The attached to the interface.
Extracts the from a string.
The GUID or type name.
The extracted from the string.
Constructor
The type of the event sink class.
The of the events interface.
Constructor
The type of the event sink class.
The of the events interface.
Constructor
The type of the event sink class.
The of the events interface.
Constructor
The type of the event sink class.
The of the events interface.
Constructor
The type of the event sink class.
The interface for the events.
Constructor
The type of the event sink class.
The interface for the events.
Returns the type of the event sink class.
Returns the of the events interface.
A class which represents a COM event sink
Constructor
Finalizer
Cleans up the COM object references.
Cleans up the COM object references.
if this was called from the
interface.
Returns a value indicating whether this
event sink is connected to a COM object.
Gets or sets the reference to the
owner
Returns the sender object for events.
Adds a handler to the specified event.
The event key.
The event handler delegate.
is
-or-
is
Removes a handler from the specified event.
The event key.
The event handler delegate.
is
-or-
is
Raises the specified event
The event key
The event arguments
is .
If the event object is an ,
and no arguments are specified,
and will be passed.
Returns a key for an event with no corresponding
static object variable.
The name of the event.
The event key.
Adds a key for an event with no corresponding
static object variable.
The name of the event.
The event key.
Connects this event sink to a COM object.
The connection point to connect to.
is .
Disconnects this event sink from a COM object.
An attribute to specifiy the ProgID of the COM class to create.
(As suggested by Kristen Wegner)
Extracts the attribute from the specified type.
The interface type.
The .
is .
Constructor
The COM ProgID.
Returns the COM ProgID
Wraps a late-bound COM server.
Holds reference to the actual COM object which is wrapped by this proxy
Type of the COM object, set on constructor after getting the COM reference
The type of which method calls are intercepted and executed on the COM object.
The class which provides events for this object
Creates a COM object and returns the transparent proxy
which intercepts all calls to the object
Interface which defines the method and properties to intercept
Transparent proxy to the real proxy for the object
The must be an interface decorated with
the attribute.
Wrap an object and return the transparent proxy which intercepts all calls
to the object
An object to intercept
Interface which defines the method and properties to intercept
Transparent proxy to the real proxy for the object
Constructor
The COM object to wrap.
The interface type to impersonate.
If Dispose is not called, we need to make
sure that the COM object is still cleaned up.
Cleans up the COM object.
Release the COM reference
if this was called from the
interface.
Returns a string representing the wrapped object.
The full name of the intercepted type.
Returns the hash code of the wrapped object.
The hash code of the wrapped object.
Compares this object to another.
The value to compare to.
if the objects are equal.
Returns the base type for a reference type.
The reference type.
The base value type.
is .
Attaches an event handler to the COM object.
The name of the event.
The event handler delegate.
is
-or-
is
Removes an event handler from the COM object.
The name of the event.
The event handler delegate.
is
-or-
is
Intercept method calls
Contains information about the method being called
A .
Specifies the operator to use to associate two criteria applied by a filter.
Logical AND of Criteria1 and Criteria2.
Lowest-valued items displayed (number of items specified in Criteria1).
Lowest-valued items displayed (percentage specified in Criteria1).
Colour of the cell.
Dynamic filter.
Colour of the font.
Filter icon.
Filter values.
Logical OR of Criteria1 or Criteria2.
Highest-valued items displayed (number of items specified in Criteria1).
Highest-valued items displayed (percentage specified in Criteria1).
Represents the entire Microsoft Excel application.
The reference to the work IApplication proxy object.
Initialises a new instance of the class.
The IApplication proxy object.
Gets the name of the specified object.
Gets the Microsoft Excel version number.
Gets a collection containing all of the currently opened work books.
Gets or sets a value indicating whether the application is visible to the user.
Quits Microsoft Excel.
A static class used to create a instance of Microsoft Excel using COM.
A cached result of whether excel is installed.
A generic object used to support threading synchronisation.
Check to see if Excel is installed on the machine.
True if Excel is installed; otherwise, false.
Creates a new Excel IApplication wrapper object.
A new IApplication wrapper object for Excel.
Represents a worksheet object which is apart of a worksheets collection.
The reference to the Excel IWorkbook proxy object.
Initialises a new instance of the class.
The IWorkbook proxy object.
Gets the name of the workbook.
Gets a collection containing all of the work sheets in this workbook.
Represents a collection of all the Excel objects that are currently open inside
a Excel Application.
The reference to the Excel IWorkbooks proxy object.
Initialises a new instance of the class.
The IWorkbooks proxy object.
Gets the number of sheets in the collection.
Gets the document whose ordinal position is specified as a index.
The ordinal position of the individual document to retrieve.
The document whose ordinal position is specified.
Creates a new workbook object with a single worksheet in it using the specified
name and adds it to this collection.
The name of the single worksheet inside the new book.
The single worksheet object inside the created workbook.
Represents a worksheet object which is apart of a worksheets collection.
The reference to the Excel IWorksheet proxy object.
Initialises a new instance of the class.
The IWorksheet proxy object.
Gets or sets the name of the worksheet.
Returns a IRange object that represents a cell or a range of cells.
The name of the range. This must be an A1-style reference in the language of the
macro. It can include the range operator (a colon), the intersection operator
(a space), or the union operator (a comma).
A IRange object that represents the specified cells.
Sets the headers of a worksheet csv file. This not only sets the text of the first
row but also auto fits the columns and adds the auto filter option to the header.
The header titles.
Sets the cell data for a single row.
The index of the row the data is being set on.
The values to set the individual cells.
Sets the cell data for a specified number of rows and columns.
The index of the first row.
The number of rows the data covers.
The number of columns the data covers.
The values to set the individual cells.
Removes all of the worksheet objects from this collection.
Gets the excel range string equivalent for the specified index. This starts
with 0 - AA and ends with 675 - ZZ.
The index to convert.
The excel range string equivalent for the specified index.
The COM wrapper for a Microsoft Excel application instance.
Gets the name of the specified object.
Gets the Microsoft Excel version number.
Gets a collection containing all of the currently opened work books.
Gets or sets a value indicating whether the application is visible to the user.
Quits Microsoft Excel.
Represents a cell, a row, a column, a selection of cells containing one or more
contiguous blocks of cells, or a 3-D range.
Gets or sets the width of all columns in the specified range.
Gets a IRange object that represents the entire column (or columns) that contains
the specified range.
Gets a IRange object that represents the entire row (or rows) that contains the
specified range.
Gets or sets the cell value.
Filters a list using the AutoFilter.
The integer offset of the field on which you want to base the filter (from the left
of the list; the leftmost field is field one).
The criteria.
One of the constants of AutoFilterOperator specifying the type of filter.
The second criteria.
True to display the AutoFilter drop-down arrow for the filtered field. False to
hide the AutoFilter drop-down arrow for the filtered field. True by default.
A auto filter object.
Changes the width of the columns in the range or the height of the rows in the
range to achieve the best fit.
A auto fit object.
Selects the object.
A collection of all the Excel Worksheet objects that are currently open inside a Excel
Workbook.
Gets the number of work sheets in the collection.
Gets a single worksheet from this collection.
The name or index number of the object.
A single worksheet from this collection.
Creates a new worksheet, chart, or macro sheet.
The object that was added to this collection.
Represents a workbook object which is apart of a workbooks collection.
Gets the name of the workbook.
Gets a collection containing all of the work sheets in this workbook.
A collection of all the IWorkbook objects that are currently open in Excel.
Gets the number of work books in the collection.
Creates a IWorkbook object that represents a new, empty work sheet added to the
collection of opened work books.
The IWorkbook object that was added to this collection.
Returns an individual IWorkbook object in this collection.
The individual object to be returned. Can be a Long indicating the ordinal position
of the individual object.
The individual IWorkbook object in this collection.
Represents a worksheet object which is apart of a sheets collection.
Gets or sets the name of the worksheet.
Deletes the object.
Returns a IRange object that represents a cell or a range of cells.
The name of the range. This must be an A1-style reference in the language of the
macro. It can include the range operator (a colon), the intersection operator
(a space), or the union operator (a comma).
A IRange object that represents a cell or a range of cells.
Represents a collection of all the Excel Worksheet objects that are currently open
inside a Excel Workbook.
The reference to the Excel ISheets proxy object.
Initialises a new instance of the class.
The ISheets proxy object.
Gets the number of sheets in the collection.
Gets the worksheet whose position is specified as a index.
The ordinal position of the individual worksheet to retrieve.
The worksheet whose position is specified.
Gets the worksheet with the specified name.
The name of the worksheet to retrieve.
The worksheet whose name is specified.
Creates a new, empty Document object and adds it to the collection of opened
sheets.
The name of the worksheet to add.
The document that was added to the collection.
Lync interoperability class
Determine whether any version of Lync is installed.
Determine whether a particular version of Lync is installed.
Lync versions
No lync installed
Lync 2010
Lync 2013
Extension methods for the lync version enum
Return Photoshop version Registry Key.
Represents the entire Microsoft Outlook application.
Gets the value that represents the display name for the application.
Gets the string representing the number of the version.
Creates and returns a new Microsoft Outlook item of the specified type.
The type of item to create.
The new Microsoft Outlook item.
Creates a new Microsoft Outlook item from an Outlook template (.oft) and returns
the new item.
The path and file name of the Outlook template for the new item.
The folder in which the item is to be created. If this argument is omitted, the
default folder for the item type will be used.
The new item.
Creates an automation object of the specified class.
The class name of the object to create.
The new object.
Closes all currently open windows in the application.
Contains a set of Attachment objects that represent the attachments in an Outlook item.
Creates a new attachment in the Attachments collection.
The source of the attachment. This can be a file (represented by the full file system path with a
file name) or an Outlook item that constitutes the attachment.
The type of the attachment. Can be one of the OlAttachmentType constants.
This parameter applies only to e-mail messages using Microsoft Outlook Rich Text format: it is
the position where the attachment should be placed within the body text of the message. A value of 1 for the Position
parameter specifies that the attachment should be positioned at the beginning of the message body. A value 'n' greater
than the number of characters in the body of the e-mail item specifies that the attachment should be placed at the end.
A value of 0 makes the attachment hidden.
This parameter applies only if the mail item is in Rich Text format and Type is set to
olByValue: the name is displayed in an Inspector object for the attachment or when viewing the properties of the
attachment. If the mail item is in Plain Text or HTML format, then the attachment is displayed using the file name in
the Source parameter.
An Attachment object that represents the new attachment.
Represents a generic collection contains a number of outlook items.
Gets the number of items in this collection.
Removes an object from this collections.
The index value of the object within the collection to remove.
Contains the common properties for all items created by the outlook application.
Gets an Application object that represents the parent application.
Gets the class type for this item.
Gets the parent object for this item.
Represents an item inside the outlook application.
Gets the attachments object that contains all of the attachments for this item.
Gets or sets a string represnting the clear-text body of this item.
Gets or sets the format for the body of this item.
Gets the data and time indicating the creation time of this item.
Gets or sets the date and time this item becomes invalid and can be deleted.
Gets or sets the string representing the HTML body of this item. This should be a
HTML syntax string.
Gets the data and time this item was last modified.
Gets or sets a string representing the message class for this item. This links the
item to the form on which it is based. When an item is selected, Outlook uses the
message class to locate the form and expose its properties, such as Reply commands.
Gets or sets a value indicating whether this item can be aged.
Gets the interger representation of the build number of the Microsoft Outlook
application for this item.
Gets the string representation for the major and minor version number of the
Microsoft Outlook application for this item.
Gets the date and time this item was received.
Gets a value indicating whether this item has been saved since its last
modification.
Gets the e-mail address of the sender for this item.
Gets the type of entry for this item.
Gets the display name of the sender for this item.
Gets the date and time this item was sent.
Gets the size (in bytes) of this item.
Gets or sets the string indicating the subject for this item.
Gets or sets a value indicating whether this item has been read.
Closes this item and optionally saves any changes to it.
A value indicating the behaviour of the close when unsaved changes are present on
the item.
Creates a copy of this item.
The copy of this item.
Deletes this item from its parent collection.
Displays this item.
A value indicating whether this is displayed in modal mode.
Prints this outlook item using all of the default settings.
Saves this item to the current folder or, if this is a new item, to the Outlook
default folder for the item type.
Saves the Microsoft Outlook item to the specified path and in the format of the
specified file type. If the file type is not specified, the MSG format (.msg) is
used.
The path in which to save the item.
The file type to save. If not specified, the MSG format (.msg) is used.
Represents a mail message in an Inbox (mail) folder.
Returns a Recipients collection that represents all the recipients for the
Microsoft Outlook item.
Executes the Forward action for the mail item and returns the resulting copy as a
new mail item object.
The copy as a new mail item object.
Creates a reply, pre-addressed to the original sender, from the original message
and returns the reply as a new mail item object.
The reply as a new mail item object.
Sends this mail item.
Represents a user or resource in Outlook, generally a mail message addressee.
Gets the e-mail address for this recipient.
Gets this recipients index inside its parent collection.
Gets the display name for this recipient.
Gets a value indicating whether this recipient has been validated against the
address book.
Gets or sets a integer value that represents the type of this recipient.
Removes this recipient from its collection.
Attempts to resolve this recipient against the Address Book.
True if it was resolved successfully; otherwise, false.
A collection that contains a number of recipients objects.
Adds a new recipient to this collection with the specified display name.
The display name of the recipient to add.
The new recipient that was added.
Attempts to resolve all the Recipient objects in the Recipients collection against
the Address Book.
A value indicating whether all recipient were resolved or not.
Specifies the attachment type.
The attachment is a copy of the original file and can be accessed even if the original file is removed.
This value is no longer supported since Microsoft Outlook 2007. Use olByValue to attach a copy of a file in the file system.
The attachment is an Outlook message format file (.msg) and is a copy of the original message.
The attachment is an OLE document.
Defines the behaviour when closing an item with unsaved changes.
Discard all changes without prompting.
Prompt to save or discard all changes.
Save all changes without prompting.
Defines the different items that the outlook application can create.
An Appointment Item object.
A Contact Item object.
A Distrution List Item object.
A Journal Item object.
A Mail Item object.
A Note Item object.
A Post Item object.
A Task Item object.
Wrapper for Outlook.Application
Threading synchronisation object.
Cached result of whether outlook is installed (so we don't create/release the com object each time we query it).
Creates a new outlook IApplication wrapper object.
The outlook application interface.
Creates a new blank email for outlook.
The created blank email.
Check to see if outlook is installed on the machine.
A value indicating whether outlook is installed.
Gets or sets the body of the email in html format.
Gets or sets the subject of the email.
Adds a new file attachment to the e-mail.
The full path to the file to attach.
Displays the email to the user.
Disposes of this email.
Sets the recipients of the email.
All of the recipients of the email.
Represents a new e-mail for outlook.
Gets or sets the body of the email in html format.
Gets or sets the subject of the email.
Adds a new file attachment to the e-mail.
The full path to the file to attach.
Displays the email to the user.
Disposes of this email.
Sets the recipients of the email.
All of the recipients of the email.
Specifies a built-in Microsoft Word style.
Normal style.
Title style.
Heading 1 style.
Heading 2 style.
Heading 3 style.
Heading 4 style.
Heading 5 style.
Heading 6 style.
Heading 7 style.
Heading 8 style.
Heading 9 style.
Contains font attributes (font name, font size, color, and so on) for an object.
Gets or sets a value indicating whether this font is formatted as bold.
Gets or sets the BGR integer
Gets or sets a value indicating whether this font is formatted as italic.
Gets or sets the font used for Latin text (characters with character codes from 0
through to 127).
Gets or sets the font size, in points.
Represents a single paragraph in a document, selection, or range.
Represents all the formatting for a paragraph.
Gets or sets the line spacing (in points) for the specified paragraphs.
Represents a collection of IParagraph objects that represent the paragraphs in the
specified selection, range, or document.
Gets or sets a constant that represents the alignment for the specified paragraphs.
Gets the number of paragraphs in the collection.
Creates a IParagraph object in this collection and returns the newly created
object.
The IParagraph object that was added to this collection.
Returns an individual IParagraph object in this collection.
The individual object to be returned. Can be a Long indicating the ordinal position
of the individual object.
The individual IParagraph object in this collection.
Represents a single built-in or user-defined style for a document.
Gets or sets an existing style on which you this style is based on.
Gets a value indicating whether this style is one of the built-in styles or caption
labels in Microsoft Word.
Gets the description for this style.
Gets or sets a Font object that represents the character formatting for this style.
Gets or sets the name of the style.
Gets or sets a value indicating whether spacing between paragraphs using this style
should be removed.
Gets or sets a ParagraphFormat object that represents the paragraph settings for
the specified style.
Gets or sets a value indicating whether the style corresponds to an available quick
style.
Gets the style type.
Represents a collection of IStyle objects that represent both the built-in and
user-defined styles in a document.
Gets the number of styles in the collection.
Creates a IStyle object in this collection and returns the newly created object.
The name of the bookmark. The name cannot be more than one word.
The style type of the new style.
The IBookmark object that was added to this collection.
Returns an individual IStyle object from this collection.
The built-in style to retrieve.
The style within this collection that matches the specified built-in style.
Returns an individual IStyle object from this collection.
The name of the style to retrieve.
The style within this collection with the specified name.
Defines the different word document types that can be created off of a word documents
collection object.
Creates a new blank word document. This is the default.
Creates a new web page word document.
Creates a new email message word document.
Creates a new frameset word document.
Creates a new xml word document.
Specifies the alignment of a paragraph.
Centre aligned.
Paragraph characters are distributed to fill the entire width of the paragraph.
Fully justified.
Justified with a high character compression ratio.
Justified with a low character compression ratio.
Justified with a medium character compression ratio.
Left aligned.
Right aligned.
Justified according to Thai formatting layout.
Specifies the defined types for a word style.
Paragraph style.
Body character style.
Table style.
List style.
Reserved for internal use.
Reserved for internal use.
Represents the entire Microsoft Word application.
The reference to the work IApplication proxy object.
Initialises a new instance of the class.
The IApplication proxy object.
Gets a word document object that represents the active document (the document with
the focus). If there are no documents open, null is returned.
Gets a collection containing all of the currently opened documents.
Gets the name of the specified object.
Gets the Microsoft Word version number.
Gets or sets a value indicating whether the application is visible to the user.
Quits Microsoft Word.
The COM wrapper for a Microsoft Word application instance.
Gets a IDocument object that represents the active document (the document with
the focus). If there are no documents open, an error occurs.
Gets a collection containing all of the currently opened documents.
Gets the name of the specified object.
Gets the Microsoft Word version number.
Gets or sets a value indicating whether the application is visible to the user.
Quits Microsoft Word.
Represents a single bookmark in a document, selection, or range.
Gets or sets the ending character position of this bookmark.
Gets the name of the bookmark.
Gets or sets the starting character position of this bookmark.
Represents a collection of IBookmark objects that represent the bookmarks in the
specified selection, range, or document.
Gets the number of bookmarks in the collection.
Creates a IBookmark object in this collection and returns the newly created object.
The name of the bookmark. The name cannot be more than one word.
The IBookmark object that was added to this collection.
Determines whether the specified bookmark exists. Returns true if the bookmark
exists; otherwise, false.
The name of the bookmark.
True if the bookmark exists; otherwise, false.
Returns an individual IBookmark object from this collection.
The name of the bookmark to retrieve.
The bookmark within this collection with the specified name.
Represents a document object which is apart of a documents collection.
Gets the bookmark collection that represents all the bookmarks in this document.
Gets a IRange object that represents the main document story.
Gets the name of the document.
Gets the styles collection that represents all the styles in this document.
Creates a range object by using the specified starting and ending character
positions.
The starting character position.
The ending character position.
A range object that represents the document between the two specified positions.
A collection of all the IDocument objects that are currently open in Word.
Gets the number of documents in the collection.
Creates a IDocument object that represents a new, empty document added to the
collection of open documents.
The IDocument object that was added to this collection.
Creates a IDocument object that represents a new, empty document added to the
collection of open documents.
The name of the template to be used for the new document.
True to open the document as a template. The default value is False.
Defines the type of document created.
True to open the document in a visible window. If this value is False, Microsoft
Word opens the document but sets the Visible property of the document window to
False.
The IDocument object that was added to this collection.
Returns an individual IDocument object in this collection.
The individual object to be returned. Can be a Long indicating the ordinal position
of the individual object.
The individual IDocument object in this collection.
Opens the specified document and adds it to this collection and returns the new
IDocument object.
The name of the document. Paths are accepted.
The individual IDocument object in this collection that was opened.
Represents a contiguous area in a document. Each Range object is defined by a starting
and ending character position.
Gets or sets a value indicating whether the range is formatted as bold.
Gets or sets the ending character position of this range.
Gets or sets a Font object that represents the character formatting for the range.
Gets or sets a value indicating whether the range is formatted as italic.
Gets a IParagraphs collection that represents all the paragraphs in the specified
range.
Gets or sets the starting character position of this range.
Gets or sets the style for the specified object.
Gets or sets the text for this range.
Copys this range to the clipboard.
Selects this range.
Contains constant strings that represent the available predefined bookmarks for a
single document.
The bookmark located at the end of the document.
The bookmark located at the beginning of the document.
A static class used to create a instance of Microsoft Word using COM.
A cached result of whether word is installed.
A generic object used to support threading synchronisation.
Check to see if word is installed on the machine.
True if word is installed; otherwise, false.
Creates a new word IApplication wrapper object.
A new IApplication wrapper object for word.
Represents a single word bookmark positioned in a document, selection, or range.
The reference to the word IBookmark proxy object.
Initialises a new instance of the class.
The IBookmark proxy object.
Gets or sets the ending character position of this bookmark.
Gets the name of this bookmark.
Gets or sets the starting character position of this bookmark.
Represents a collection of all the WordDocument objects that are currently open inside
a Word Application.
The reference to the word IBookmarks proxy object.
Initialises a new instance of the class.
The IBookmarks proxy object.
Gets the number of documents in the collection.
Gets the bookmark whose name is specified.
The name of the individual bookmark to retrieve.
The bookmark whose name is specified or null if a bookmark with the specified name
doesn't exist.
Creates a Bookmark object in this collection and returns the newly created object.
The name of the bookmark. The name cannot be more than one word.
The Bookmark object that was added to this collection.
Determines whether the specified bookmark exists. Returns true if the bookmark
exists; otherwise, false.
The name of the bookmark.
True if the bookmark exists; otherwise, false.
Represents a document object which is apart of a documents collection.
The reference to the word IDocument proxy object.
Initialises a new instance of the class.
The IDocument proxy object.
Gets the bookmark collection that represents all the bookmarks in this document.
Gets a Range object that represents the main document story.
Gets the name of the document.
Gets the styles collection that represents all the styles in this document.
Appends the default line terminator to the end of the word document.
Appends a copy of the specified string followed by the default line terminator to
the end word document.
The string to append.
Appends a copy of the specified string followed by the default line terminator to
the end word document.
The string to append.
The style for the appended text.
Appends a copy of the specified string followed by the default line terminator to
the end word document.
The string to append.
The style for the appended text.
Appends a copy of the specified string followed by the default line terminator to
the end word document.
The string to append.
The style for the appended text.
The alignment of the appended text.
Appends a copy of the specified string followed by the default line terminator to
the end word document.
The string to append.
The style for the appended text.
The alignment of the appended text.
Appends a copy of the specified string followed by the default line terminator to
the end word document.
The string to append.
A value indicating whether the appended text is formatted as bold.
A value indicating whether the appended text is formatted as italic.
Appends a copy of the specified string followed by the default line terminator to
the end word document.
The string to append.
A value indicating whether the appended text is formatted as bold.
A value indicating whether the appended text is formatted as italic.
The alignment of the appended text.
Appends a copy of the specified string to this word document.
The string to append.
Appends a copy of the specified string to this word document.
The string to append.
The style for the appended text.
Appends a copy of the specified string to this word document.
The string to append.
The style for the appended text.
Appends a copy of the specified string to this word document.
The string to append.
The style for the appended text.
The alignment of the appended text.
Appends a copy of the specified string to this word document.
The string to append.
The style for the appended text.
The alignment of the appended text.
Appends a copy of the specified string to this word document.
The string to append.
The size of the text to append.
Appends a copy of the specified string to this word document.
The string to append.
A value indicating whether the appended text is formatted as bold.
A value indicating whether the appended text is formatted as italic.
Appends a copy of the specified string to this word document.
The string to append.
A value indicating whether the appended text is formatted as bold.
A value indicating whether the appended text is formatted as italic.
The alignment of the appended text.
Appends a copy of the specified string to this word document.
The string to append.
The size of the text to append.
A value indicating whether the appended text is formatted as bold.
A value indicating whether the appended text is formatted as italic.
Indicates whether the current object is equal to another object of the same type.
This compares the wrapped proxy object with each other.
The object to compare to.
True if the current object is equal to the parameter;
otherwise, false.
Creates a range object by using the specified starting character position and
expands over the remainder of the document.
The starting character position.
A range object that represents the document between the starting position and the
end of the document.
Creates a range object by using the specified starting and ending character
positions.
The starting character position.
The ending character position.
A range object that represents the document between the two specified positions.
Represents a collection of all the WordDocument objects that are currently open inside
a Word Application.
The reference to the word IDocuments proxy object.
Initialises a new instance of the class.
The IDocuments proxy object.
Gets the number of documents in the collection.
Gets the document whose ordinal position is specified as a index.
The ordinal position of the individual document to retrieve.
The document whose ordinal position is specified.
Creates a new, empty Document object and adds it to the collection of opened
documents.
The document that was added to the collection.
Gets a Document object that represents a new, empty document added to the
collection of open documents.
True to open a the document but set its Visible property to False so the user
cannot see it.
The document that was added to the collection.
Gets a Document object that represents a new, empty document added to the
collection of open documents.
Defines the type of document created.
True to open a the document but set its Visible property to False so the user
cannot see it.
The document that was added to the collection.
Opens the specified document and adds it to the collection and returns the new
document object.
The name of the document. Paths are accepted.
The document that was opened.
Represents a contiguous area in a document. Each Range object is defined by a starting
and ending character position.
The reference to the word IRange proxy object.
Initialises a new instance of the class.
The IRange proxy object.
Gets or sets a constant that represents the alignment for this range.
Gets or sets a value indicating whether the range is formatted as bold.
Gets or sets the ending character position of this range.
Gets or sets a Font object that represents the character formatting for the range.
Gets or sets a value indicating whether the range is formatted as italic.
Gets or sets the starting character position of this range.
Gets or sets the style for the specified object.
Gets or sets the text for this range.
Copys this range to the clipboard.
Selects this range.
Contains font attributes (font name, font size, color, and so on) for an object.
The reference to the word IFont proxy object.
Initialises a new instance of the class.
The IFont proxy object.
Gets or sets a value indicating whether this font is formatted as bold.
Gets or sets a value indicating whether this font is formatted as italic.
Gets or sets the font used for Latin text (characters with character codes from 0
through to 127).
Gets or sets the font size, in points.
Represents all the formatting for a paragraph.
The reference to the word IParagraphFormat proxy object.
Initialises a new instance of the class.
The IParagraphFormat proxy object.
Gets or sets the line spacing (in points) for the specified paragraphs.
Represents a single word style inside a document.
The reference to the word IStyle proxy object.
Initialises a new instance of the class.
The IStyle proxy object.
Gets or sets an existing style on which you this style is based on.
Gets a value indicating whether this style is one of the built-in styles or caption
labels in Microsoft Word.
Gets the description for this style.
Gets or sets a Font object that represents the character formatting for this style.
Gets or sets the name of this style.
Gets or sets a ParagraphFormat object that represents the paragraph settings for
the specified style.
Gets or sets a value indicating whether spacing between paragraphs using this style
should be removed.
Gets or sets a value indicating whether the style corresponds to an available quick
style.
Gets the style type.
Gets the proxy style object for this style.
Represents a collection of all the WordDocument objects that are currently open inside
a Word Application.
The reference to the word IStyles proxy object.
Initialises a new instance of the class.
The IStyles proxy object.
Gets the number of styles in the collection.
Gets the style that represents the specified built-in style.
The built-in style to retrieve.
The style that represents the specified built-in style.
Gets the style whose name is specified.
The name of the individual style to retrieve.
The style whose name is specified or null if a style with the specified name
doesn't exist.
Creates a style object in this collection and returns the newly created object.
The name of the style. The name cannot be more than one word.
The style type of the new style.
The style object that was added to this collection.
Process interoperability class
Find out what process(es) have a lock on the specified directory and content from it.
Find out what process(es) have a lock on the specified directory and content from it.
Custom numbers that RsWindow applications can handle.
Requests the application to shutdown.
Helper class to provide utility methods for parsing TRX members.
Class that represents a Test Framework settings file; this is how you override
the results path or the target CPU etc.
Microsoft documentation at https://msdn.microsoft.com/en-us/library/jj635153.aspx.
Initialises a new instance of the class.
Initialises a new instance of the class.
Gets or sets the maximum CPU count used for testing.
Gets or sets the test results directory.
Gets or sets the test target platform.
Gets or sets the test target .Net Framework version.
Gets the paths to our test adapters.
Load a from an XElement.
XElement to load data from.
A new instance of the class.
Serialize the to an XElement.
Flags used for Visual Studio test runs.
None.
Specifies the tests should be run in parallel.
Enables data diagnostic adapter.
Runs the tests in an isolated process.
Test runner class that wraps and controls the Visual Studio test executable.
TestSettingsFile settingsFile = new TestSettingsFile(
new TestRunConfiguration(1, @"c:\TestResults", "x64", "Framework40", Enumerable.Empty<String>()));
settingsFile.Save(@"c:\TestSettings.runsettings");
TestRunner runner = new TestRunner(...);
TrxFile testResults = runner.Run(...);
Log object.
Visual Studio version to target.
DLLs being tested.
Test run settings.
Initialises a new instance of the class.
Log object.
Run all tests within the test DLLs.
Test process return code.
A set of objects.
Run named tests within the test DLLs.
Named tests to execute.
Test process return code.
A set of objects.
TestSettingsFile settingsFile = new TestSettingsFile(
new TestRunConfiguration(1, @"c:\TestResults", "x64", "Framework40", Enumerable.Empty<String>()));
settingsFile.Save(@"c:\TestSettings.runsettings");
TestRunner runner = new TestRunner(...);
TrxFile testResults = runner.Run(...);
Event handler for stdout capture
- calls the handler method for stdout
Object that triggered event
Event data
Event handler for stdout capture
- calls the handler method for stdout
Object that triggered event
Event data
Handle stdout while a processing is running.
Log object.
Output line to log.
Handle stderr while a processing is running.
Log object.
Output line to log.
Exception class raised by the class.
Initialises a new instance of the class.
Exception message.
Initialises a new instance of the class.
Exception message.
Inner exception (if specified).
Class that represents a Microsoft's Visual Studio Test Framework settings file format.
This currently only supports the parameters
which should be enough to get us started; set the platform and TRX output directory.
Extension to use for .
Our test run configuration settings.
Initialises a new instance of the class.
Gets the file .
Load a from disk.
File path to load.
A new instance of .
Load a from a stream.
Stream to load.
A new instance of .
Save the to disk.
File path to save to.
Save the to a stream.
Stream to save to.
Exception class thrown by the loaders.
Initialises a new instance of the class.
Exception message.
Initialises a new instance of the class.
Exception message.
Inner exception (if specified).
Class that represents Microsoft's Visual Studio Test Framework output TRX file format.
file:/C:/Program%20Files%20(x86)/Microsoft%20Visual%20Studio%2014.0/Xml/Schemas/vstst.xsd
Private field used for the property.
Private field used for the property.
Private field used for the property.
Private field used for the property.
Test results parsed from TRX file.
Test result summary information.
Initialises a new instance of the class.
Gets the test start time.
Gets the test finish time.
Gets the test creation time.
Gets the test queuing time.
Gets the loaded results.
Gets the results summary.
Load a from disk.
File path to load.
A new instance of .
Load a from a stream.
Stream to load.
A new instance of .
Class that represents the Results Summary section of the .
Initialises a new instance of the class.
Initialises a new instance of the class.
Gets the test resultant outcome.
Gets the total number of tests available.
Gets the number of tests executed.
Gets the number of tests passed.
Gets the number of tests failed.
Gets the number of tests that errored.
Gets the number of tests that timed-out.
Gets the number of tests that were aborted.
Gets the number of tests that were inconclusive.
Load a from an XElement.
Enumeration containing the potential outcomes in a .
Tests generated errors.
Tests failed.
Tests timed out.
Tests aborted.
Tests are inconclusive.
Tests passed but run aborted.
Tests not runnable.
Tests not executed.
Disconnected during tests.
Test warnings.
Tests passed.
Tests completed.
Test in progress.
Tests are pending.
Class that represents a Microsoft Test Framework test run error message and callstack.
Initialises a new instance of the class.
Error message.
Error callstack.
Gets the test run error message.
Gets the test run callstack.
Load a from an XElement.
XElement to load data from.
A new instance of the class.
Class that represents a single test run result from Microsoft's TRX file format.
Initialises a new instance of the class.
Gets the result Test Identifier.
Gets the result Execution Identifier.
Gets the test name.
Gets the computer name on which the test executed.
Gets the test run duration.
Gets the start time.
Gets the finish time.
Gets the test outcome.
Gets the test errors.
Load a from an XElement.
Visual Studio interoperability class.
Determine whether any version of Visual Studio is installed.
Determine whether a particular version of Visual Studio is installed.
Ref http://www.mztools.com/articles/2008/MZ2008003.aspx
Visual Studio version identifier enumeration.
Unknown version.
VS2005 - 8.0
VS2008 - 9.0
VS2010 - 10.0
VS2012 - 11.0
VS2013 - 12.0
VS2015 - 14.0
VS2017 - 15.0
Microsoft Windows Explorer integration class.
Path to the Windows Explorer advanced registry key.
Separate Process advanced flag.
Return whether the Windows Explorer "Launch folder windows in a separate process"
is set.
Set Windows Explorer "Launch folder windows in a separate process".
Closes all of the top level windows that are associated with the windows explorer.
(i.e. All windows with a atom of CabientWClass or ExplorerWClass).
Retrieves all the top level explorer windows.
Retrieves the process id for the explorer.exe instance that is running
in the system tray.
Show the given path in Windows Explorer, and select the item.
Path to show.
Contains information about a system appbar message.
The size of the structure, in bytes.
The handle to the appbar window.
An application-defined message identifier. The application uses the specified
identifier for notification messages that it sends to the appbar identified
by the hWnd member. This member is used when sending the ABM_NEW message.
A value that specifies an edge of the screen.
A RECT structure whose use varies depending on the message.
A message-dependent value.
Defines the dimensions and colour information for a device-independent bitmap.
The number of bytes required by the structure.
The width of the bitmap, in pixels.
The height of the bitmap, in pixels.
The number of planes for the target device.
The number of bits-per-pixel.
The type of compression for a compressed bottom-up bitmap.
The size, in bytes, of the image.
The horizontal resolution, in pixels-per-meter, of the target device for the
bitmap.
The vertical resolution, in pixels-per-meter, of the target device for the bitmap.
The number of colour indexes in the colour table that are actually used by the
bitmap.
The number of colour indexes that are required for displaying the bitmap. If this
value is zero, all colours are required.
Gets the elements of the array that make up the colour table.
Determines whether the specified objects are equal to each other.
The first object to compare.
The second object to compare.
True if the specified objects are equal to each other; otherwise, false.
Determines whether the specified objects are not equal to each other.
The first object to compare.
The second object to compare.
True if the specified objects are not equal to each other; otherwise, false.
Serves as a hash function for a particular type.
A hash code for the current object.
Determines whether the specified object is equal to the current object.
The object to compare with the current object.
True if the specified object is equal to the current object; otherwise, false.
Determines whether the specified object is equal to the current object.
The object to compare with the current object.
True if the specified object is equal to the current object; otherwise, false.
Contains information about the dimensions and colour format of a device independent
bitmap.
The number of bytes required by the structure.
The width of the bitmap, in pixels.
The height of the bitmap, in pixels.
The number of planes for the target device.
The number of bits-per-pixel.
The type of compression for a compressed bottom-up bitmap.
The size, in bytes, of the image.
The horizontal resolution, in pixels-per-meter, of the target device for
the bitmap.
The vertical resolution, in pixels-per-meter, of the target device for the bitmap.
The number of colour indexes in the colour table that are actually used by
the bitmap.
The number of colour indexes that are required for displaying the bitmap. If this
value is zero, all colours are required.
Determines whether the specified objects are equal to each other.
The first object to compare.
The second object to compare.
True if the specified objects are equal to each other; otherwise, false.
Determines whether the specified objects are not equal to each other.
The first object to compare.
The second object to compare.
True if the specified objects are not equal to each other; otherwise, false.
Serves as a hash function for a particular type.
A hash code for the current object.
Determines whether the specified object is equal to the current object.
The object to compare with the current object.
True if the specified object is equal to the current object; otherwise, false.
Determines whether the specified object is equal to the current object.
The object to compare with the current object.
True if the specified object is equal to the current object; otherwise, false.
Controls blending by specifying the blending functions for source and
destination bitmaps.
The source blend operation.
Must be zero.
Specifies an alpha transparency value to be used on the entire source bitmap.
This member controls the way the source and destination bitmaps are interpreted.
Determines whether the specified objects are equal to each other.
The first object to compare.
The second object to compare.
True if the specified objects are equal to each other; otherwise, false.
Determines whether the specified objects are not equal to each other.
The first object to compare.
The second object to compare.
True if the specified objects are not equal to each other; otherwise, false.
Serves as a hash function for a particular type.
A hash code for the current object.
Determines whether the specified object is equal to the current object.
The object to compare with the current object.
True if the specified object is equal to the current object; otherwise, false.
Determines whether the specified object is equal to the current object.
The object to compare with the current object.
True if the specified object is equal to the current object; otherwise, false.
Defines the different class styles that can be used when registering a
structure.
No style has been specified.
Aligns the window's client area on a byte boundary (in the x direction). This style
affects the width of the window and its horizontal placement on the display.
Aligns the window on a byte boundary (in the x direction). This style affects the
width of the window and its horizontal placement on the display.
Allocates one device context to be shared by all windows in the class. Because
window classes are process specific, it is possible for multiple threads of an
application to create a window of the same class. It is also possible for the
threads to attempt to use the device context simultaneously. When this happens, the
system allows only one thread to successfully finish its drawing operation.
Sends a double-click message to the window procedure when the user double-clicks
the mouse while the cursor is within a window belonging to the class.
Enables the drop shadow effect on a window. Typically, this is enabled for small,
short-lived windows such as menus to emphasize their Z order relationship to other
windows.
Indicates that the window class is an application global class.
Redraws the entire window if a movement or size adjustment changes the width of the
client area.
Disables Close on the window menu.
Allocates a unique device context for each window in the class.
Sets the clipping rectangle of the child window to that of the parent window so
that the child can draw on the parent. A window with the CS_PARENTDC style bit
receives a regular device context from the system's cache of device contexts. It
does not give the child the parent's device context or device context settings.
Specifying ParentDC enhances an application's performance.
Saves, as a bitmap, the portion of the screen image obscured by a window of this
class. When the window is removed, the system uses the saved bitmap to restore the
screen image, including other windows that were obscured. Therefore, the system
does not send WM_PAINT messages to windows that were obscured if the memory used by
the bitmap has not been discarded and if other screen actions have not invalidated
the stored image. This style is useful for small windows (for example, menus or
dialog boxes) that are displayed briefly and then removed before other screen
activity takes place. This style increases the time required to display the window,
because the system must first allocate memory to store the bitmap.
Redraws the entire window if a movement or size adjustment changes the height of
the client area.
Contains information about a console screen buffer.
MSDN Documentation https://msdn.microsoft.com/en-us/library/windows/desktop/ms682093(v=vs.85).aspx.
A structure that contains the size of the console screen buffer, in character columns and rows.
A structure that contains the column and row coordinates of the cursor in the console screen buffer.
The attributes of the characters written to a screen buffer.
A structure that contains the console screen buffer coordinates of the upper-left and lower-right corners of the display window.
A structure that contains the maximum size of the console window, in character columns and rows, given the current screen buffer size and font and the screen size.
Defines the coordinates of a character cell in a console screen buffer.
The origin of the coordinate system (0,0) is at the top, left cell of the buffer.
MSDN Documentation https://msdn.microsoft.com/en-us/library/windows/desktop/ms682119(v=vs.85).aspx.
The horizontal coordinate or column value. The units depend on the function call.
The vertical coordinate or row value. The units depend on the function call.
Enum of user quit event codes.
Ctrl C
Break
Close
LogOff
Shutdown
Defines the different states a drag and drop operation can be in.
The drop operation should occur completing the drag operation.
The drag operation should be cancelled with no drop operation occurring.
Indicates successful completion of the method, and requests OLE to update the
cursor using the OLE-provided default cursors.
File attributes are metadata values stored by the file system on disk and are used by
the system and are available to developers via various file I/O APIs.
A file that is read-only. Applications can read the file, but cannot write to it or
delete it. This attribute is not honoured on directories. For more information, see
"You cannot view or change the Read-only or the System attributes of folders in
Windows Server 2003, in Windows XP, or in Windows Vista".
The file or directory is hidden. It is not included in an ordinary directory
listing.
A file or directory that the operating system uses a part of, or uses exclusively.
The handle that identifies a directory.
A file or directory that is an archive file or directory. Applications typically
use this attribute to mark files for backup or removal.
This value is reserved for system use.
A file that does not have other attributes set. This attribute is valid only when
used alone.
A file that is being used for temporary storage. File systems avoid writing data
back to mass storage if sufficient cache memory is available, because typically, an
application deletes a temporary file after the handle is closed. In that scenario,
the system can entirely avoid writing the data. Otherwise, the data is written
after the handle is closed.
A file that is a sparse file.
A file or directory that has an associated reparse point, or a file that is a
symbolic link.
A file or directory that is compressed. For a file, all of the data in the file is
compressed. For a directory, compression is the default for newly created files and
subdirectories.
The data of a file is not available immediately. This attribute indicates that the
file data is physically moved to offline storage. This attribute is used by Remote
Storage, which is the hierarchical storage management software. Applications should
not arbitrarily change this attribute.
The file or directory is not to be indexed by the content indexing service.
A file or directory that is encrypted. For a file, all data streams in the file are
encrypted. For a directory, encryption is the default for newly created files and
subdirectories.
This value is reserved for system use.
Used generically to filter elements.
An array of flags that indicate which of the other structure members contain valid
data.
The file type identifier.
The width of the file icon.
The height of the file icon.
The screen x-coordinates of the file object.
The screen y-coordinates of the file object.
File attribute flags.
The FILETIME structure that contains the time of file creation.
The FILETIME structure that contains the time that the file was last accessed.
The FILETIME structure that contains the time of the last write operation.
The high-order DWORD of the file size, in bytes.
The low-order DWORD of the file size, in bytes.
The null-terminated string that contains the name of the file.
Defines the flags used to set the flags property on a file descriptor structure.
The file type member is valid.
The icon size and screen point members are valid.
The FileAttributes member is valid.
The CreationTime member is valid.
The LastAccessTime member is valid.
The LastWriteTime member is valid.
The FileSizeHigh and FileSizeLow members are valid.
A progress indicator is shown with drag-and-drop operations.
Treat the operation as a shortcut.
The descriptor is Unicode.
Defines a group of file descriptors.
The number of elements.
Indicates FILETYPEATTRIBUTEFLAGS constants that are used in the EditFlags value of a file association PROGID registry key.
http://msdn.microsoft.com/en-us/library/windows/desktop/bb762506(v=vs.85).aspx
No options set.
Excludes the file type.
Shows file types, such as folders, that are not associated with a file name extension.
Indicates that the file type has a file name extension.
Prohibits editing of the registry entries associated with this file type, the addition of new entries, and the deletion or modification of existing entries.
Prohibits deletion of the registry entries associated with this file type.
Prohibits the addition of new verbs to the file type.
Prohibits the modification or deletion of canonical verbs such as open and print.
Prohibits the deletion of canonical verbs such as open and print.
Prohibits the modification or deletion of the description of the file type.
Prohibits the modification or deletion of the icon assigned to the file type.
Prohibits the modification of the default verb.
Prohibits the modification of the commands associated with verbs.
Prohibits the modification or deletion of verbs.
Prohibits the modification or deletion of the entries related to DDE.
Prohibits the modification or deletion of the content type and default extension entries.
Indicates that the file type's open verb can be safely invoked for downloaded files.
Prevents the Never ask me check box from being enabled.
Prohibits the addition of members of this file type to the Recent Documents folder.
Introduced in Windows 8. Marks the file as safe to be passed from a low trust application to a full trust application.
Introduced in Windows 8. Ensures that the verbs for the file type are invoked with a URI instead of a downloaded version of the file.
Represents the method that handles Win32 window messages.
The message ID.
The message's wParam value.
The message's lParam value.
The appropriate return value depends on the particular message.
Defines the different types of hook procedures that can be installed.
Used to install a hook procedure that records input messages posted to the system
message queue. This hook is useful for recording macros.
Used to install a hook procedure that posts messages previously recorded by a
hook procedure.
Used to install a hook procedure that monitors keystroke messages.
Used to install a hook procedure that monitors messages posted to a message queue.
Used to install a hook procedure that monitors messages before the system sends
them to the destination window procedure.
Used to install a hook procedure that receives notifications useful to a CBT
application.
Used to install a hook procedure that monitors messages generated as a result of an
input event in a dialog box, message box, menu, or scroll bar. The hook procedure
monitors these messages for all applications in the same desktop as the calling
thread.
Used to install a hook procedure that monitors mouse messages.
Used to install a hook procedure useful for debugging other hook procedures.
Used to install a hook procedure that receives notifications useful to shell
applications.
Used to install a hook procedure that will be called when the application's
foreground thread is about to become idle. This hook is useful for performing low
priority tasks during idle time.
Used to install a hook procedure that monitors messages after they have been
processed by the destination window procedure.
Used to install a hook procedure that monitors low-level keyboard input events.
Used to install a hook procedure that monitors low-level mouse input events.
The IDropSource interface is one of the interfaces you implement to provide
drag-and-drop operations in your application.
Determines whether a drag-and-drop operation should be continued, cancelled, or
completed.
Indicates whether the Esc key has been pressed since the previous call.
The current state of the keyboard modifier keys on the keyboard.
A value indicating whether to continue, drop, or cancel.
Enables a source application to give visual feedback to the end user during a
drag-and-drop operation.
The effect to use.
Zero if successful; otherwise, non-zero.
Inferface for iimagelists in the Microsoft.CLRAdmin mscorfcfg.dll.
Adds an image or images to an image list.
Replaces an image with an icon or cursor.
Adds a specified image to the list of images used as overlay masks.
Replaces an image in an image list with a new image.
Adds an image or images to an image list, generating a mask from the specified bitmap.
Draws an image list item in the specified device context.
Removes an image from an image list.
Creates an icon from an image and a mask in an image list.
A value of type int that contains the index of the image.
A combination of flags that specify the drawing style. For a list of values, see IImageList::Draw.
A pointer to an int that contains the handle to the icon if successful, or NULL if otherwise.
Gets information about an image.
Copies images from a given image list.
Creates a new image by combining two existing images. This method also creates a new image list in which to store the image.
Clones an existing image list.
Gets an image's bounding rectangle.
Gets the dimensions of images in an image list. All images in an image list have the same dimensions.
Sets the dimensions of images in an image list and removes all images from the list.
Gets the number of images in an image list.
Resizes an existing image list.
Sets the background color for an image list.
Gets the current background color for an image list.
Begins dragging an image.
Ends dragging an image.
Locks updates to the specified window during a drag operation and displays
the drag image at the specified position within the window.
Unlocks the specified window and hides the drag image, which enables the window to update.
Moves the image that is being dragged during a drag-and-drop operation.
This function is typically called in response to a WM_MOUSEMOVE message.
Creates a new drag image by combining the specified image,
which is typically a mouse cursor image, with the current drag image.
Shows or hides the image being dragged.
ets the temporary image list that is used for the drag image.
The function also retrieves the current drag position and the offset of the drag image relative to the drag position.
Gets the flags of an image.
Adds a specified image to the list of images used as overlay masks.
Passed to the IImageList::Draw method in the fStyle member of IMAGELISTDRAWPARAMS.
Draws the image using the background color for the image list.
If the background color is the CLR_NONE value, the image
is drawn transparently using the mask.
Draws the image transparently using the mask, regardless
of the background color. This value has no effect if the
image list does not contain a mask.
Draws the image, blending 25 percent with the blend color specified
by rgbFg. This value has no effect if the image list does not contain a mask.
Same as ILD_BLEND25.
Draws the image, blending 50 percent with the blend color specified by rgbFg.
This value has no effect if the image list does not contain a mask.
Same as ILD_BLEND50.
Same as ILD_BLEND50.
Draws the Mask.
If the overlay does not require a mask to be drawn, set this flag.
If the overlay does not require a mask to be drawn, set this flag.
To extract the overlay image from the fStyle member, use the
logical AND to combine fStyle with the ILD_OVERLAYMASK value.
Preserves the alpha channel in the destination.
Causes the image to be scaled to cx, cy instead of being clipped.
Scales the image to the current dpi of the display.
Windows Vista and later. Draw the image if it is available in the cache. Do not
extract it automatically. The called draw method returns E_PENDING to the calling
component, which should then take an alternative action, such as, provide another
image and queue a background task to force the image to be loaded via ForceImagePresent
using the ILFIP_ALWAYS flag. The ILD_ASYNC flag then prevents the extraction operation
from blocking the current thread and is especially important if a draw method is
called from the user interface (UI) thread
Contains information about an image in an image list.
This structure is used with the IImageList::GetImageInfo function.
A handle to the bitmap that contains the images.
A handle to a monochrome bitmap that contains the masks for the images.
If the image list does not contain a mask, this member is NULL.
Not used. This member should always be zero.
Not used. This member should always be zero.
The bounding rectangle of the specified image within the bitmap specified by hbmImage.
Contains information about an image list draw operation and is used with the IImageList::Draw function.
The size of this structure, in bytes.
A handle to the image list that contains the image to be drawn.
The zero-based index of the image to be drawn.
A handle to the destination device context.
The x-coordinate that specifies where the image is drawn.
The y-coordinate that specifies where the image is drawn.
A value that specifies the number of pixels to draw, relative
to the upper-left corner of the drawing operation as specified
by xBitmap and yBitmap. If cx and cy are zero, then Draw draws
the entire valid section. The method does not ensure that the
parameters are valid.
A value that specifies the number of pixels to draw, relative
to the upper-left corner of the drawing operation as specified
by xBitmap and yBitmap. If cx and cy are zero, then Draw draws
the entire valid section. The method does not ensure that the
parameters are valid.
The x-coordinate that specifies the upper-left corner of the drawing
operation in reference to the image itself. Pixels of the image that
are to the left of xBitmap and above yBitmap do not appear.
The y-coordinate that specifies the upper-left corner of the drawing
operation in reference to the image itself. Pixels of the image that
are to the left of xBitmap and above yBitmap do not appear.
The image background color.
This parameter can be an application-defined RGB value.
The image foreground color. This member is used only if fStyle includes
the ILD_BLEND25 or ILD_BLEND50 flag. This parameter can be an
application-defined RGB value.
A flag specifying the drawing style and, optionally, the overlay image.
This member can contain one or more image list drawing flags.
A value specifying a raster operation code.
flag that specifies the drawing state. This member can contain one or more image list state flags.
When used with ILS_ALPHA, this member holds the value for the alpha channel.
This value can be from 0 to 255, with 0 being completely transparent, and 255 being completely opaque.
A color used for the glow and shadow effects.
Flags to define action to be taken when loading a module.
http://msdn.microsoft.com/en-us/library/windows/desktop/ms684179(v=vs.85).aspx
If this value is used, and the executable module is a DLL, the system does not
call DllMain for process and thread initialization and termination.
If this value is used, the system does not check AppLocker rules or apply
Software Restriction Policies for the DLL.
If this value is used, the system maps the file into the calling process's
virtual address space as if it were a data file.
Similar to LOAD_LIBRARY_AS_DATAFILE, except that the DLL file is opened
with exclusive write access for the calling process.
If this value is used, the system maps the file into the process's virtual
address space as an image file.
If this value is used, the application's installation directory is searched for
the DLL and its dependencies.
This value is a combination of LOAD_LIBRARY_SEARCH_APPLICATION_DIR, LOAD_LIBRARY_SEARCH_SYSTEM32,
and LOAD_LIBRARY_SEARCH_USER_DIRS.
If this value is used, the directory that contains the DLL is temporarily added to the beginning
of the list of directories that are searched for the DLL's dependencies.
If this value is used, %windows%\system32 is searched for the DLL and its dependencies.
If this value is used, directories added using the AddDllDirectory or the SetDllDirectory function are searched for the DLL and its dependencies.
If this value is used and lpFileName specifies an absolute path.
The set of valid MapTypes used in MapVirtualKey
uCode is a virtual-key code and is translated into a scan code.
If it is a virtual-key code that does not distinguish between left- and
right-hand keys, the left-hand scan code is returned.
If there is no translation, the function returns 0.
uCode is a scan code and is translated into a virtual-key code that
does not distinguish between left- and right-hand keys. If there is no
translation, the function returns 0.
uCode is a virtual-key code and is translated into an unshifted
character value in the low-order word of the return value. Dead keys (diacritics)
are indicated by setting the top bit of the return value. If there is no
translation, the function returns 0.
Windows NT/2000/XP: uCode is a scan code and is translated into a
virtual-key code that distinguishes between left- and right-hand keys. If
there is no translation, the function returns 0.
Not currently documented
Flags that define the icon shown on a balloon tooltip.
No icon is displayed.
An information icon is displayed.
A warning icon is displayed.
An error icon is displayed.
Windows XP Service Pack 2 (SP2) and later.
Use a custom icon as the title icon.
Windows XP (Shell32.dll version 6.0) and later.
Do not play the associated sound. Applies only to balloon ToolTips.
Windows Vista (Shell32.dll version 6.0.6) and later. The large version
of the icon should be used as the balloon icon. This corresponds to the
icon with dimensions SM_CXICON x SM_CYICON. If this flag is not set,
the icon with dimensions XM_CXSMICON x SM_CYSMICON is used.
- This flag can be used with all stock icons.
- Applications that use older customized icons (NIIF_USER with Icon) must
provide a new SM_CXICON x SM_CYICON version in the tray icon (Icon). These
icons are scaled down when they are displayed in the System Tray or
System Control Area (SCA).
- New customized icons (NIIF_USER with hBalloonIcon) must supply an
SM_CXICON x SM_CYICON version in the supplied icon (hBalloonIcon).
Windows 7 and later.
Contains information that the system needs to display notifications in the notification area.
Size of this structure, in bytes.
Handle to the window that receives notification messages associated with an icon in the
taskbar status area. The Shell uses hWnd and uID to identify which icon to operate on
when Shell_NotifyIcon is invoked.
Application-defined identifier of the taskbar icon. The Shell uses hWnd and uID to identify
which icon to operate on when Shell_NotifyIcon is invoked. You can have multiple icons
associated with a single hWnd by assigning each a different uID.
Flags that indicate which of the other members contain valid data. This member can be
a combination of the NIF_XXX constants.
Application-defined message identifier. The system uses this identifier to send
notifications to the window identified in hWnd.
Handle to the icon to be added, modified, or deleted.
String with the text for a standard ToolTip. It can have a maximum of 64 characters including
the terminating NULL. For Version 5.0 and later, szTip can have a maximum of
128 characters, including the terminating NULL.
State of the icon.
A value that specifies which bits of the state member are retrieved or modified.
For example, setting this member to NIS_HIDDEN causes only the item's hidden state to be retrieved.
String with the text for a balloon ToolTip. It can have a maximum of 255 characters.
To remove the ToolTip, set the NIF_INFO flag in uFlags and set szInfo to an empty string.
NOTE: This field is also used for the Timeout value. Specifies whether the Shell notify
icon interface should use Windows 95 or Windows 2000
behavior. For more information on the differences in these two behaviors, see
Shell_NotifyIcon. This member is only employed when using Shell_NotifyIcon to send an
NIM_VERSION message.
String containing a title for a balloon ToolTip. This title appears in boldface
above the text. It can have a maximum of 63 characters.
Adds an icon to a balloon ToolTip. It is placed to the left of the title. If the
szTitleInfo member is zero-length, the icon is not shown.
A registered GUID that identifies the icon. This value overrides
uID and is the recommended method of identifying the icon. The
NIF_GUID flag must be set in the uFlags member.
Windows Vista and later. The handle of a customized notification icon
provided by the application that should be used independently of the
notification area icon. If this member is non-NULL and the NIIF_USER
flag is set in the dwInfoFlags member, this icon is used as the
notification icon. If this member is NULL, the legacy behavior is
carried out.
Flags that either indicate which of the other members of the structure contain valid
data or provide additional information to the tooltip as to how it should display.
The uCallbackMessage member is valid.
The Icon member is valid.
The szTip member is valid.
The dwState and dwStateMask members are valid.
Display a balloon notification. The szInfo, szInfoTitle,
dwInfoFlags, and uTimeout members are valid. Note that
uTimeout is valid only in Windows 2000 and Windows XP.
The guidItem is valid (Windows 7+).
If the balloon notification cannot be displayed immediately,
discard it. Use this flag for notifications that represent
real-time information which would be meaningless or misleading
if displayed at a later time. For example, a message that states
"Your telephone is ringing." REALTIME is meaningful only
when combined with the INFO flag.
Use the standard tooltip.
The size of this structure, in bytes.
A handle to the parent window used by the notification's callback function.
The application-defined identifier of the notification icon.
A registered GUID that identifies the icon.
Messages
Adds an icon to the status area.
Modifies an icon in the status area.
Deletes an icon from the status area.
Returns focus to the taskbar notification area.
Instructs the notification area to behave according to the version number.
State of the tray notify icon; allows hiding the icon.
Show the icon.
Hide the icon.
Notify icon version that is used.
Contains native functions that are imported from the unmanaged assembly Ole32.dll.
Creates a stream object that uses an memory handle to store the stream contents.
The newly created stream object if successful; otherwise, null.
Carries out an OLE drag and drop operation.
Reference to the data object that contains the data being dragged.
Reference to the drop source object used to communicate with the source during the
drag operation.
Effects the source allows in the OLE drag-and-drop operation.
A value indicating how the OLE drag-and-drop operation affected the source data.
Creates a stream object that uses an memory handle to store the stream contents.
The returned stream object supports both reading and writing, is not transacted,
and does not support region locking.
A memory handle.
A value that indicates whether the underlying handle for this stream object should
be automatically freed when the stream object is released.
When this method returns contains the created stream object.
Zero if successful; otherwise, non-zero.
The structure contains information for an application. This
information can be used to paint the client area of a window owned by that application.
A handle to the display DC to be used for painting.
Indicates whether the background must be erased. This value is nonzero if the
application should erase the background. The application is responsible for
erasing the background if a window class is created without a background brush.
For more information, see the description of the hbrBackground member of the
structure.
A structure that specifies the upper left and lower right
corners of the rectangle in which the painting is requested, in device units
relative to the upper-left corner of the client area.
Reserved; used internally by the system.
Reserved; used internally by the system.
Reserved; used internally by the system.
Provides static methods used to read and write to the registry.
Determines whether the key with the specified path exists.
The path to the key to test.
True if the registry key with the specified path exists; otherwise, false.
Determines whether the key with the specified path exists.
The path to the key to test.
True if the registry key with the specified path exists; otherwise, false.
Gets or creates the registry key that contains the editor setting values.
The array of strings that specify the location of the key inside the registry.
A value indicating whether the subkey should be created if not present.
The registry key at the specified location if found or created; otherwise, null.
Gets or creates the registry key that contains the editor setting values.
The array of strings that specify the location of the key inside the registry.
A value indicating whether the subkey should be created if not present.
The registry key at the specified location if found or created; otherwise, null.
Gets or creates the specified sub key on the specified current key.
The current key that should contain a sub key with the specified name.
The name of the sub key to retrieve.
A value indicating whether the subkey should be created if not present.
The registry key with the specified name underneath the given key.
Predefined Windows resource types (RT_ constants).
http://msdn.microsoft.com/en-us/library/windows/desktop/ms648009(v=vs.85).aspx
RT_CURSOR; cursor resource.
RT_BITMAP; bitmap resource.
RT_ICON; icon resource.
RT_MENU; menu resource.
RT_DIALOG; dialog resource.
RT_STRING; string resource.
RT_FONTDIR; fontdir resource.
RT_FONT; font resource.
RT_ACCELERATOR; accelerator resource.
RT_RCDATA; custom data resource.
RT_MESSAGETABLE; message table resource.
Configures the shut down of applications.
Forces unresponsive applications and services to shut down after the timeout period.
Shuts down applications if and only if all the applications have been registered for restart using the RegisterApplicationRestart function.
Describes the reasons a restart of the system is needed.
A system restart is not required.
The current user does not have sufficient privileges to shut down one or more processes.
One or more processes are running in another Terminal Services session.
A system restart is needed because one or more processes to be shut down are critical processes.
A system restart is needed because one or more services to be shut down are critical services.
A system restart is needed because the current process must be shut down.
Describes the restart or shutdown actions for an application or service.
An invalid filter trigger.
Modifies the shutdown or restart actions for an application identified by its executable filename.
Modifies the shutdown or restart actions for an application identified by a RM_UNIQUE_PROCESS structure.
Modifies the shutdown or restart actions for a service identified by a service short name.
Specifies the type of modification that is applied to restart or shutdown actions.
An invalid filter action.
Prevents the restart of the specified application or service.
Prevents the shut down and restart of the specified application or service.
Specifies the type of application that is described by the RM_PROCESS_INFO structure.
The application cannot be classified as any other type. An application of this type can only be shut down by a forced shutdown.
A Windows application run as a stand-alone process that displays a top-level window.
A Windows application that does not run as a stand-alone process and does not display a top-level window.
The application is a Windows service.
The application is Windows Explorer.
The application is a stand-alone console application.
A system restart is required to complete the installation because a process cannot be shut down.
Defines the different device capabilities that can be retrieved using the GetDeviceCap
native method.
Device driver version.
Device classification.
Horizontal size in mm of the physical screen.
Vertical size in mm of the physical screen.
Horizontal width in pixels.
Vertical height in pixels.
Number of bits per pixel.
Number of planes.
Number of brushes the device has.
Number of pens the device has.
Number of markers the device has.
Number of fonts the device has.
Number of colours the device supports.
Size required for device descriptor.
Curve capabilities.
Line capabilities.
Polygonal capabilities.
Text capabilities.
Clipping capabilities.
Raster capabilities.
Length of the X leg.
Length of the Y leg.
Length of the hypotenuse.
Shading and Blending caps.
Logical pixels inch in X.
Logical pixels inch in Y.
Number of entries in physical palette.
Number of reserved entries in palette.
Actual colour resolution.
Physical Width in device units.
Physical Height in device units.
Physical Printable Area x margin.
Physical Printable Area y margin.
Scaling factor x.
Scaling factor y.
Current vertical refresh rate of the display device (for displays only) in Hz.
Horizontal width of entire desktop in pixels.
Vertical height of entire desktop in pixels.
Preferred horizontal drawing alignment.
Defines the different ways a device context is created.
Returns a DC that corresponds to the window rectangle rather than the
client rectangle.
Returns a DC from the cache, rather than the OWNDC or CLASSDC window.
Uses the visible region of the parent window.
Excludes the visible regions of all sibling windows above the specified window.
Excludes the visible regions of all child windows below the specified window.
Does not reset the attributes of this DC to the default attributes when this
DC is released.
Allows drawing even if there is a LockWindowUpdate call in effect that would
otherwise exclude this window.
The clipping region specified for the combine region is excluded from the visible
region of the returned DC.
The clipping region region specified for the combine region is intersected with the
visible region of the returned DC.
Contains the global unique identifiers used to import native runtime class wrappers
through COM.
The global unique identifier for the FileOpenDialogRCW class.
Defines the different values for list placement.
The place is added to the bottom of the default list.
The place is added to the top of the default list.
Represents the runtime class wrapper for the file open dialog object.
Used generically to filter elements.
A pointer to a buffer that contains the friendly name of the filter.
A pointer to a buffer that contains the filter pattern.
Defines the different options that can be set onto a file dialog window.
When saving a file, prompt before overwriting an existing file of the same name.
This is a default value for the Save dialog.
In the save dialog, only allow the user to choose a file that has one of the file
name extensions provided.
Not used.
Present the Open dialog offering a choice of folders rather than files.
Ensures that returned items are file system items.
Enables the user to choose any item in the Shell namespace.
Do not check for situations that would prevent an application from opening the
selected file, such as sharing violations or access denied errors.
Enables the user to select multiple items in the open dialog.
The item returned must be in an existing folder.
The item returned must exist.
Prompt for creation if the item returned in the save dialog does not exist.
In the case of a sharing violation when an application is opening a file, call the
application back through OnShareViolation for guidance.
Do not return read-only items.
Do not test creation of the item returned in the save dialog. If this flag is not
set, the calling application must handle errors such as denial of access discovered
in the creation test.
Hide the list of places from which the user has recently opened or saved items.
Hide items shown by default in the view's navigation pane.
Shortcuts should not be treated as their target items.
Do not add the item being opened or saved to the recent documents list.
Show hidden and system items.
Indicates to the Save As dialog box that it should open in expanded mode. Expanded
mode is the mode that is set and unset by clicking the button in the lower-left
corner of the Save As dialog box that switches between Browse Folders and Hide
Folders when clicked.
Indicates to the Open dialog box that the preview pane should always be displayed.
The most common values returned from a native method that represents the successfulness
of the operation.
Operation successful.
Operation successful.
One or more arguments are not valid.
Failed to allocate necessary memory.
Failed as operation isn't supported.
Invalid FORMATETC structure.
Invalid TYMED structure.
Invalid aspects.
Unspecified error.
Exposes methods that initialize, show, and get results from the common file dialog.
Launches the modal window.
The handle of the owner window. This value can be NULL.
If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error
code including ERROR_CANCELLED.
Sets the file types that the dialog can open or save.
The number of elements in the array specified by .
An array of structures, each
representing a file type.
Sets the file type that appears as selected in the dialog.
The index of the file type in the file type array passed to the
method in its cFileTypes parameter. Note that this is a
one-based index, not zero-based.
Gets the currently selected file type.
A unsigned integer value that receives the index of the selected file type in the
file type array passed to the method in its cFileTypes
parameter. Note that this is a one-based index rather than zero-based.
Assigns an event handler that listens for events coming from the dialog.
A pointer to an
implementation that will receive events from the dialog.
A unsigned integer that receives a value identifying this event handler.
Removes an event handler that was attached through the method.
The unsigned integer value that represents the event handler.
Sets flags to control the behaviour of the dialog.
One or more of the flags defined in .
Gets the current flags that are set to control dialog behaviour.
A value that receives one or more of the flags defined in
.
Sets the folder used as a default if there is not a recently used folder value
available.
The folder that should be used for the default.
Sets a folder that is always selected when the dialog is opened, regardless of
previous user action.
The folder that should be set.
Gets either the folder currently selected in the dialog, or, if the dialog is not
currently displayed, the folder that is to be selected when the dialog is opened.
When this method returns contains the shell item interface that is the folder
currently displayed.
Gets the user's current selection in the dialog.
When this method returns contains the shell item interface that represents the
current selection.
Sets the file name.
The text that should be entered into the dialog's File name edit box.
Retrieves the text currently entered in the dialog's File name edit box.
When this method returns contains the text currently entered in the dialog's File
name edit box.
Sets the title of the dialog.
The value to set the title to.
Sets the text of the Open or Save button.
The value to set the ok button label to.
Sets the text of the label next to the file name edit box.
The value to set the label to that is next to the file name edit box.
Gets the choice that the user made in the dialog.
When this method returns contains the shell item that represents the choice made
by the user.
Adds a folder to the list of places available for the user to open or save items.
The shell item that represents the folder to be made available to the user.
Specifies where the folder is placed within the list.
Gets the choice that the user made in the dialog.
The extension to be made the default. Note this string should not include a leading
period.
Closes the dialog.
The code that will be returned by Show to indicate that the dialog was closed
before a selection was made.
Enables a calling application to associate a GUID with a dialog's persisted state.
The GUID to associate with this dialog state.
Instructs the dialog to clear all persisted state information.
Deprecated in Windows 7. Sets the filter.
A pointer to a IShellItemFilter object that is to be set.
Exposes methods that allow notification of events within a common file dialog.
Called just before the dialog is about to return with a result.
The reference to the dialog that is pushing the event.
Implementations should return S_OK to accept the current result in the dialog or
S_FALSE to refuse it.
Called when the user is about to navigate to a new folder.
The reference to the dialog that is pushing the event.
The shell item that represents the folder that is being navigated to.
Returns S_OK if successful, or an error value otherwise. A return value of S_OK or
E_NOTIMPL indicates that the folder change can proceed.
Called when the user navigates to a new folder.
The reference to the dialog that is pushing the event.
Called when the user changes the selection in the dialog's view.
The reference to the dialog that is pushing the event.
Called when the dialog is opened to notify the application of the initial chosen
file type.
The reference to the dialog that is pushing the event.
Extends the interface by adding
methods specific to the open dialog.
Launches the modal window.
The handle of the owner window. This value can be NULL.
If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error
code including ERROR_CANCELLED.
Sets the file types that the dialog can open or save.
The number of elements in the array specified by .
An array of structures, each
representing a file type.
Sets the file type that appears as selected in the dialog.
The index of the file type in the file type array passed to the
method in its cFileTypes parameter. Note that this is a
one-based index, not zero-based.
Gets the currently selected file type.
A unsigned integer value that receives the index of the selected file type in the
file type array passed to the method in its cFileTypes
parameter. Note that this is a one-based index rather than zero-based.
Assigns an event handler that listens for events coming from the dialog.
A pointer to an
implementation that will receive events from the dialog.
A unsigned integer that receives a value identifying this event handler.
Removes an event handler that was attached through the method.
The unsigned integer value that represents the event handler.
Sets flags to control the behaviour of the dialog.
One or more of the flags defined in .
Gets the current flags that are set to control dialog behaviour.
A value that receives one or more of the flags defined in
.
Sets the folder used as a default if there is not a recently used folder value
available.
The folder that should be used for the default.
Sets a folder that is always selected when the dialog is opened, regardless of
previous user action.
The folder that should be set.
Gets either the folder currently selected in the dialog, or, if the dialog is not
currently displayed, the folder that is to be selected when the dialog is opened.
When this method returns contains the shell item interface that is the folder
currently displayed.
Gets the user's current selection in the dialog.
When this method returns contains the shell item interface that represents the
current selection.
Sets the file name.
The text that should be entered into the dialog's File name edit box.
Retrieves the text currently entered in the dialog's File name edit box.
When this method returns contains the text currently entered in the dialog's File
name edit box.
Sets the title of the dialog.
The value to set the title to.
Sets the text of the Open or Save button.
The value to set the ok button label to.
Sets the text of the label next to the file name edit box.
The value to set the label to that is next to the file name edit box.
Gets the choice that the user made in the dialog.
When this method returns contains the shell item that represents the choice made
by the user.
Adds a folder to the list of places available for the user to open or save items.
The shell item that represents the folder to be made available to the user.
Specifies where the folder is placed within the list.
Gets the choice that the user made in the dialog.
The extension to be made the default. Note this string should not include a leading
period.
Closes the dialog.
The code that will be returned by Show to indicate that the dialog was closed
before a selection was made.
Enables a calling application to associate a GUID with a dialog's persisted state.
The GUID to associate with this dialog state.
Instructs the dialog to clear all persisted state information.
Deprecated in Windows 7. Sets the filter.
A pointer to a IShellItemFilter object that is to be set.
Gets the user's choices in a dialog that allows multiple selection.
When this method returns contains the shell items that the user choose in the
dialog.
Gets the currently selected items in the dialog. These items may be items selected
in the view, or text selected in the file name edit box.
When this method returns contains the shell items that are selected.
Exposes a method that represents a modal window.
Launches the modal window.
The handle of the owner window. This value can be NULL.
If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error
code including ERROR_CANCELLED.
When implemented represents a native file open dialog window.
Contains the global unique identifiers used to import native interfaces through COM.
The global unique identifier for the IFileDialogEvents interface.
The global unique identifier for the IFileDialog interface.
The global unique identifier for the IFileOpenDialog interface.
The global unique identifier for the IModelWindow interface.
The global unique identifier for the IShellItemArray interface.
The global unique identifier for the IShellItem interface.
Exposes methods that retrieve information about a Shell item.
Binds to a handler for an item as specified by the handler ID value.
The bind context interface.
A flag that determines the handler.
The IID of the object type to retrieve.
When this methods returns, contains the object specified using the handler
specified.
Gets the parent of an IShellItem object.
When this method returns contains the parent of this shell item.
Gets the display name of the IShellItem object.
One of the SIGDN values that indicates how the name should look.
A value that, when this function returns successfully, receives the address of a
pointer to the retrieved display name.
Gets a requested set of attributes of the IShellItem object.
Specifies the attributes to retrieve.
A pointer to a value that, when this method returns successfully, contains the
requested attributes.
Compares two IShellItem objects.
The shell item to compare to.
A value indicating how to perform the comparison.
A integer value indicating the order of the two shell items. If the two items are
the same this parameter equals zero; if they are different the parameter is
nonzero.
Exposes methods that create and manipulate Shell item arrays.
Binds to an object by means of the specified handler.
The bind context interface.
A flag that determines the handler.
The IID of the object type to retrieve.
When this methods returns, contains the object specified using the handler
specified.
Gets a property store.
Specifies the attributes of the property store to retrieve.
The IID of the object type to retrieve.
When this method returns, contains the property store interface requested.
Gets a property description list for the items in the shell item array.
Specifies which property list to retrieve.
The IID of the object type to retrieve.
When this method returns, contains the property list interface requested.
Gets the attributes of the set of items contained in an IShellItemArray.
Define how that final attribute set is determined if there are more than one item
in the array.
A mask that specifies what particular attributes are being requested.
When this method returns successfully, contains the values of the requested
attributes.
Gets the number of items in the given IShellItem array.
When this method returns, contains the number of items in the IShellItemArray.
Gets the item at the given index in the IShellItemArray.
The index of the IShellItem requested in the IShellItemArray.
When this method returns, contains the requested IShellItem pointer.
Gets an enumerator of the items in the array.
When this method returns, contains an IEnumShellItems pointer that enumerates the
shell items that are in the array.
Contains information about a window's maximized size and position and its minimum and
maximum tracking size.
Reserved; do not use.
The maximized width (x member) and the maximized height (y member) of the window.
For top-level windows, this value is based on the width of the primary monitor.
The position of the left side of the maximized window (x member) and the position
of the top of the maximized window (y member). For top-level windows, this value is
based on the position of the primary monitor.
The minimum tracking width (x member) and the minimum tracking height (y member) of
the window.
The maximum tracking width (x member) and the maximum tracking height (y member) of
the window.
Specifies the values that programmatically identifies a property.
The unique GUID for the property.
The property identifier.
Windows Restart Manager API wrapper.
http://msdn.microsoft.com/en-us/library/windows/desktop/cc948910(v=vs.85).aspx
using (RestartManagerSession rm = new RestartManagerSession())
{
rm.RegisterApplication("notepad");
rm.RegisterFile("c:\\some\\shared\\library.dll");
rm.Shutdown();
rm.Restart(); // optional
}
Restart Manager session identifier.
Restart Manager session handle.
Registered application processes.
Registered files.
Registered services.
Constructor.
Diposing.
Register an application process.
Register a file (absolute filename).
Register a service name.
Shutdown registered processes.
true iff successful; false otherwise.
Restart registered processes (invoke Shutdown first).
true iff successful; false otherwise.
Return RM_UNIQUE_PROCESS structures for a process name.
Describes the current status of an application that is acted upon by the Restart Manager.
The application is in a state that is not described by any other enumerated state.
The application is currently running.
The Restart Manager has stopped the application.
An action outside the Restart Manager has stopped the application.
The Restart Manager has restarted the application.
The Restart Manager encountered an error when stopping the application.
The Restart Manager encountered an error when restarting the application.
Shutdown is masked by a filter.
Restart is masked by a filter.
Contains information about modifications to restart or shutdown actions.
This member contains a RM_FILTER_ACTION enumeration value. Use the value RmNoRestart
to prevent the restart of the application or service. Use the value RmNoShutdown to
prevent the shutdown and restart of the application or service.
This member contains a RM_FILTER_TRIGGER enumeration value. Use the value RmFilterTriggerFile
to modify the restart or shutdown actions of an application referenced by the executable's
full path filename. Use the value RmFilterTriggerProcess to modify the restart or shutdown
actions of an application referenced by a RM_UNIQUE_PROCESS structure. Use the value
RmFilterTriggerService to modify the restart or shutdown actions of a service referenced
by the short service name.
The offset in bytes to the next structure.
If the value of FilterTrigger is RmFilterTriggerFile, this member contains a pointer
to a string value that contains the application filename.
If the value of FilterTrigger is RmFilterTriggerProcess, this member is a RM_PROCESS_INFO
structure for the application.
If the value of FilterTrigger is RmFilterTriggerService this member is a pointer to a
string value that contains the short service name.
Describes an application that is to be registered with the Restart Manager.
Uniquely identifies a process by its PID and the time the process began.
The product identifier (PID).
The creation time of the process.
Interop wrapper around Microsoft Windows Restart Manager API.
The application that started the Restart Manager session can pass a pointer to this
function to the Restart Manager functions to receive a percentage of completeness.
Modifies the shutdown or restart actions that are applied to an application or service.
The primary installer can call the RmAddFilter function multiple times. The most recent
call overrides any previous modifications to the same file, process, or service.
A handle to an existing Restart Manager session.
Full path to the application's executable file.
RM_UNIQUE_PROCESS structure for the application.
Short service name.
Modification to be applied.
This is the most recent error received.
Cancels the current RmShutdown or RmRestart operation. This function must be called
from the application that has started the session by calling the RmStartSession function.
A handle to an existing session.
This is the most recent error received.
Contains utility methods for capturing screen images.
Captures a region of a the screen, defined by the hWnd.
Captures a screen shot of the entire desktop.
Captures a screen shot of the specified window.
Gets the window rectangle taking into account space for the border.
Defines the different ways attributes of an array of shell items can be handled.
If there are multiple items in the array, use a bitwise AND to combine the
attributes across items.
If there are multiple items in the array, use a bitwise OR to combine the
attributes across items.
Retrieve the attributes directly from the Shell data source.
A mask for AND, OR, and APPCOMPAT.
Examine all items in the array to compute the attributes.
Defines the different formats a display name for a shell item can be requested.
Returns the display name relative to the parent folder.
Returns the parsing name relative to the parent folder.
Returns the parsing name relative to the desktop.
Returns the editing name relative to the parent folder.
Returns the editing name relative to the desktop.
Returns the item's file system path, if it has one.
Returns the item's URL, if it has one.
Returns the path relative to the parent folder in a friendly format as displayed in
an address bar.
Returns the path relative to the parent folder.
An application-defined call-back function that is called by the EnumDisplayMonitors
function.
A handle to the display monitor.
A handle to a device context.
The virtual-screen coordinates for the monitors rectangle.
Application-defined data.
To continue enumeration, the call-back function must return true; to stop
enumeration, it must return false.
An application-defined call-back function that is called by the EnumThreadWindows
function.
A handle to a window.
Application-defined data.
To continue enumeration, the call-back function must return true; to stop enumeration,
it must return false.
Contains native functions that are imported from the unmanaged assembly Gdi32.dll.
This function displays bitmaps that have transparent or semi-transparent pixels in
them.
A handle to the destination device context.
The x-coordinate, in logical units, of the upper-left corner of the
destination rectangle.
The y-coordinate, in logical units, of the upper-left corner of the
destination rectangle.
The width, in logical units, of the destination rectangle.
The height, in logical units, of the destination rectangle.
A handle to the source device context.
The x-coordinate, in logical units, of the upper-left corner of the
source rectangle.
The y-coordinate, in logical units, of the upper-left corner of the
source rectangle.
The width, in logical units, of the source rectangle.
The height, in logical units, of the source rectangle.
The alpha-blending function for source and destination bitmaps, a global alpha
value to be applied to the entire source bitmap, and format information for the
source bitmap.
True if the function is successful; otherwise, false.
Performs a bit-block transfer of the color data corresponding to a rectangle of
pixels from the specified source device context into a destination device context.
Handle to the destination device context.
The leftmost x-coordinate of the destination rectangle (in pixels).
The topmost y-coordinate of the destination rectangle (in pixels).
The width of the source and destination rectangles (in pixels).
The height of the source and the destination rectangles (in pixels).
Handle to the source device context.
The leftmost x-coordinate of the source rectangle (in pixels).
The topmost y-coordinate of the source rectangle (in pixels).
A raster-operation code.
true if the operation succeedes, false otherwise. To get extended
error information, call
.
Creates a bitmap compatible with the device that is associated with the specified
device context.
A handle to a device context.
The bitmap width, in pixels.
The bitmap height, in pixels.
If the function succeeds, the return value is a handle to the compatible bitmap
(DDB). If the function fails, the return value is
.
Creates a memory device context compatible with the specified device.
A handle to an existing device context. If this handle is IntPtr.Zero, the function
creates a memory DC compatible with the application's current screen.
If the function succeeds, the return value is the handle to a memory device
context. If the function fails, the return value is IntPtr.Zero.
The CreateDIBSection function creates a DIB that applications can write to
directly. The function gives you a pointer to the location of the bitmap bit
values. You can supply a handle to a file-mapping object that the function will use
to create the bitmap, or you can let the system allocate the memory for the bitmap.
A handle to a device context.
A pointer to a BITMAPINFO structure that specifies various attributes of the DIB,
including the bitmap dimensions and colours.
A pointer to a variable that receives a pointer to the location of the DIB bit
values.
If the function succeeds, the return value is a handle to the newly created DIB,
and bits points to the bitmap bit values. If the function fails, the return value
is IntPtr.Zero, and bits is IntPtr.Zero.
Creates a rectangular region.
Specifies the x-coordinate of the upper-left corner of the region in logical units.
Specifies the y-coordinate of the upper-left corner of the region in logical units.
Specifies the x-coordinate of the lower-right corner of the region in logical
units.
Specifies the y-coordinate of the lower-right corner of the region in logical
units.
If the function succeeds, the return value is the handle to the region; otherwise,
IntPtr.Zero.
Creates a rectangular region.
Pointer to a RECT structure that contains the coordinates of the upper-left and
lower-right corners of the rectangle that defines the region in logical units.
If the function succeeds, the return value is the handle to the region; otherwise,
IntPtr.Zero.
Deletes the specified device context.
A handle to the device context to be deleted.
True if the function succeeds; otherwise, false.
The DeleteObject function deletes a logical pen, brush, font, bitmap, region, or
palette, freeing all system resources associated with the object. After the object
is deleted, the specified handle is no longer valid.
A handle to a logical pen, brush, font, bitmap, region, or palette.
True if the function succeeds; otherwise, false.
Retrieves device-specific information for the specified device.
A handle to the device to get the information from.
The item to be returned.
The return value specifies the value of the desired item.
Selects an object into the specified device context. The new object replaces the
previous object of the same type.
A handle to the device context.
A handle to the object to be selected.
If the selected object is not a region and the function succeeds, the return value
is a handle to the object being replaced. If an error occurs and the selected
object is not a region, the return value is IntPtr.Zero.
Creates a logical brush that has the specified solid colour.
The colour of the brush.
If the function succeeds, the return value identifies a logical brush; otherwise,
IntPtr.Zero.
The CreateDIBSection function creates a DIB that applications can write to
directly. The function gives you a pointer to the location of the bitmap bit
values. You can supply a handle to a file-mapping object that the function will use
to create the bitmap, or you can let the system allocate the memory
for the bitmap.
A handle to a device context.
A pointer to a structure that specifies various attributes
of the DIB, including the bitmap dimensions and colours.
The type of data contained in the Colours array member of the
structure pointed to by .
A pointer to a variable that receives a pointer to the location of the
DIB bit values.
A handle to a file-mapping object that the function will use to create the DIB.
This parameter can be NULL.
The offset from the beginning of the file-mapping object referenced by hSection
where storage for the bitmap bit values is to begin.
If the function succeeds, the return value is a handle to the newly created DIB,
and points to the bitmap bit values. If the function fails,
the return value is IntPtr.Zero, and is IntPtr.Zero.
Retrieves device-specific information for the specified device.
A handle to the device to get the information from.
The item to be returned.
The return value specifies the value of the desired item.
Defines the different fall-back values for the get monitor native methods.
Returns a handle to the display monitor that is nearest to the point.
Returns a handle to the primary display monitor.
Returns IntPtr.Zero.
Defines the different window relationships that can be set on the GetWindow
native methods.
The retrieved handle identifies the child window at the top of the Z order,
if the specified window is a parent window; otherwise, the retrieved
handle is NULL.
The retrieved handle identifies the enabled popup window owned by the
specified window.
The retrieved handle identifies the window of the same type that is highest in
the Z order.
The retrieved handle identifies the window of the same type that is lowest in
the Z order.
The retrieved handle identifies the window below the specified window in
the Z order.
The retrieved handle identifies the window above the specified window in
the Z order.
The retrieved handle identifies the specified window's owner window, if any.
Defines Send Message Timeout flag constants.
The calling thread is not prevented from processing other requests while
waiting for the function to return.
Prevents the calling thread from processing any other requests until the
function returns.
The function returns without waiting for the time-out period to elapse
if the receiving thread appears to not respond or "hangs".
The function does not enforce the time-out period as long as the receiving
thread is processing messages.
The function should return 0 if the receiving window is destroyed or its
owning thread dies while the message is being processed.
Defines the different return results from a non-client Hit Test.
In the border of a window that does not have a sizing border.
In the lower-horizontal border of a resizable window.
In the lower-left corner of a border of a resizable window.
In the lower-right corner of a border of a resizable window.
In a title bar.
In a client area.
In a Close button.
On the screen background or on a dividing line between windows.
In a size box.
In a Help button.
In a horizontal scroll bar.
In the left border of a resizable window.
In a menu.
In a Maximize button.
In a Minimize button.
On the screen background or on a dividing line between windows.
In a Minimize button.
In the right border of a resizable window.
In a size box.
In a window menu or in a Close button in a child window.
In the upper-horizontal border of a window.
In the upper-left corner of a window border.
In the upper-right corner of a window border.
In a window currently covered by another window in the same thread.
In the vertical scroll bar.
In a Maximize button.
Provides a managed wrapper over a handle to a native window.
The private event handler that is used for the event.
The private event handler that is used for the event.
The private field used by the property.
The private field used for the property.
The private field used for the property.
The delegate that gets called to handle the window messages for the wrapped
window handle.
Initialises a new instance of the class.
Finalises an instance of the class.
Occurs when this instance has been disposed by the garage collector or by a user.
Occurs when this instance is being disposed by the garage collector or by a user.
Gets the system handle to the window that this class is wrapped around.
Gets or sets the width of the window.
Gets a value indicating whether this instance has been disposed of.
Gets or sets the position of the window's left edge, in relation to the desktop.
Gets or sets the position of the window's top edge, in relation to the desktop.
Gets or sets the width of the window.
Gets a value indicating whether the window has been sub classed or not.
Gets the atom for the wrapped class. A unique identifier for the class that was
registered for the wrapped window.
Performs application-defined tasks associated with freeing, releasing, or resetting
unmanaged resources.
Creates a unique identifier for the class that was registered for the
wrapped window.
A atom for the wrapped class.
Creates the core window and returns the handle to the newly created window.
A handle to the newly created window.
Destroys the registered class for the wrapped window.
Destroys the core components of the wrapped window.
Performs application-defined tasks associated with freeing, releasing, or resetting
unmanaged resources.
If true the managed resources for this instance also get disposed of as well as the
unmanaged resources.
When overridden disposes of the managed resources.
Disposes of the wrapped window by calling native methods to destroy and unregister
the window and class.
Registers a new window class with the specified class name.
The class name that will be used to uniquely register the window.
If the function succeeds, the return value is a class atom that uniquely
identifies the class being registered. If the function fails, the return
value is zero.
Throws a System.ObjectDisposedException exception if this instance has been already
disposed of.
Processes the specified message on the specified window handle.
A handle to the window procedure that received the message.
The message.
First additional message information. The content of this parameter depends on
the value of the parameter.
Second additional message information. The content of this parameter depends on
the value of the parameter.
The return value is the result of the message processing and depends on
the message.
Changes the window message process function.
Contains native functions that are imported from the unmanaged assembly Kernel32.dll.
Get the console window
Retrieves a handle to the specified standard device (standard input, standard output, or standard error).
The standard device. This parameter can be one of the following values.
If the function succeeds, the return value is a handle to the specified device, or a redirected handle set
by a previous call to SetStdHandle. The handle has GENERIC_READ and GENERIC_WRITE access rights, unless the
application has used SetStdHandle to set a standard handle with lesser access.
If the function fails, the return value is INVALID_HANDLE_VALUE.To get extended error information, call
GetLastError.
If an application does not have associated standard handles, such as a service running on an interactive
desktop, and has not redirected them, the return value is NULL.
Set the Console Ctrl event handler
- used so we can add an event to trap user quit events as we see fit for our applications.
Retrieves information about the specified console screen buffer.
A handle to the console screen buffer. The handle must have the GENERIC_READ access right.
A pointer to a structure that receives the console screen buffer information.
true for success; false otherwise.
Frees the loaded dynamic-link library (DLL) module and, if necessary, decrements its
reference count.
Locks a global memory object and returns a pointer to the first byte of the
object's memory block.
A handle to the global memory object.
If the function succeeds, the return value is a pointer to the first byte of the
memory block; otherwise, IntPtr.Zero.
Decrements the lock count associated with a memory object.
A handle to the global memory object.
If the memory object is still locked after decrementing the lock count, the return
value is true; otherwise, false.
Retrieves the current size of the specified global memory object, in bytes.
A handle to the global memory object.
If the function succeeds, the return value is the size of the specified global
memory object, in bytes; otherwise, zero.
Retrieves a module handle for the specified module. The module must have been
loaded by the calling process.
The name of the loaded module.
If the function succeeds, the return value is a handle to the specified
module. If the function fails, the return value is NULL.
Loads the specified module into the address space of the calling process.
The specified module may cause other modules to be loaded.
Loads the specified module into the address space of the calling process.
The specified module may cause other modules to be loaded.
Frees the specified local memory object and invalidates its handle.
A handle to the local memory object. This handle is returned by either the
LocalAlloc or LocalReAlloc function. It is not safe to free memory allocated
with GlobalAlloc.
If the function succeeds, the return value is IntPtr.Zero. If the function fails,
the return value is equal to a handle to the local memory object. To get extended
error information, call GetLastError.
Retrieves timing information for the specified process.
A handle to the process whose timing information is sought.
A pointer to a FILETIME structure that receives the creation time of the process.
A pointer to a FILETIME structure that receives the exit time of the process.
A pointer to a FILETIME structure that receives the amount of time that the process has executed in kernel mode.
A pointer to a FILETIME structure that receives the amount of time that the process has executed in user mode.
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero.
Determines the location of a resource with the specified type and name in the specified module.
A handle to the module whose portable executable file or an accompanying MUI file contains the resource.
The name of the resource.
The resource type.
If the function succeeds, the return value is a handle to the data associated with the resource.
If the function fails, the return value is NULL. To get extended error information, call GetLastError.
Retrieves a handle that can be used to obtain a pointer to the first byte of the specified resource in memory.
A handle to the module whose executable file contains the resource.
A handle to the resource to be loaded.
If the function succeeds, the return value is a handle to the data associated with the resource.
If the function fails, the return value is NULL. To get extended error information, call GetLastError.
Retrieves a pointer to the specified resource in memory.
A handle to the resource to be accessed.
If the loaded resource is available, the return value is a pointer to the first byte of the resource;
otherwise, it is NULL.
Sets the attributes of characters written to the console screen buffer by the WriteFile or WriteConsole
function, or echoed by the ReadFile or ReadConsole function. This function affects text written after the
function call.
A handle to the console screen buffer. The handle must have the GENERIC_READ access right.
The character attributes.
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero.To get extended error information, call GetLastError.
Retrieves the size, in bytes, of the specified resource.
A handle to the module whose executable file contains the resource.
A handle to the resource. This handle must be created by using the FindResource or
FindResourceEx function.
If the function succeeds, the return value is the number of bytes in the resource.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
Enumerates resources of a specified type within a binary module.
Allocates a new console for the calling process.
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
Detaches the calling process from its console.
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
Determines whether the specified process is running under WOW64.
A handle to the process whose timing information is sought.
A pointer to a value that is set to TRUE if the process is running under WOW64. If the process is running under 32-bit Windows,
the value is set to FALSE. If the process is a 64-bit application running under 64-bit Windows, the value is also set to FALSE.
If the function succeeds, the return value is a nonzero value.
If the function fails, the return value is zero.To get extended error information, call GetLastError.
Contains information about a display monitor.
The size of the structure, in bytes.
A RECT structure that specifies the display monitor rectangle, expressed in
virtual-screen coordinates.
A RECT structure that specifies the work area rectangle of the display monitor,
expressed in virtual-screen coordinates.
A set of flags that represent attributes of the display monitor.
Determines whether the specified objects are equal to each other.
The first object to compare.
The second object to compare.
True if the specified objects are equal to each other; otherwise, false.
Determines whether the specified objects are not equal to each other.
The first object to compare.
The second object to compare.
True if the specified objects are not equal to each other; otherwise, false.
Serves as a hash function for a particular type.
A hash code for the current object.
Determines whether the specified object is equal to the current object.
The object to compare with the current object.
True if the specified object is equal to the current object; otherwise, false.
Determines whether the specified object is equal to the current object.
The object to compare with the current object.
True if the specified object is equal to the current object; otherwise, false.
Defines the x- and y- coordinates of a point.
The x-coordinate of the point.
The y-coordinate of the point.
Initialises a new instance of the struct.
The x-coordinate of the point.
The y-coordinate of the point.
Initialises a new instance of the struct as the equivalent of
the specified managed System.Windows.Point.
The instance to copy.
Determines whether the specified objects are equal to each other.
The first object to compare.
The second object to compare.
True if the specified objects are equal to each other; otherwise, false.
Determines whether the specified objects are not equal to each other.
The first object to compare.
The second object to compare.
True if the specified objects are not equal to each other; otherwise, false.
Serves as a hash function for a particular type.
A hash code for the current object.
Determines whether the specified object is equal to the current object.
The object to compare with the current object.
True if the specified object is equal to the current object; otherwise, false.
Determines whether the specified object is equal to the current object.
The object to compare with the current object.
True if the specified object is equal to the current object; otherwise, false.
Defines the coordinates of the upper-left and lower-right corners of a rectangle.
The x-coordinate of the upper-left corner of the rectangle.
The y-coordinate of the upper-left corner of the rectangle.
The x-coordinate of the lower-right corner of the rectangle.
The y-coordinate of the lower-right corner of the rectangle.
Initialises a new instance of the struct.
The x-coordinate of the upper-left corner of the rectangle.
The y-coordinate of the upper-left corner of the rectangle.
The x-coordinate of the lower-right corner of the rectangle.
The y-coordinate of the lower-right corner of the rectangle.
Initialises a new instance of the struct as the equivalent of
the specified managed System.Windows.Rect.
The instance to copy.
Initialises a new instance of the struct as the equivalent of
the specified instance.
The instance to copy.
Gets or sets the x-coordinate of the upper-left corner of the rectangle.
Gets or sets the y-coordinate of the upper-left corner of the rectangle.
Gets or sets the x-coordinate of the lower-right corner of the rectangle.
Gets or sets the y-coordinate of the lower-right corner of the rectangle.
Gets a point that represents the top left position of the rectangle.
Gets the size of the rectangle.
Gets or sets the height of the rectangle.
Gets or sets the width of the rectangle.
Determines whether the specified objects are equal to each other.
The first object to compare.
The second object to compare.
True if the specified objects are equal to each other; otherwise, false.
Determines whether the specified objects are not equal to each other.
The first object to compare.
The second object to compare.
True if the specified objects are not equal to each other; otherwise, false.
Serves as a hash function for a particular type.
A hash code for the current object.
Determines whether the specified object is equal to the current object.
The object to compare with the current object.
True if the specified object is equal to the current object; otherwise, false.
Determines whether the specified object is equal to the current object.
The object to compare with the current object.
True if the specified object is equal to the current object; otherwise, false.
Offsets this rectangle by the given delta values.
The amount to offset the rectangle along the x-axis.
The amount to offset the rectangle along the y-axis.
Gets a System.Windows.Int32Rect object whose dimensions and position is the same as
this rectangle.
A System.Windows.Int32Rect object whose dimensions and position is the same as this
rectangle.
Gets a System.Windows.Rect object whose dimensions and position is the same as this
rectangle.
A System.Windows.Rect object whose dimensions and position is the same as this
rectangle.
SendMessageTimeout flags enumeration.
http://msdn.microsoft.com/en-us/library/windows/desktop/ms644952(v=vs.85).aspx
The calling thread is not prevented from processing other requests while waiting for the function to return.
Prevents the calling thread from processing any other requests until the function returns.
The function returns without waiting for the time-out period to elapse if the receiving thread appears to not respond or "hangs."
The function does not enforce the time-out period as long as the receiving thread is processing messages.
The function should return 0 if the receiving window is destroyed or its owning thread dies while the message is being processed.
Contains information about a file object.
https://msdn.microsoft.com/en-us/library/windows/desktop/bb759792(v=vs.85).aspx
A handle to the icon that represents the file. You are responsible for destroying this handle with DestroyIcon when you no longer need it.
The index of the icon image within the system image list.
An array of values that indicates the attributes of the file object. For information about these values, see the IShellFolder::GetAttributesOf method.
A string that contains the name of the file as it appears in the Windows Shell, or the path and file name of the file that contains the icon representing the file.
A string that describes the type of file.
Retrieves information about an object in the file system, such as a file, folder, directory, or drive root.
You should call this function from a background thread. Failure to do so could cause the UI to stop responding.
A pointer to a null-terminated string of maximum length MAX_PATH that contains the path and file name. Both absolute and relative paths are valid.
If the uFlags parameter includes the SHGFI_PIDL flag, this parameter must be the address of an ITEMIDLIST(PIDL) structure
that contains the list of item identifiers that uniquely identifies the file within the Shell's namespace. The PIDL must be a
fully qualified PIDL. Relative PIDLs are not allowed.
If the uFlags parameter includes the SHGFI_USEFILEATTRIBUTES flag, this parameter does not have to be a valid file name.The function will
proceed as if the file exists with the specified name and with the file attributes passed in the dwFileAttributes parameter.
This allows you to obtain information about a file type by passing just the extension for pszPath and passing FILE_ATTRIBUTE_NORMAL in dwFileAttributes.
This string can use either short (the 8.3 form) or long file names.
A combination of one or more file attribute flags (FILE_ATTRIBUTE_ values as defined in Winnt.h).
If uFlags does not include the SHGFI_USEFILEATTRIBUTES flag, this parameter is ignored.
Pointer to a SHFILEINFO structure to receive the file information.
The size, in bytes, of the SHFILEINFO structure pointed to by the psfi parameter.
The flags that specify the file information to retrieve.
Returns a value whose meaning depends on the uFlags parameter.
Cached file info for small icons.
Cached file info for large icons.
Cached file info for a file description.
Cached path for small icons.
Cached path for large icons.
Cached path for a file description.
Retrieves a small icon for the provided path.
Retrieves file description for the path.
Retrieves a large icon for the provided file.
Retrieves small icons for a directory.
Retrieves large icons for a directory.
Defines flags used in calls to SHGetFileInfo.
get icon
get display name
get type name
get attributes
get icon location
return exe type
get system icon index
put a link overlay on icon
icon in selected state
get only specified attributes
get large icon
get small icon
get open icon
get shell size icon
pszPath is a pidl
use passed dwFileAttribute
apply the appropriate overlays
Get the index of the overlay in the upper 8 bits of the iIcon
The image type contained in the image list.
he image size is normally 32x32 pixels. However, if the Use large icons
option is selected from the Effects section of the Appearance tab in
Display Properties, the image is 48x48 pixels.
These images are the Shell standard small icon size of 16x16, but
the size can be customized by the user.
These images are the Shell standard extra-large icon size.
This is typically 48x48, but the size can be customized by the user.
These images are the size specified by GetSystemMetrics
called with SM_CXSMICON and GetSystemMetrics called with SM_CYSMICON.
Windows Vista and later. The image is normally 256x256 pixels.
The largest valid flag value, for validation purposes.
Contains native functions that are imported from the unmanaged assembly Shlwapi.dll.
Creates a relative path from the directory path to the file path.
The path to the directory that starts the relative path.
The path to the file that ends the relative path.
The relative path from the specified directory path to the specified file path.
Creates a relative path from the to the file path to the directory path.
The path to the file that ends the relative path.
The path to the directory that starts the relative path.
The relative path from the specified directory path to the specified file path.
Creates a relative path from one file or folder to another.
The string builder that stores the created relative path.
The string containing the start of the relative path.
The file attributes of the from path.
The string containing the endpoint of the relative path.
The file attributes of the to path.
True if successful; otherwise, false.
Defines the coordinates of the upper left and lower right corners of a rectangle.
MSDN Documentation https://msdn.microsoft.com/en-us/library/windows/desktop/ms686311(v=vs.85).aspx.
The x-coordinate of the upper-left corner of the rectangle.
The y-coordinate of the upper-left corner of the rectangle.
The x-coordinate of the lower-right corner of the rectangle.
The y-coordinate of the lower-right corner of the rectangle.
Initialises a new instance of the struct.
The x-coordinate of the upper-left corner of the rectangle.
The y-coordinate of the upper-left corner of the rectangle.
The x-coordinate of the lower-right corner of the rectangle.
The y-coordinate of the lower-right corner of the rectangle.
Gets or sets the x-coordinate of the upper-left corner of the rectangle.
Gets or sets the y-coordinate of the upper-left corner of the rectangle.
Gets or sets the x-coordinate of the lower-right corner of the rectangle.
Gets or sets the y-coordinate of the lower-right corner of the rectangle.
Gets a point that represents the top left position of the rectangle.
Gets the size of the rectangle.
Gets or sets the height of the rectangle.
Gets or sets the width of the rectangle.
Determines whether the specified objects are equal to each other.
The first object to compare.
The second object to compare.
True if the specified objects are equal to each other; otherwise, false.
Determines whether the specified objects are not equal to each other.
The first object to compare.
The second object to compare.
True if the specified objects are not equal to each other; otherwise, false.
Serves as a hash function for a particular type.
A hash code for the current object.
Determines whether the specified object is equal to the current object.
The object to compare with the current object.
True if the specified object is equal to the current object; otherwise, false.
Determines whether the specified object is equal to the current object.
The object to compare with the current object.
True if the specified object is equal to the current object; otherwise, false.
Offsets this rectangle by the given delta values.
The amount to offset the rectangle along the x-axis.
The amount to offset the rectangle along the y-axis.
Gets a System.Windows.Int32Rect object whose dimensions and position is the same as
this rectangle.
A System.Windows.Int32Rect object whose dimensions and position is the same as this
rectangle.
Gets a System.Windows.Rect object whose dimensions and position is the same as this
rectangle.
A System.Windows.Rect object whose dimensions and position is the same as this
rectangle.
Defines all of the individual system commands that can be requested.
Closes the window.
Changes the cursor to a question mark with a pointer.
Selects the default item; the user double-clicked the window menu.
Activates the window associated with the application-specified hot key.
Scrolls horizontally.
Indicates whether the screen saver is secure.
Retrieves the window menu as a result of a keystroke.
Maximizes the window.
Minimizes the window.
Sets the state of the display. This command supports devices that have power-saving
features, such as a battery-powered personal computer.
Retrieves the window menu as a result of a mouse click.
Moves the window.
Moves to the next window.
Moves to the previous window.
Restores the window to its normal position and size.
Executes the screen saver application specified in the [boot] section of the
System config file.
Sizes the window.
Activates the Start menu.
Scrolls vertically.
SystemParameterInfoAction enumeration.
Retrieves the size of the work area on the primary display monitor. The work
area is the portion of the screen not obscured by the system taskbar or by
application desktop toolbars. The pvParam parameter must point to a RECT
structure that receives the coordinates of the work area, expressed in
virtual screen coordinates.
To get the work area of a monitor other than the primary display monitor,
call the GetMonitorInfo function.
Graphics card information.
Reference: http://msdn.microsoft.com/en-us/library/aa394512(v=vs.85).aspx
Private field for the property.
Initialises a new instance of the class using the
specified management scope.
Label by which the object is known.
Gets the GPU Memory in Bytes
System memory information.
Reference: http://msdn.microsoft.com/en-us/library/aa394347(v=vs.85).aspx
Private field for the property.
Initialises a new instance of the class using the
specified management scope.
Total capacity of the physical memory—in bytes.
System processor information.
Reference: http://msdn.microsoft.com/en-us/library/aa394373(VS.85).aspx
Private field for the property.
Private field for the property.
Private field for the property.
Initialises a new instance of the class using the
specified management scope.
Label by which the object is known.
Number of logical processors for the current instance of the processor.
For processors capable of hyperthreading, this value includes only the processors which have hyperthreading enabled.
Number of cores for the current instance of the processor.
A core is a physical processor on the integrated circuit.
For example, in a dual-core processor this property has a value of 2.
Class for retrieving information about the user's system based on information obtained via the WMI interface.
e.g. CPU/Memory details.
This could be extended to retrieve remote system information by changing the code used to create the management
scope, but that isn't needed at the moment.
Private field for the property.
Private field for the property.
Private field for the property.
WMI Management scope.
Creates a management scope for use by the sub info classes.
Information about the graphics card.
Information about the memory.
Information about the processor.
Gets information about the graphics card async.
Gets information about the memory async.
Gets information about the processor async.
Helper class for WMI queries
Query WMI async
ManagementObjectSearcher instance
Management Base Object
Specifies a raster-operation code. These codes define how the color data for the
source rectangle is to be combined with the color data for the destination
rectangle to achieve the final color.
dest = source
dest = source OR dest
dest = source AND dest
dest = source XOR dest
dest = source AND (NOT dest)
dest = (NOT source)
dest = (NOT src) AND (NOT dest)
dest = (source AND pattern)
dest = (NOT source) OR dest
dest = pattern
dest = DPSnoo
dest = pattern XOR dest
dest = (NOT dest)
dest = BLACK
dest = WHITE
Capture window as seen on screen. This includes layered windows
such as WPF windows with AllowsTransparency="true"
Resolves the current tray position.
Message for retrieving the bounding rectangle of the Windows taskbar.
Bottom edge.
Left edge.
Right edge.
Top edge.
Gets the position of the system tray.
Tray coordinates.
Retrieves for the windows task bar.
System application bar data.
Retrieves for the specified class and window.
Name of the class to retrieve the data for.
Name of the window to retrieve the data for.
System application bar data.
Eventhandler delegate for trapping user quit events.
Defines the different win32 error codes supported.
The operation was cancelled by the user.
A helper class used to manipulate win32 error codes.
Gets a int value from the specified win32 error code.
The win32 error code to get a integer value from.
The integer value that represents the specified win32 error code.
Gets a int value from the specified win32 error code.
The win32 error code to get a integer value from.
The integer value that represents the specified win32 error code.
Determines whether the specified result integer code matches with the specified
win 32 error code.
The result to compare.
The win32 error code to compare.
True if the two specified values are equivalent to each other; otherwise, false.
Determines whether the specified result value represents a successful operation.
The result to test.
True if the specified result represents a successful operation; otherwise, false.
Determines whether the specified result value represents a failed operation.
The result to test.
True if the specified result represents a failed operation; otherwise, false.
Window handle constants.
Places the window at the bottom of the Z order. If the hWnd parameter identifies a topmost window, the
window loses its topmost status and is placed at the bottom of all other windows.
Places the window above all non-topmost windows. The window maintains its topmost position even when it is
deactivated.
Places the window above all non-topmost windows (that is, behind all topmost windows). This flag has no
effect if the window is already a non-topmost window.
Places the window at the top of the Z order.
For broadcasting messages to all windows.
Contains window information.
The size of the structure, in bytes.
The coordinates of the window.
The coordinates of the client area.
The window styles.
The extended window styles.
The window status.
The width of the window border, in pixels.
The height of the window border, in pixels.
The window class atom.
The Windows version of the application that created the window.
Determines whether the specified objects are equal to each other.
The first object to compare.
The second object to compare.
True if the specified objects are equal to each other; otherwise, false.
Determines whether the specified objects are not equal to each other.
The first object to compare.
The second object to compare.
True if the specified objects are not equal to each other; otherwise, false.
Serves as a hash function for a particular type.
A hash code for the current object.
Determines whether the specified object is equal to the current object.
The object to compare with the current object.
True if the specified object is equal to the current object; otherwise, false.
Determines whether the specified object is equal to the current object.
The object to compare with the current object.
True if the specified object is equal to the current object; otherwise, false.
Defines the different window states.
Hides the window and activates another window.
Maximizes the specified window.
Minimizes the specified window and activates the next top-level window in
the z-order.
Activates and displays the window.
Activates the window and displays it in its current size and position.
Activates the window and displays it as a maximized window.
Activates the window and displays it as a minimized window.
Displays the window as a minimized window.
Displays the window in its current size and position.
Displays a window in its most recent size and position.
Activates and displays a window. If the window is minimized or maximized, the
system restores it to its original size and position.
Defines the specifies the width and height of a rectangle.
The width of the rectangle.
The height of the rectangle.
Initialises a new instance of the struct.
The width of the rectangle.
The height of the rectangle.
Initialises a new instance of the struct as the equivalent of
the specified managed System.Windows.Size.
The instance to copy.
Determines whether the specified objects are equal to each other.
The first object to compare.
The second object to compare.
True if the specified objects are equal to each other; otherwise, false.
Determines whether the specified objects are not equal to each other.
The first object to compare.
The second object to compare.
True if the specified objects are not equal to each other; otherwise, false.
Serves as a hash function for a particular type.
A hash code for the current object.
Determines whether the specified object is equal to the current object.
The object to compare with the current object.
True if the specified object is equal to the current object; otherwise, false.
Determines whether the specified object is equal to the current object.
The object to compare with the current object.
True if the specified object is equal to the current object; otherwise, false.
Defines the different system metric or system configurations that can be retrieved
using the GetSystemMetrics native method.
The flags that specify how the system arranged minimized windows.
The value that specifies how the system is started: 0 Normal boot, 1 Fail-safe
boot, 2 Fail-safe with network boot. A fail-safe boot (also called SafeBoot, Safe
Mode, or Clean Boot) bypasses the user start-up files.
The number of display monitors on a desktop.
The number of buttons on a mouse, or zero if no mouse is installed.
The width of a window border, in pixels. This is equivalent to the CXEDGE value
for windows with the 3-D look.
The width of a cursor, in pixels. The system cannot create cursors of other sizes.
This value is the same as CXFIXEDFRAME.
The width of the rectangle around the location of a first click in a double-click
sequence, in pixels. The second click must occur within the rectangle that is
defined by CXDOUBLECLK and CYDOUBLECLK for the system to consider the two
clicks a double-click. The two clicks must also occur within a specified time. To
set the width of the double-click rectangle, call SystemParametersInfo with
SPI_SETDOUBLECLKWIDTH.
The number of pixels on either side of a mouse-down point that the mouse pointer
can move before a drag operation begins. This allows the user to click and release
the mouse button easily without unintentionally starting a drag operation. If this
value is negative, it is subtracted from the left of the mouse-down point and added
to the right of it.
The width of a 3-D border, in pixels. This metric is the 3-D counterpart of
CXBORDER.
The thickness of the frame around the perimeter of a window that has a caption but
is not sizable, in pixels. CXFIXEDFRAME is the height of the horizontal border,
and CYFIXEDFRAME is the width of the vertical border. This value is the same as
CXDLGFRAME.
The width of the left and right edges of the focus rectangle that the DrawFocusRect
draws. This value is in pixels.
This value is the same as CXSIZEFRAME.
The width of the client area for a full-screen window on the primary display
monitor, in pixels.
The width of the arrow bitmap on a horizontal scroll bar, in pixels.
The width of the thumb box in a horizontal scroll bar, in pixels.
The default width of an icon, in pixels. The LoadIcon function can load only icons
with the dimensions that CXICON and CYICON specifies.
The width of a grid cell for items in large icon view, in pixels. Each item fits
into a rectangle of size CXICONSPACING by CYICONSPACING when arranged. This
value is always greater than or equal to CXICON.
The default width, in pixels, of a maximized top-level window on the primary
display monitor.
The default maximum width of a window that has a caption and sizing borders, in
pixels. This metric refers to the entire desktop. The user cannot drag the window
frame to a size larger than these dimensions. A window can override this value by
processing the WM_GETMINMAXINFO message.
The width of the default menu check-mark bitmap, in pixels.
The width of menu bar buttons, such as the child window close button that is used
in the multiple document interface, in pixels.
The minimum width of a window, in pixels.
The width of a minimized window, in pixels.
The width of a grid cell for a minimized window, in pixels. Each minimized window
fits into a rectangle this size when arranged. This value is always greater than or
equal to CXMINIMIZED.
The minimum tracking width of a window, in pixels. The user cannot drag the window
frame to a size smaller than these dimensions. A window can override this value by
processing the WM_GETMINMAXINFO message.
The amount of border padding for captioned windows, in pixels.
The width of the screen of the primary display monitor, in pixels.
The width of a button in a window caption or title bar, in pixels.
The thickness of the sizing border around the perimeter of a window that can be
resized, in pixels. CXSIZEFRAME is the width of the horizontal border, and
CYSIZEFRAME is the height of the vertical border. This value is the same as
CXFRAME.
The recommended width of a small icon, in pixels. Small icons typically appear in
window captions and in small icon view.
The width of small caption buttons, in pixels.
The width of the virtual screen, in pixels. The virtual screen is the bounding
rectangle of all display monitors. The XVIRTUALSCREEN metric is the coordinates
for the left side of the virtual screen.
The width of a vertical scroll bar, in pixels.
The height of a window border, in pixels. This is equivalent to the CYEDGE value
for windows with the 3-D look.
The height of a caption area, in pixels.
The height of a cursor, in pixels. The system cannot create cursors of other sizes.
This value is the same as CYFIXEDFRAME.
The height of the rectangle around the location of a first click in a double-click
sequence, in pixels. The second click must occur within the rectangle defined by
CXDOUBLECLK and CYDOUBLECLK for the system to consider the two clicks a
double-click. The two clicks must also occur within a specified time. To set the
height of the double-click rectangle, call SystemParametersInfo with
SPI_SETDOUBLECLKHEIGHT.
The number of pixels above and below a mouse-down point that the mouse pointer can
move before a drag operation begins. This allows the user to click and release the
mouse button easily without unintentionally starting a drag operation. If this
value is negative, it is subtracted from above the mouse-down point and added below
it.
The height of a 3-D border, in pixels. This is the 3-D counterpart of CYBORDER.
The thickness of the frame around the perimeter of a window that has a caption but
is not sizable, in pixels. CXFIXEDFRAME is the height of the horizontal border,
and CYFIXEDFRAME is the width of the vertical border. This value is the same as
CYDLGFRAME.
The height of the top and bottom edges of the focus rectangle drawn by
DrawFocusRect. This value is in pixels.
This value is the same as CYSIZEFRAME.
The height of the client area for a full-screen window on the primary display
monitor, in pixels. To get the coordinates of the portion of the screen not
obscured by the system taskbar or by application desktop toolbars, call the
SystemParametersInfo function with the SPI_GETWORKAREA value.
The height of a horizontal scroll bar, in pixels.
The default height of an icon, in pixels. The LoadIcon function can load only icons
with the dimensions CXICON and CYICON.
The height of a grid cell for items in large icon view, in pixels. Each item fits
into a rectangle of size CXICONSPACING by CYICONSPACING when arranged. This
value is always greater than or equal to CYICON.
For double byte character set versions of the system, this is the height of the
Kanji window at the bottom of the screen, in pixels.
The default height, in pixels, of a maximized top-level window on the primary
display monitor.
The default maximum height of a window that has a caption and sizing borders, in
pixels. This metric refers to the entire desktop. The user cannot drag the window
frame to a size larger than these dimensions. A window can override this value by
processing the WM_GETMINMAXINFO message.
The height of a single-line menu bar, in pixels.
The height of the default menu check-mark bitmap, in pixels.
The height of menu bar buttons, such as the child window close button that is used
in the multiple document interface, in pixels.
The minimum height of a window, in pixels.
The height of a minimized window, in pixels.
The height of a grid cell for a minimized window, in pixels. Each minimized window
fits into a rectangle this size when arranged. This value is always greater than or
equal to CYMINIMIZED.
The minimum tracking height of a window, in pixels. The user cannot drag the window
frame to a size smaller than these dimensions. A window can override this value by
processing the WM_GETMINMAXINFO message.
The height of the screen of the primary display monitor, in pixels.
The height of a button in a window caption or title bar, in pixels.
The thickness of the sizing border around the perimeter of a window that can be
resized, in pixels. CXSIZEFRAME is the width of the horizontal border, and
CYSIZEFRAME is the height of the vertical border. This value is the same as
CYFRAME.
The height of a small caption, in pixels.
The recommended height of a small icon, in pixels. Small icons typically appear in
window captions and in small icon view.
The height of small caption buttons, in pixels.
The height of the virtual screen, in pixels. The virtual screen is the bounding
rectangle of all display monitors. The YVIRTUALSCREEN metric is the coordinates
for the top of the virtual screen.
The height of the arrow bitmap on a vertical scroll bar, in pixels.
The height of the thumb box in a vertical scroll bar, in pixels.
Nonzero if User32.dll supports DBCS; otherwise, 0.
Nonzero if the debug version of User.exe is installed; otherwise, 0.
Nonzero if the current operating system is Windows 7 or Windows Server 2008 R2 and
the Tablet PC Input service is started; otherwise, 0. The return value is a bitmask
that specifies the type of digitizer input supported by the device.
Nonzero if Input Method Manager/Input Method Editor features are enabled;
otherwise, 0. IMMENABLED indicates whether the system is ready to use a
Unicode-based IME on a Unicode application. To ensure that a language-dependent IME
works, check DBCSENABLED and the system ANSI code page. Otherwise the
ANSI-to-Unicode conversion may not be performed correctly, or some components like
fonts or registry settings may not be present.
Nonzero if there are digitizers in the system; otherwise, 0. MAXIMUMTOUCHES
returns the aggregate maximum of the maximum number of contacts supported by every
digitizer in the system. If the system has only single-touch digitizers, the return
value is 1. If the system has multi-touch digitizers, the return value is the
number of simultaneous contacts the hardware can provide.
Nonzero if the current operating system is the Windows XP, Media Centre Edition,
0 if not.
Nonzero if drop-down menus are right-aligned with the corresponding menu-bar item;
0 if the menus are left-aligned.
Nonzero if the system is enabled for Hebrew and Arabic languages, 0 if not.
Nonzero if a mouse is installed; otherwise, 0. This value is rarely zero, because
of support for virtual mice and because some systems detect the presence of the
port instead of the presence of a mouse.
Nonzero if a mouse with a horizontal scroll wheel is installed; otherwise 0.
Nonzero if a mouse with a vertical scroll wheel is installed; otherwise 0.
The least significant bit is set if a network is present; otherwise, it is cleared.
The other bits are reserved for future use.
Nonzero if the Microsoft Windows for Pen computing extensions are installed;
otherwise, zero.
This system metric is used in a Terminal Services environment to determine if the
current Terminal Server session is being remotely controlled. Its value is nonzero
if the current session is remotely controlled; otherwise, 0.
This system metric is used in a Terminal Services environment. If the calling
process is associated with a Terminal Services client session, the return value is
nonzero. If the calling process is associated with the Terminal Services console
session, the return value is 0.
Nonzero if all the display monitors have the same colour format, otherwise, 0. Two
displays can have the same bit depth, but different colour formats. For example,
the red, green, and blue pixels can be encoded with different numbers of bits, or
those bits can be located in different places in a pixel colour value.
This system metric should be ignored; it always returns 0.
The build number if the system is Windows Server 2003 R2; otherwise, 0.
Nonzero if the user requires an application to present information visually in
situations where it would otherwise present the information only in audible form;
otherwise, 0.
Nonzero if the current session is shutting down; otherwise, 0.
Nonzero if the computer has a low-end (slow) processor; otherwise, 0.
Nonzero if the current operating system is Windows 7 Starter Edition, Windows Vista
Starter, or Windows XP Starter Edition; otherwise, 0.
Nonzero if the meanings of the left and right mouse buttons are swapped; otherwise,
0.
Nonzero if the current operating system is the Windows XP Tablet PC edition or if
the current operating system is Windows Vista or Windows 7 and the Tablet PC Input
service is started; otherwise, 0. The DIGITIZER setting indicates the type of
digitizer input supported by a device running Windows 7 or Windows Server 2008 R2.
For more information, see Remarks.
The coordinates for the left side of the virtual screen. The virtual screen is the
bounding rectangle of all display monitors. The CXVIRTUALSCREEN metric is the
width of the virtual screen.
The coordinates for the top of the virtual screen. The virtual screen is the
bounding rectangle of all display monitors. The CYVIRTUALSCREEN metric is the
height of the virtual screen.
Defines the different flags used to control the way a shortcut menu is displayed
on a window.
Positions the shortcut menu so that its bottom side is aligned with the coordinate
specified by the y parameter.
Centres the shortcut menu horizontally relative to the coordinate specified by the
x parameter.
If the menu cannot be shown at the specified location without overlapping the
excluded rectangle, the system tries to accommodate the requested horizontal
alignment before the requested vertical alignment.
Animates the menu from right to left.
Animates the menu from left to right.
Positions the shortcut menu so that its left side is aligned with the coordinate
specified by the x parameter.
The user can select menu items with only the left mouse button.
Displays menu without animation.
The function does not send notification messages when the user clicks a menu item.
The function returns the menu item identifier of the user's selection in the
return value.
Positions the shortcut menu so that its right side is aligned with the coordinate
specified by the x parameter.
The user can select menu items with both the left and right mouse buttons.
Positions the shortcut menu so that its top side is aligned with the coordinate
specified by the y parameter.
Centres the shortcut menu vertically relative to the coordinate specified by
the y parameter.
Animates the menu from bottom to top.
Animates the menu from top to bottom.
If the menu cannot be shown at the specified location without overlapping the
excluded rectangle, the system tries to accommodate the requested vertical
alignment before the requested horizontal alignment.
Defines the base values in this enum.
Defines the different ways the transparency is applied while updating a layered window.
Uses the specified blend structure as the blend function.
Uses the specified colour key as the transparency colour.
Draws an opaque layered window.
An enumeration defining constants that map to the various VK_* constants.
The Left Mouse Button.
The Right mouse button.
The Control-break processing.
The Middle mouse button (three-button mouse).
The X1 mouse button.
The X2 mouse button.
The BACKSPACE key.
The TAB key.
The CLEAR key.
The ENTER key.
The SHIFT key.
The CTRL key.
The ALT key.
The PAUSE key.
The CAPS LOCK key.
IME final mode.
The ESC key.
IME accept.
IME mode change request.
The SPACEBAR key.
The PAGE UP key.
The PAGE DOWN key.
The END key.
The HOME key.
The LEFT ARROW key.
UThe P ARROW key.
The RIGHT ARROW key.
The DOWN ARROW key.
The SELECT key.
The PRINT key.
The EXECUTE key.
The PRINT SCREEN key.
The INS key.
The DEL key.
The HELP key.
The 0 key.
The 1 key.
The 2 key.
The 3 key.
The 4 key.
The 5 key.
The 6 key.
The 7 key.
The 8 key.
The 9 key.
The A key.
The B key.
The C key.
The D key.
The E key.
The F key.
The G key.
The H key.
The I key.
The J key.
The K key.
The L key.
The M key.
The N key.
The O key.
The P key.
The Q key.
The R key.
The S key.
The T key.
The U key.
The V key.
The W key.
The X key.
The Y key.
The Z key.
The Left Windows key (Natural keyboard).
The Right Windows key (Natural keyboard).
The Applications key (Natural keyboard).
The Computer Sleep key.
The Numeric keypad 0 key.
The Numeric keypad 1 key.
The Numeric keypad 2 key.
The Numeric keypad 3 key.
The Numeric keypad 4 key.
The Numeric keypad 5 key.
The Numeric keypad 6 key.
The Numeric keypad 7 key.
The Numeric keypad 8 key.
The Numeric keypad 9 key.
The Multiply key.
The Add key.
The Separator key.
The Subtract key.
The Decimal key.
The Divide key.
The F1 key.
The F2 key.
The F3 key.
The F4 key.
The F5 key.
The F6 key.
The F7 key.
The F8 key.
The F9 key.
The F10 key.
The F11 key.
The F12 key.
The F13 key.
The F14 key.
The F15 key.
The F16 key.
The F17 key.
The F18 key.
The F19 key.
The F20 key.
The F21 key.
The F22 key.
The F23 key.
The F24 key.
The NUM LOCK key.
The SCROLL LOCK key.
The Left SHIFT key.
The Right SHIFT key.
The Left CONTROL key.
The Right CONTROL key.
The Left MENU key.
The Right MENU key.
The Browser Back key.
The Browser Forward key.
The Browser Refresh key.
The Browser Stop key.
The Browser Search key.
The Browser Favourites key.
The Browser Start and Home key.
The Volume Mute key.
The Volume Down key.
The Volume Up key.
The Next Track key.
The Previous Track key.
The Stop Media key.
The Play/Pause Media key.
The Start Mail key.
The Select Media key.
The Start Application 1 key.
The Start Application 2 key.
For any country/region, the '+' key.
For any country/region, the ',' key.
For any country/region, the '-' key.
For any country/region, the '.' key.
The IME PROCESS key.
Used to pass Unicode characters as if they were keystrokes.
The Erase EOF key.
The Play key.
The Zoom key.
The PA1 key.
The Clear key.
Defines the different window sizing and positioning flags to pass into the SetWindowPos
method.
If the calling thread and the thread that owns the window are attached to different
input queues, the system posts the request to the thread that owns the window. This
prevents the calling thread from blocking its execution while other threads process
the request.
Prevents generation of the SYNCPAINT message.
Draws a frame (defined in the window's class description) around the window.
Applies new frame styles set using the SetWindowLong function. Sends a NCCALCSIZE
message to the window, even if the window's size is not being changed. If this flag
is not specified, NCCALCSIZE is sent only when the window's size is being changed.
Hides the window.
Does not activate the window. If this flag is not set, the window is activated and
moved to the top of either the topmost or non-topmost group (depending on the
setting of the insertAfter parameter).
Discards the entire contents of the client area. If this flag is not specified, the
valid contents of the client area are saved and copied back into the client area
after the window is sized or repositioned.
Retains the current position (ignores X and Y parameters).
Does not change the owner window's position in the Z order.
Does not redraw changes. If this flag is set, no repainting of any kind occurs.
This applies to the client area, the non-client area (including the title bar and
scroll bars), and any part of the parent window uncovered as a result of the window
being moved. When this flag is set, the application must explicitly invalidate or
redraw any parts of the window and parent window that need redrawing.
Same as the NOOWNERZORDER flag.
Prevents the window from receiving the WINDOWPOSCHANGING message.
Retains the current size (ignores the cx and cy parameters).
Retains the current Z order (ignores the hWndInsertAfter parameter).
Displays the window.
A combination of NOSIZE, NOMOVE, and NOACTIVATE.
A combination of NOACTIVATE, NOOWNERZORDER, NOSIZE, NOMOVE, NOREDRAW, and NOSENDCHANGING.
Contains native functions that are imported from the unmanaged assembly Shell32.dll.
Parses a command line string and returns an array of strings of the command
line arguments.
The full and complete command line to parse for individual arguments.
An array of individual command line arguments.
Creates and initializes a shell item object representing a folder pointing to the
specified path.
The path to the folder to create.
A newly created shell item that represents a folder pointing to the specified path.
Parses a Unicode command line string and returns an array of pointers to the
command line arguments, along with a count of such arguments.
Pointer to a null-terminated Unicode string that contains the full command
line. If this parameter is an empty string the function returns the path to
the current executable file.
Once the method returns contains the number of array elements returned.
A pointer to an array of LPWSTR values. If the function fails, the return value is
IntPtr.Zero.
Creates and initializes a shell item object from a parsing name.
A pointer to a display name.
A pointer to a bind context used to pass parameters as inputs and outputs to the
parsing function.
A reference to the IID of the interface to retrieve through
.
When this method returns successfully, contains the interface pointer requested.
Sends a message to the taskbar's status area.
.Net-friendly wrapper around Shell_NotifyIcon Shell32 API.
.Net-friendly wrapper around Shell_NotifyIcon Shell32API for
setting the Notification Icon version. Attempts to set the
highest version first.
Creates an IEnumFORMATETC object from an array of FORMATETC structures.
The number of entries in the afmt array.
An array of FORMATETC structures that specifies the clipboard formats of interest.
When this function returns successfully, receives an IEnumFORMATETC interface
pointer. Receives NULL on failure.
Gets the screen coordinates of the bounding rectangle of a notification icon.
.Net-friendly wrapper around Shell_NotifyIconGetRect Shell32 API.
Sends an appbar message to the system.
Appbar message value to send.
A pointer to an APPBARDATA structure. The content of the structure on entry
and on exit depends on the value set in the dwMessage parameter. See the
individual message pages for specifics.
This function returns a message-dependent value.
Retrieves an image list.
The image type contained in the list.
Reference to the image list interface identifier, normally IID_IImageList.
When this method returns, contains the interface pointer requested in riid. This is typically IImageList.
If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Contains native functions that are imported from the unmanaged assembly User32.dll.
The function prepares the specified window for painting
and fills a structure with information about the
painting.
Handle to the window to be repainted.
Pointer to the structure that will receive painting
information.
If the function succeeds, the return value is the handle to a display device
context for the specified window.
If the function fails, the return value is NULL, indicating that no display device
context is available.
Converts the client-area coordinates of a specified point to screen coordinates.
A handle to the window whose client area is used for the conversion.
A POINT structure that contains the client coordinates to be converted.
The converted POINT structure.
Creates an overlapped, pop-up, or child window with an extended window style.
The extended window style of the window being created.
A null-terminated string or a class atom.
The style of the window being created.
A handle to the parent or owner window of the window being created.
If the function succeeds, the return value is a handle to the new window; otherwise
null.
Creates an overlapped, pop-up, or child window with an extended window style.
The extended window style of the window being created.
A null-terminated string or a class atom.
The window name.
The style of the window being created.
The initial horizontal position of the window.
The initial vertical position of the window.
The width, in device units, of the window.
The height, in device units, of the window.
A handle to the parent or owner window of the window being created.
A handle to a menu, or specifies a child-window identifier, depending on the
window style.
A handle to the instance of the module to be associated with the window.
Pointer to a value to be passed to the window through the CREATESTRUCT structure.
If the function succeeds, the return value is a handle to the new
window; otherwise null.
Brings the specified window to the top of the Z order.
A handle to the window to bring to the top of the Z order.
Brings the specified window to the top of the Z order.
A handle to the window to bring to the top of the Z order.
Passes the hook information to the next hook procedure in the current hook chain. A
hook procedure can call this function either before or after processing the hook
information.
The hook code passed to the current hook procedure. The next hook procedure uses
this code to determine how to process the hook information.
The wParam value passed to the current hook procedure. The meaning of this
parameter depends on the type of hook associated with the current hook chain.
The lParam value passed to the current hook procedure. The meaning of this
parameter depends on the type of hook associated with the current hook chain.
This value is returned by the next hook procedure in the chain. The current hook
procedure must also return this value. The meaning of the return value depends on
the hook type.
Get a array containing the handles to all the non child windows associated with
the current thread.
A array containing the handles to all the non child windows associated with the
current thread.
Get a array containing the handles to all the non child windows associated with
the specified thread id.
The thread id whose windows should be returned.
A array containing the handles to all the non child windows associated with the
current thread.
Calls the default window procedure to provide default processing for any window
messages that an application does not process.
A handle to the window procedure that received the message.
The message.
Additional word message information. The content of this parameter depends on the
value of the parameter.
Additional long message information. The content of this parameter depends on the
value of the parameter.
The return value is the result of the message processing and depends on the
message.
Calls the default window procedure to provide default processing for any window
messages that an application does not process.
A handle to the window procedure that received the message.
The message.
First additional message information. The contents of this parameter depend on the
value of the parameter.
Second additional message information. The contents of this parameter depend on the
value of the parameter.
The return value is the result of the message processing and depends on the
message.
Destroys the specified window. The function sends DESTROY and NCDESTROY messages to
the window to deactivate it and remove the keyboard focus from it.
A handle to the window to be destroyed.
True if the window was destroyed; otherwise false.
Redraws the menu bar of the specified window.
A handle to the window whose menu bar is to be redrawn.
If the function succeeds, the return value is true; otherwise, false.
Enables the specified menu item on the specified menu.
The handle to the menu.
The menu item to enable.
The function marks the end of painting in the specified
window. This function is required for each call to the
function, but only after painting is complete.
Handle to the window that has been repainted.
Pointer to a structure that contains the painting
information retrieved by .
The return value is always nonzero.
Enumerates all top-level windows on the screen by passing the handle to each
window, in turn, to an application-defined call-back function.
A pointer to an application-defined call-back function.
An application-defined value to be passed to the call-back function.
If the function succeeds, the return value is nonzero; otherwise, zero.
Fills a rectangle by using the specified brush.
A handle to the device context.
Contains the logical coordinates of the rectangle to be filled.
A handle to the brush used to fill the rectangle.
True if successful; otherwise false.
Retrieves a handle to the first top-level window whose class name matches the
specified string.
The class name or a class atom.
If the function succeeds, the return value is a handle to the first window found
that has the specified class name; otherwise IntPtr.Zero.
Retrieves the thread identifier of the calling thread.
The return value is the thread identifier of the calling thread.
Retrieves the handle to the window that currently has the clipboard open.
f the function succeeds, the return value is the handle to the window that has the
clipboard open. If no window has the clipboard open, the return value is NULL. To
get extended error information, call GetLastError.
Registers a hotkey in Windows globally.
Handle to the window context.
Id of the hotkey which can be used to unregister the hotkey.
Modifier keys like Control, Alt, Shift, Win key.
The key code of the hotkey to listen for.
If the function succeeds, it will return true.
Unregisters a hotkey in Windows.
Handle to the window context.
Id of the hotkey to unregister.
If the function succeeds, it will return true.
Retrieves a handle to a window whose class name and window name match the
specified strings. The function searches child windows, beginning with the one
following the specified child window. This function does not perform a
case-sensitive search.
A handle to the parent window whose child windows are to be searched.
A handle to a child window. The search begins with the next child window in the Z
order. The child window must be a direct child window of hwndParent, not just a
descendant window.
The class name or a class atom created by a previous call to the
or RegisterClassEx function. The atom must be placed
in the low-order word of lpszClass; the high-order word must be zero.
The window name (the window's title). If this parameter is NULL, all window names
match.
If the function succeeds, the return value is a handle to the window that has the
specified class and window names.
If the function fails, the return value is IntPtr.Zero.
Returns an array containing the handles to all the non child windows associated
with the specified class name.
The class name whose windows should be returned.
An array containing the handles to all the non child windows associated with the
specified class name.
Retrieves the interval time used for automatically scrolling while dragging in
milliseconds.
The return value specifies the interval time used for automatically scrolling, in
milliseconds.
Retrieves the time span representing the interval time used for automatically
scrolling while dragging.
The return value specifies the interval time used for automatically scrolling, in
milliseconds.
Retrieves a handle to the window (if any) that has captured the mouse.
The handle to the capture window associated with the current thread.
Retrieves the name of the class to which the specified window belongs.
A handle to the window and, indirectly, the class to which the window belongs.
The name of the class to which the specified window belongs.
Retrieves the coordinates of a window's client area.
A handle to the window.
A System.Windows.Rect structure containing the specified windows bounding area.
Retrieves the cursor's position, in screen coordinates.
A point containing the screen coordinates of the cursor.
Retrieves a handle to a device context for the client area of a specified window or
for the entire screen.
A handle to the window whose device context is to be retrieved. If this value is
IntPtr.Zero, this retrieves the device context for the entire screen.
If the function succeeds, the return value is a handle to the DC for the specified
window's client area; otherwise IntPtr.Zero.
Retrieves a handle to a device context (DC) for the client area of a specified
window or for the entire screen.
A handle to the window whose DC is to be retrieved.
A clipping region that may be combined with the visible region of the DC.
Specifies how the DC is created.
If the function succeeds, the return value is the handle to the DC for the
specified window; otherwise, IntPtr.Zero.
Gets a handle to the desktop window. The desktop window covers the entire screen.
The desktop window is the area on top of which other windows are painted.
Handle to the desktop window.
Get a array containing the handles to all the display monitors.
A array containing the handles to all the display monitors.
Retrieves the current double-click time for the mouse. A double-click is a series
of two clicks of the mouse button, the second occurring within a specified time
after the first. The double-click time is the maximum number of milliseconds that
may occur between the first and second click of a double-click. The maximum
double-click time is 5000 milliseconds.
The return value specifies the current double-click time, in milliseconds.
Retrieves the handle to the window that has the keyboard focus, if the window is
attached to the calling thread's message queue.
The return value is the handle to the window with the keyboard focus.
Retrieves a handle to the foreground window (the window with which the user is
currently working).
The window handler to the window that currently is active on the users desktop.
Gives focus to a given window.
Retrieves the status of the specified virtual key. The status specifies whether the
key is up, down, or toggled.
A virtual key.
The return value specifies the status of the specified virtual key.
Retrieves a handle to the display monitor that contains a specified point.
Specifies the point of interest in virtual-screen coordinates.
If the point is contained by a display monitor, the return value is an
HMONITOR handle to that display monitor; otherwise, the primary monitor.
Retrieves a handle to the display monitor that contains a specified point.
Specifies the point of interest in virtual-screen coordinates.
Determines the function's return value if the point is not contained within any
display monitor.
If the point is contained by a display monitor, the return value is an
HMONITOR handle to that display monitor; otherwise, the primary monitor.
Retrieves a handle to the display monitor that has the largest area of intersection
with the bounding rectangle of a specified window.
A handle to the window of interest.
The handle to the display monitor that intersects with the largest area of the
specified window if found; otherwise, the primary monitor.
Retrieves information about a display monitor.
A handle to the display monitor of interest.
A MONITORINFO structure that contains information about the specified display
monitor.
Retrieves a handle to the specified window's parent or owner.
A handle to the window whose parent window handle is to be retrieved.
If the window is a child window, the return value is a handle to the parent window.
If the window is a top-level window with the WS_POPUP style, the return value is a
handle to the owner window.
Retrieves the position of the cursor in physical coordinates.
Enables the application to access the window menu.
A handle to the window that will own a copy of the window menu.
A handle to a copy of the window menu.
Retrieves the specified system metric or system configuration setting.
The system metric or configuration setting to be retrieved.
If successful the requested system metric or configuration setting;
otherwise 0.
Retrieves a handle to a window that has the specified relationship (Z-Order or
owner) to the specified window.
A handle to a window. The window handle retrieved is relative to this window, based
on the value of the parameter.
The relationship between the specified window and the window whose handle is to be
retrieved.
If the function succeeds, the return value is a window handle. If no window exists
with the specified relationship to the specified window, the return value is
IntPtr.Zero.
Retrieves information about the style on the specified window.
A handle to the window.
If the function is successful the style of the specified window is returned;
otherwise WindowStyles.None.
Retrieves information about the specified window.
A handle to the window whose information is to be retrieved.
A WINDOWINFO structure that contains information about the specified window.
Retrieves information about the specified window.
A handle to the window.
A member of the enumeration that specifies which
attribute to retrieve.
If the function is successful the value of the requested attribute is returned;
otherwise zero.
Retrieves information about the specified window.
A handle to the window.
A member of the enumeration that specifies which
attribute to retrieve.
If the function is successful the value of the requested attribute is returned;
otherwise zero.
Retrieves the dimensions of the bounding rectangle of the specified window.
A handle to the window.
A System.Windows.Rect structure containing the specified windows bounding area.
Retrieves the show state and the restored, minimized, and maximized positions
of the specified window.
A handle to the window.
The window placement structure with the placement information set.
Retrieves the dimensions of the bounding rectangle of the specified window.
A handle to the window.
A System.Windows.Rect structure containing the specified windows bounding area.
Retrieves information about the style on the specified window.
A handle to the window.
If the function is successful the style of the specified window is returned;
otherwise WindowStyles.None.
Copies the text of the specified window's title bar (if it has one) into a buffer.
If the specified window is a control, the text of the control is copied. However,
GetWindowText cannot retrieve the text of a control in another application.
A handle to the window or control containing the text.
The buffer that will receive the text. If the string is as long or longer than the
buffer, the string is truncated and terminated with a null character.
The maximum number of characters to copy to the buffer, including the null
character. If the text exceeds this limit, it is truncated.
If the function succeeds, the return value is the length, in characters, of the
copied string, not including the terminating null character. If the window has no
title bar or text, if the title bar is empty, or if the window or control handle is
invalid, the return value is zero. To get extended error information, call
GetLastError.
This function cannot retrieve the text of an edit control in another application.
Greys out the specified menu item on the specified menu.
The handle to the menu.
The menu item to grey out.
Calculates the intersection of two source rectangles.
A structure that contains the first
source rectangle.
A structure that contains the second
source rectangle.
The intersection of the two specified source rectangles.
Determines whether a window is a child window or descendant window of a specified
parent window. A child window is the direct descendant of a specified parent window
if that parent window is in the chain of parent windows; the chain of parent
windows leads from the original overlapped or pop-up window to the child window.
A handle to the parent window.
A handle to the window to be tested.
True if the window is a child or descendant window of the specified parent window;
otherwise, false.
Determines whether the specified window is minimised.
A handle to the window to be tested.
True if the window is iconic (minimised); otherwise, false.
Determines whether the specified virtual key is currently pressed.
The key to test.
True of the key is currently pressed; otherwise, false.
Determines whether the specified window handle identifies an existing window.
A handle to the window to be tested.
True if the window handle indentifies as an existing window; otherwise, false.
Determines whether the specified window is enabled for mouse and keyboard input.
A handle to the window to be tested.
True if the window is enabled; otherwise, false.
Determines the visibility state of the specified window.
A handle to the window to be tested.
True if the window is visible; otherwise, false.
Determines whether a window is maximised.
A handle to the window to be tested.
True if the window is zoomed (maximised); otherwise, false.
Loads the specified bitmap resource from a module's executable file.
A handle to the module of either a DLL or executable (.exe) that contains the image
to be loaded.
The image to be loaded.
If the function succeeds, the return value is the handle of the newly loaded image.
If the function fails, the return value is NULL. To get extended error information,
call GetLastError.
Loads the specified icon resource from the executable (.exe) file
associated with an application instance.
A handle to an instance of the module whose executable file contains the icon to be
loaded.
The name of the icon resource to be loaded.
Loads an icon, cursor, animated cursor, or bitmap.
A handle to the module of either a DLL or executable (.exe) that contains the image
to be loaded.
The image to be loaded.
The type of image to be loaded.
The width, in pixels, of the icon or cursor.
The height, in pixels, of the icon or cursor.
Load flags.
If the function succeeds, the return value is the handle of the newly loaded image.
If the function fails, the return value is NULL. To get extended error information,
call GetLastError.
Loads a string resource from the executable file associated with a specified
module, copies the string into a buffer, and appends a terminating null character.
A handle to the module of either a DLL or executable (.exe) that contains the image
to be loaded.
The identifier of the string to be loaded.
The buffer is to receive the string. Must be of sufficient length to hold a pointer
(8 bytes).
The size of the buffer, in characters. The string is truncated and null-terminated
if it is longer than the number of characters specified. If this parameter is 0,
then lpBuffer receives a read-only pointer to the resource itself.
If the function succeeds, the return value is the number of characters copied into
the buffer, not including the terminating null character, or zero if the string
resource does not exist. To get extended error information, call GetLastError.
The MapVirtualKey function translates (maps) a virtual-key code into a scan code or
character value, or translates a scan code into a virtual-key code.
Specifies the virtual-key code or scan code for a key. How this value is
interpreted depends on the value of the uMapType parameter.
Specifies the translation to perform. The value of this parameter depends on the
value of the uCode parameter.
Either a scan code, a virtual-key code, or a character value, depending on the
value of uCode and uMapType. If there is no translation, the return value is zero.
Displays a modal dialog box that contains a system icon, a set of buttons, and a
brief application-specific message, such as status or error information. The
message box returns an integer value that indicates which button the user clicked.
A handle to the owner window of the message box to be created.
The message to be displayed.
The dialog box title. If this parameter is Null, the default title is Error.
The contents and behavior of the dialog box.
A integer value indicating which button was pressed by the user.
Places a message in the message queue associated with the thread that created the
specified window and returns without waiting for the thread to process the message.
A handle to the window whose window procedure is to receive the message.
The message to be posted.
Additional word message-specific information.
Additional long message-specific information.
If the method succeeds, the return value is true; otherwise false.
Registers a window class.
A pointer to a structure.
If the function succeeds, the return value is a class atom that uniquely identifies
the class being registered. If the function fails, the return value is zero.
Defines a new window message that is guaranteed to be unique throughout the system.
The message to be registered.
If the message is successfully registered, the return value is a message identifier
in the range 0xC000 through 0xFFFF. If the function fails, the return value is
zero.
Releases a device context, freeing it for use by other applications.
A handle to the window whose device context is to be released.
A handle to the device context to be released.
True if the device context was released successfully; otherwise false.
Converts the specified screen point to client-area coordinates.
A handle to the window whose client area will be used for the conversion.
A pointer to a POINT structure that specifies the screen coordinates to
be converted.
True if the function is successful; otherwise, false.
Sends the specified message to a window or windows.
A handle to the window whose window procedure will receive the message.
The message to be sent.
The return value specifies the result of the message processing; it depends
on the message sent.
Sends the specified message to a window or windows.
A handle to the window whose window procedure will receive the message.
The message to be sent.
Additional word message-specific information.
Additional long message-specific information.
The return value specifies the result of the message processing; it depends
on the message sent.
Sends the specified message to a window or windows.
A handle to the window whose window procedure will receive the message.
The message to be sent.
Additional word message-specific information.
Additional long message-specific information.
The return value specifies the result of the message processing; it depends
on the message sent.
Sends the specified message to one or more windows.
A handle to the window whose window procedure will receive the message.
The message to be sent (see WindowMessage enum).
Additional word message-specific information.
Additional long message-specific information.
The behaviour of this function.
The duration of the time-out period, in milliseconds. If the message is a broadcast
message, each window can use the full time-out period. For example, if you specify
a five second time-out period and there are three top-level windows that fail to
process the message, you could have up to a 15 second delay.
The result of the message processing. The value of this parameter depends on the
message that is specified.
If the function succeeds, the return value is nonzero; otherwise zero.
Sets the keyboard focus to the specified window. The window must be attached to the
calling thread's message queue.
A handle to the window that will receive the keyboard input. If this parameter is
NULL, keystrokes are ignored.
If the function succeeds, the return value is the handle to the window that
previously had the keyboard focus; otherwise IntPtr.Zero.
Sets the default menu item for the specified menu.
A handle to the menu to set the default item for.
The identifier of new default menu item or -1 for no default item.
True if the method is successful; otherwise, false.
Changes the parent window of the specified child window.
A handle to the child window.
A handle to the new parent window.
If the function succeeds, the return value is a handle to the previous parent
window; otherwise, IntPtr.Zero.
Set the style on the specified window to the specified style.
A handle to the window.
The style that the specified window should be set to.
True if successful; otherwise false.
Set the style on the specified window to the specified style.
A handle to the window.
The style that the specified window should be set to.
True if successful; otherwise false.
Changes an attribute of the specified window.
A handle to the window.
A member of the enumeration that specifies which
attribute is to be set.
The new value for the specified attribute.
True if the function is successful; otherwise, false.
Changes an attribute of the specified window.
A handle to the window.
A member of the enumeration that specifies which
attribute is to be set.
The new value for the specified attribute.
True if the function is successful; otherwise, false.
Changes the size, position, and Z order of a child, pop-up, or top-level window.
The wrapper around the window.
A combination of the members in the enumeration that
define the way the sizing and positioning happens.
True if the function was successful; otherwise false.
Changes the size, position, and Z order of a child, pop-up, or top-level window.
The handle to the window.
A combination of the members in the enumeration that
define the way the sizing and positioning happens.
True if the function was successful; otherwise false.
Changes the size, position, and Z order of a child, pop-up, or top-level window.
The handle to the window.
The window sizing and positioning flags.
True if the function was successful; otherwise false.
Changes the size, position, and Z order of a child, pop-up, or top-level window.
The handle to the window.
The new position of the window.
The window sizing and positioning flags.
True if the function was successful; otherwise false.
Changes the size, position, and Z order of a child, pop-up, or top-level window.
The handle to the window.
The new position of the left side of the window, in client coordinates.
The new position of the top of the window, in client coordinates.
A combination of the members in the enumeration that
define the way the sizing and positioning happens.
True if the function was successful; otherwise false.
Changes the size, position, and Z order of a child, pop-up, or top-level window.
The handle to the window.
The new position of the window, in client coordinates.
The new size of the window, in pixels.
A combination of the members in the enumeration that
define the way the sizing and positioning happens.
True if the function was successful; otherwise false.
Changes the size, position, and Z order of a child, pop-up, or top-level window.
A handle to the window.
A handle to the window to precede the positioned window in the Z order.
A combination of the members in the enumeration that
define the way the sizing and positioning happens.
True if the function was successful; otherwise false.
Changes the size, position, and Z order of a child, pop-up, or
top-level window.
A handle to the window.
A handle to the window to precede the positioned window in the Z order.
The new position of the left side of the window, in client coordinates.
The new position of the top of the window, in client coordinates.
The new width of the window, in pixels.
The new height of the window, in pixels.
The window sizing and positioning flags.
True if the function succeeds; otherwise false.
Sets the window region of a window.
A handle to the window whose window region is to be set.
A handle to a region.
Specifies whether the system redraws the window after setting the window region.
If the method succeeds, the return value is nonzero; otherwise zero.
Installs an application-defined hook procedure into a hook chain.
The type of hook procedure to be installed.
A reference to the hook procedure.
The identifier of the thread with which the hook procedure is to be associated.
If the function succeeds, the return value is the handle to the hook procedure;
otherwise IntPtr.Zero.
Changes the size of the specified window.
The wrapper around the window.
The new width of the window, in pixels.
The new height of the window, in pixels.
True if the function was successful; otherwise false.
Set the style on the specified window to the specified style.
A handle to the window.
The style that the specified window should be set to.
True if successful; otherwise false.
Set the style on the specified window to the specified style.
A handle to the window.
The style that the specified window should be set to.
True if successful; otherwise false.
Sets the specified window's show state.
A handle to the window.
Controls how the window is to be shown.
Sets the specified window's show state.
A handle to the window.
Controls how the window is to be shown.
Displays a shortcut menu at the specified location and tracks the selection of
items on the shortcut menu.
A handle to the shortcut menu to be displayed.
Specifies function options.
The horizontal location of the shortcut menu, in screen coordinates.
The vertical location of the shortcut menu, in screen coordinates.
A handle to the window that owns the shortcut menu.
If the method succeeds, the return value is nonzero; otherwise zero.
Removes a hook procedure installed in a hook chain by the
function.
A handle to the hook to be removed.
True if the function succeeds; otherwise, false.
Unregisters a window class, freeing the memory required for the class.
A null-terminated string to the class name or a class atom.
A handle to the instance of the module that created the class.
True if the function succeeds; otherwise, false.
Updates the position, size, shape, content, and translucency of a glow window.
The glow window that needs updating.
The device context for the screen.
The device context for the window.
The blend structure structure that specifies the transparency value to be used when
composing the layered window.
True if the function was successful; otherwise false.
Retrieves a handle to the display monitor that contains a specified point.
Specifies the point of interest in virtual-screen coordinates.
Determines the function's return value if the point is not contained within
any display monitor.
If the point is contained by a display monitor, the return value is an
HMONITOR handle to that display monitor; otherwise the return value depends on
the parameter.
Passes the hook information to the next hook procedure in the current hook chain. A
hook procedure can call this function either before or after processing the hook
information.
This parameter is ignored.
The hook code passed to the current hook procedure. The next hook procedure uses
this code to determine how to process the hook information.
The wParam value passed to the current hook procedure. The meaning of this
parameter depends on the type of hook associated with the current hook chain.
The lParam value passed to the current hook procedure. The meaning of this
parameter depends on the type of hook associated with the current hook chain.
This value is returned by the next hook procedure in the chain. The current hook
procedure must also return this value. The meaning of the return value depends on
the hook type.
Converts the client-area coordinates of a specified point to screen coordinates.
A handle to the window whose client area is used for the conversion.
A POINT structure that contains the client coordinates to be converted.
True if the function succeeds; otherwise, false.
Enables, disables, or greys the specified menu item.
A handle to the menu.
The menu item to be enabled, disabled, or greyed, as determined by the
parameter.
Indicate whether the menu item is enabled, disabled, or greyed.
True is successful; otherwise, false.
Enumerates display monitors that intersect a region formed by the intersection of
a specified clipping rectangle and the visible region of a device context.
A handle to a display device context that defines the visible region of interest.
A pointer to a RECT structure that specifies a clipping rectangle.
A delegate to use as a call-back function.
Application-defined data that passes directly to
the specified method.
If the function succeeds, the return value is true; otherwise false.
Enumerates all non-child windows associated with a thread by passing the handle to
each window, in turn, to an application-defined call-back function.
The identifier of the thread whose windows are to be enumerated.
A pointer to an application-defined call-back function.
An application-defined value to be passed to the call-back function.
If the call-back function returns true for all windows in the thread specified by
, the return value is true. If the call-back function
returns false on any enumerated window, or if there are no windows found in the
thread specified by , the return value is false.
Fills a rectangle by using the specified brush.
A handle to the device context.
Contains the logical coordinates of the rectangle to be filled.
A handle to the brush used to fill the rectangle.
True if successful; otherwise false.
Retrieves a handle to the top-level window whose class name and window name match
the specified strings.
The class name or a class atom.
The window name (the window's title). If this parameter is null, all window names
match.
If the function succeeds, the return value is a handle to the window that has the
specified class name and window name; otherwise IntPtr.Zero.
Retrieves the name of the class to which the specified window belongs.
A handle to the window and, indirectly, the class to which the window belongs.
When this method returns contains the class name of the specified window.
The capacity of the parameter.
If the function succeeds, the return value is the number of characters copied to
the class name; otherwise, zero.
Retrieves the coordinates of a window's client area.
A handle to the window.
A pointer to a RECT structure that receives the screen coordinates of the
upper-left and lower-right corners of the window.
If the function succeeds, the return value is nonzero; other zero.
Retrieves the cursor's position, in screen coordinates.
When this method returns contains the screen coordinates of the cursor.
True if successful; otherwise, false.
Retrieves information about a display monitor.
A handle to the display monitor of interest.
A pointer to a MONITORINFO structure that receives information about the specified
display monitor.
True if the function was successful; otherwise, false.
Retrieves the position of the cursor in physical coordinates.
The position of the cursor, in physical coordinates.
True if successful; otherwise, false.
Enables the application to access the window menu.
A handle to the window that will own a copy of the window menu.
Determines what is returned. If false, returns a handle to the copy of the window
menu currently in use. If true, resets the window menu back to the default state.
If the parameter is false, the return value is a
handle to a copy of the window menu. If the parameter is
true, the return value is IntPtr.Zero.
Retrieves information about the specified window.
A handle to the window whose information is to be retrieved.
A reference to a WINDOWINFO structure to receive the information.
True if the function is successful; otherwise, false.
Retrieves information about the specified window. The function also retrieves
the value at a specified offset into the extra window memory.
A handle to the window and, indirectly, the class to which the window belongs.
The zero-based offset to the value to be retrieved.
If the function succeeds, the return value is the requested value. If the
function fails, the return value is zero.
Creates an array of handles to icons that are extracted from a specified file.
The path and name of the file from which the icon(s) are to be extracted.
The zero-based index of the first icon to extract.
For example, if this value is zero, the function extracts the first icon in the specified file.
The horizontal icon size wanted.
The vertical icon size wanted.
A pointer to the returned array of icon handles.
A pointer to a returned resource identifier for the icon that best fits the current display device.
The returned identifier is 0xFFFFFFFF if the identifier is not available for this format.
The returned identifier is 0 if the identifier cannot otherwise be obtained.
The number of icons to extract from the file. This parameter is only valid when extracting from .exe and .dll files.
Specifies flags that control this function.
If the phicon parameter is not NULL and the function succeeds then the return value is the number of icons extracted.
Destroys an icon and frees any memory the icon occupied.
A handle to the icon to be destroyed. The icon must not be in use.
Retrieves information about the specified window. The function also retrieves
the value at a specified offset into the extra window memory.
A handle to the window and, indirectly, the class to which the window belongs.
The zero-based offset to the value to be retrieved.
If the function succeeds, the return value is the requested value. If the
function fails, the return value is zero.
Retrieves the show state and the restored, minimized, and maximized positions
of the specified window.
A handle to the window.
A pointer to the WINDOWPLACEMENT structure that receives the show state and
position information.
True if the function is successful; otherwise, false.
Retrieves the dimensions of the bounding rectangle of the specified window.
A handle to the window.
A pointer to a RECT structure that receives the screen coordinates of the
upper-left and lower-right corners of the window.
If the function succeeds, the return value is nonzero; other zero.
Calculates the intersection of two source rectangles and places the coordinates of
the intersection rectangle into the destination rectangle.
A pointer to the RECT structure that is to receive the intersection of the
rectangles pointed to by the and
parameters.
A pointer to the RECT structure that contains the first source rectangle.
A pointer to the RECT structure that contains the second source rectangle.
If the rectangles intersect, the return value is true; otherwise, false.
Retrieves a handle to the display monitor that has the largest area of intersection
with the bounding rectangle of a specified window.
A handle to the window of interest.
Determines the function's return value if the window does not intersect any
display monitor.
The handle to the display monitor that intersects with the largest area of the
specified window.
Sets the default menu item for the specified menu.
A handle to the menu to set the default item for.
The identifier or position of the new default menu item or -1 for no default item.
The meaning of . If this parameter is false,
is a menu item identifier; otherwise, it is a menu item
position.
True if the method is successful; otherwise, false.
Changes an attribute of the specified window. The function also sets a value at the
specified offset in the extra window memory.
A handle to the window and, indirectly, the class to which the window belongs.
The zero-based offset to the value to be set.
The replacement value.
If the function succeeds, the return value is the previous value of the specified
offset. If the function fails, the return value is zero.
Changes an attribute of the specified window. The function also sets a value at the
specified offset in the extra window memory.
A handle to the window and, indirectly, the class to which the window belongs.
The zero-based offset to the value to be set.
The replacement value.
If the function succeeds, the return value is the previous value of the specified
offset. If the function fails, the return value is zero.
Changes the size, position, and Z order of a child, pop-up, or
top-level window.
A handle to the window.
A handle to the window to precede the positioned window in the Z order.
The new position of the left side of the window, in client coordinates.
The new position of the top of the window, in client coordinates.
The new width of the window, in pixels.
The new height of the window, in pixels.
The window sizing and positioning flags.
True if the function succeeds; otherwise false.
Installs an application-defined hook procedure into a hook chain.
The type of hook procedure to be installed.
A reference to the hook procedure.
Should always be IntPtr.Zero.
The identifier of the thread with which the hook procedure is to be associated.
If the function succeeds, the return value is the handle to the hook procedure;
otherwise IntPtr.Zero.
Displays a shortcut menu at the specified location and tracks the selection of
items on the shortcut menu.
A handle to the shortcut menu to be displayed.
Specifies function options.
The horizontal location of the shortcut menu, in screen coordinates.
The vertical location of the shortcut menu, in screen coordinates.
A handle to the window that owns the shortcut menu.
A pointer to a TPMPARAMS structure that specifies an area of the screen the menu
should not overlap.
If the method succeeds, the return value is nonzero; otherwise zero.
Updates the position, size, shape, content, and translucency of a
layered window.
A handle to a layered window.
A handle to a DC for the screen.
A pointer to a structure that specifies the new screen position of the
layered window.
A pointer to a structure that specifies the new size of the layered window.
A handle to a DC for the surface that defines the layered window.
A pointer to a structure that specifies the location of the layer in the
device context.
A structure that specifies the colour key to be used when composing the
layered window.
A pointer to a structure that specifies the transparency value to be used when
composing the layered window.
A flag parameter used to specify how the transparency is applied.
True if the function succeed; otherwise, false.
Validates the window based on a rectangle given.
A handle to the window.
The ponter to the RECT.
Retrieves the identifier of the thread that created the specified window and,
optionally, the identifier of the process that created the window.
A handle to the window.
A pointer to a variable that receives the process identifier. If this parameter
is not NULL, GetWindowThreadProcessId copies the identifier of the process to
the variable; otherwise, it does not.
The return value is the identifier of the thread that created the window.
Retrieves or sets the value of one of the system-wide parameters. This
function can also update the user profile while setting a parameter.
The system-wide parameter to be retrieved or set
A parameter whose usage and format depends on the system parameter being
queried or set. For more information about system-wide parameters, see the
uiAction parameter. If not otherwise indicated, you must specify zero for
this parameter.
A parameter whose usage and format depends on the system parameter being
queried or set. For more information about system-wide parameters, see the
uiAction parameter. If not otherwise indicated, you must specify NULL for
this parameter.
If a system parameter is being set, specifies whether the user profile is
to be updated, and if so, whether the WM_SETTINGCHANGE message is to be
broadcast to all top-level windows to notify them of the change.
If the function succeeds, the return value is a nonzero value.
If the function fails, the return value is zero.
Obtains all the window handles from the threads of the specified process.
Process to be inspected.
List of window handle pointers.
Defines the different extended window styles that can be set when creating a new
window.
Specifies that a window created with this style accepts drag-drop files.
Forces a top-level window onto the taskbar when the window is visible.
Specifies that a window has a border with a sunken edge.
Windows XP: Paints all descendants of a window in bottom-to-top painting order
using double-buffering. For more information, see Remarks. This cannot be used if
the window has a class style of either OWNDC or CLASSDC.
Includes a question mark in the title bar of the window. When the user clicks the
question mark, the cursor changes to a question mark with a pointer. If the user
then clicks a child window, the child receives a HELP message. The child window
should pass the message to the parent window procedure, which should call the
WinHelp function using the HELP_WM_HELP command. The Help application displays a
pop-up window that typically contains help for the child window. CONTEXTHELP cannot
be used with the MAXIMIZEBOX or MINIMIZEBOX styles.
The window itself contains child windows that should take part in dialog box
navigation.
Creates a window that has a double border; the window can, optionally, be created
with a title bar by specifying the CAPTION style in the style parameter.
Creates a layered window. Note that this cannot be used for child windows. Also,
this cannot be used if the window has a class style of either OWNDC or CLASSDC.
Creates a window whose horizontal origin is on the right edge. Increasing
horizontal values advance to the left.
Creates a window that has generic left-aligned properties. This is the default.
If the shell language is Hebrew, Arabic, or another language that supports reading
order alignment, the vertical scroll bar (if present) is to the left of the client
area. For other languages, the style is ignored.
The window text is displayed using left-to-right reading-order properties. This is
the default.
Creates a multiple-document interface (MDI) child window.
Windows 2000/XP: A top-level window created with this style does not become the
foreground window when the user clicks it. The system does not bring this window to
the foreground when the user minimizes or closes the foreground window. To activate
the window, use the SetActiveWindow or SetForegroundWindow function. The window
does not appear on the taskbar by default. To force the window to appear on the
taskbar, use the APPWINDOW style.
A window created with this style does not pass its window layout to its child
windows.
Specifies that a child window created with this style does not send the
PARENTNOTIFY message to its parent window when it is created or destroyed.
Combines the CLIENTEDGE and WINDOWEDGE styles.
Combines the WINDOWEDGE, TOOLWINDOW, and TOPMOST styles.
The window has generic "right-aligned" properties. This depends on the window
class. This style has an effect only if the shell language is Hebrew, Arabic, or
another language that supports reading-order alignment; otherwise, the style is
ignored. Using the RIGHT style for static or edit controls has the same effect as
using the SS_RIGHT or ES_RIGHT style, respectively. Using this style with button
controls has the same effect as using BS_RIGHT and BS_RIGHTBUTTON styles.
Vertical scroll bar (if present) is to the right of the client area. This is the
default.
If the shell language is Hebrew, Arabic, or another language that supports
reading-order alignment, the window text is displayed using right-to-left
reading-order properties. For other languages, the style is ignored.
Creates a window with a three-dimensional border style intended to be used for
items that do not accept user input.
Creates a tool window; that is, a window intended to be used as a floating toolbar.
A tool window has a title bar that is shorter than a normal title bar, and the
window title is drawn using a smaller font. A tool window does not appear in the
taskbar or in the dialog that appears when the user presses ALT+TAB. If a tool
window has a system menu, its icon is not displayed on the title bar. However, you
can display the system menu by right-clicking or by typing ALT+SPACE.
Specifies that a window created with this style should be placed above all
non-topmost windows and should stay above them, even when the window is
deactivated. To add or remove this style, use the SetWindowPos function.
Specifies that a window created with this style should not be painted until
siblings beneath the window (that were created by the same thread) have been
painted. The window appears transparent because the bits of underlying sibling
windows have already been painted.
Specifies that a window has a border with a raised edge.
Defines the different attributes that can be set or retrieved from the SetWindowLong
and GetWindowLong methods.
Offset to the extended window style.
Offset to the new application instance handle.
Offset to the handle of the parent window, if any.
Offset to the identifier of the child window.
Offset to the window style.
Offset to the user data associated with a window.
Offset to the address for a window procedure function.
Defines all of the window messages that can be past into the WndProc delegate method.
This message performs no operation. An application sends the message if it wants to
post a message that the recipient window will ignore.
This message is sent when an application requests that a window be created by
calling the CreateWindowEx or CreateWindow function. (The message is sent before
the function returns.) The window procedure of the new window receives this message
after the window is created, but before the window becomes visible.
This message is sent when a window is being destroyed. It is sent to the window
procedure of the window being destroyed after the window is removed from the
screen. This message is sent first to the window being destroyed and then to the
child windows (if any) as they are destroyed. During the processing of the message,
it can be assumed that all child windows still exist.
This message is sent after a window has been moved.
This message is sent to a window after its size has changed.
This message is sent to both the window being activated and the window being
deactivated. If the windows use the same input queue, the message is sent
synchronously, first to the window procedure of the top-level window being
deactivated, then to the window procedure of the top-level window being activated.
If the windows use different input queues, the message is sent asynchronously, so
the window is activated immediately.
This message is sent to a window after it has gained the keyboard focus.
This message is sent to a window immediately before it loses the keyboard focus.
This message is sent when an application changes the enabled state of a window. It
is sent to the window whose enabled state is changing. This message is sent before
the EnableWindow function returns, but after the enabled state (WS_DISABLED style
bit) of the window has changed.
An application sends this message to a window to allow changes in that window to be
redrawn or to prevent changes in that window from being redrawn.
An application sends this message to set the text of a window.
An application sends this message to copy the text that corresponds to a window
into a buffer provided by the caller.
An application sends this message to determine the length, in characters, of the
text associated with a window.
This message is sent when the system or another application makes a request to
paint a portion of an application's window. The message is sent when the
UpdateWindow or RedrawWindow function is called, or by the DispatchMessage function
when the application obtains a PAINT message by using the GetMessage or PeekMessage
function.
This message is sent as a signal that a window or an application should terminate.
This message is sent when the user chooses to end the session or when an
application calls one of the system shutdown functions. If any application returns
zero, the session is not ended. The system stops sending this messages as soon as
one application returns zero. After processing this message, the system sends the
ENDSESSION message with the word parameter set to the results of the this message.
This message is sent to an icon when the user requests that the window be restored
to its previous size and position.
This message is sent to an application after the system processes the results of
the QUERYENDSESSION message. This message informs the application whether the
session is ending.
This message indicates a request to terminate an application and is generated when
the application calls the PostQuitMessage function. It causes the GetMessage
function to return zero.
This message is sent when the window background must be erased (for example, when a
window is resized). The message is sent to prepare an invalidated portion of a
window for painting.
This message is sent to all top-level windows when a change is made to a system
colour setting.
This message is sent to a window when the window is about to be hidden or shown.
An application sends the this message to all top-level windows after making a
change to the WIN.INI file. The SystemParametersInfo function sends this message
after an application uses the function to change a setting in WIN.INI.
An application sends this message to all top-level windows after making a change to
the WIN.INI file. The SystemParametersInfo function sends this message after an
application uses the function to change a setting in WIN.INI.
This message is sent to all top-level windows whenever the user changes device-mode
settings.
This message is sent when a window belonging to a different application than the
active window is about to be activated. The message is sent to the application
whose window is being activated and to the application whose window is being
deactivated.
An application sends this message to all top-level windows in the system after
changing the pool of font resources.
A message that is sent whenever there is a change in the system time.
This message is sent to cancel certain modes, such as mouse capture. For example,
the system sends this message to the active window when a dialog box or message box
is displayed. Certain functions also send this message explicitly to the specified
window regardless of whether it is the active window. For example, the EnableWindow
function sends this message when disabling the specified window.
This message is sent to a window if the mouse causes the cursor to move within a
window and mouse input is not captured.
This message is sent when the cursor is in an inactive window and the user presses
a mouse button. The parent window receives this message only if the child window
passes it to the DefWindowProc function.
This message is sent to a child window when the user clicks the window's title bar
or when the window is activated, moved, or sized.
This message is sent by a computer-based training (CBT) application to separate
user-input messages from other messages sent through the WH_JOURNALPLAYBACK Hook
procedure.
This message is sent to a window when the size or position of the window is about
to change. An application can use this message to override the window's default
maximized size and position, or its default minimum or maximum tracking size.
This message is sent to a dialog box procedure to set the keyboard focus to a
different control in the dialog box.
This message is sent from Print Manager whenever a job is added to or removed from
the Print Manager queue.
This message is sent to the parent window of an owner-drawn button, combo box, list
box, or menu when a visual aspect of the button, combo box, list box, or menu has
changed.
This message is sent to the owner window of a combo box, list box, list view
control, or menu item when the control or menu is created.
This message is sent to the owner of a list box or combo box when the list box or
combo box is destroyed or when items are removed. The system sends this message for
each deleted item and for any deleted list box or combo box item with nonzero item
data.
This message is sent by a list box with the LBS_WANTKEYBOARDINPUT style to its
owner in response to a KEYDown message.
This message is sent by a list box with the LBS_WANTKEYBOARDINPUT style to its
owner in response to a CHAR message.
An application sends this message to specify the font that a control is to use when
drawing text.
An application sends this message to a control to retrieve the font with which the
control is currently drawing its text.
An application sends this message to a window to associate a hot key with the
window. When the user presses the hot key, the system activates the window.
An application sends this message to determine the hot key associated with a
window.
This message is sent to a minimized (iconic) window. The window is about to be
dragged by the user but does not have an icon defined for its class. An application
can return a handle to an icon or cursor. The system displays this cursor or icon
while the user drags the icon.
The system sends this message to determine the relative position of a new item in
the sorted list of an owner-drawn combo box or list box. Whenever the application
adds a new item, the system sends this message to the owner of a combo box or list
box created with the CBS_SORT or LBS_SORT style.
Active Accessibility sends this message to obtain information about an accessible
object contained in a server application. Applications never send this message
directly. It is sent only by Active Accessibility in response to calls to
AccessibleObjectFromPoint, AccessibleObjectFromEvent, or
AccessibleObjectFromWindow. However, server applications handle this message.
This message is sent to all top-level windows when the system detects more than
12.5 per cent of system time over a 30- to 60-second interval is being spent
compacting memory. This indicates that system memory is low.
This message is sent to a window whose size, position, or place in the Z order is
about to change as a result of a call to the SetWindowPos function or another
window-management function.
TThis message is sent to a window whose size, position, or place in the Z order has
changed as a result of a call to the SetWindowPos function or another
window-management function.
An application sends this message to pass data to another application.
This message is posted to an application when a user cancels the application's
journaling activities. The message is posted with a NULL window handle.
Sent by a common control to its parent window when an event has occurred or the
control requires some information.
This message is posted to the window with the focus when the user chooses a new
input language, either with the hotkey (specified in the Keyboard control panel
application) or from the indicator on the system taskbar. An application can accept
the change by passing the message to the DefWindowProc function or reject the
change (and prevent it from taking place) by returning immediately.
This message is sent to the topmost affected window after an application's input
language has been changed. You should make any application-specific settings and
pass the message to the DefWindowProc function, which passes the message to all
first-level child windows. These child windows can pass the message to
DefWindowProc to have it pass the message to their child windows, and so on.
Sent to an application that has initiated a training card with Microsoft Windows
Help. The message informs the application when the user clicks an authorable
button. An application initiates a training card by specifying the HELP_TCARD
command in a call to the WinHelp function.
Indicates that the user pressed the F1 key. If a menu is active when F1 is pressed,
this message is sent to the window associated with the menu; otherwise, this
message is sent to the window that has the keyboard focus. If no window has the
keyboard focus, it is sent to the currently active window.
This message is sent to all windows after the user has logged on or off. When the
user logs on or off, the system updates the user-specific settings. The system
sends this message immediately after updating the settings.
Determines if a window accepts ANSI or Unicode structures in the Notify
notification message.
This message notifies a window that the user clicked the right mouse button
(right-clicked) in the window.
This message is sent to a window when the SetWindowLong function is about to change
one or more of the window's styles.
This message is sent to a window after the SetWindowLong function has changed one
or more of the window's styles.
This message is sent to all windows when the display resolution has changed.
This message is sent to a window to retrieve a handle to the large or small icon
associated with a window. The system displays the large icon in the ALT+TAB dialog,
and the small icon in the window caption.
An application sends this message to associate a new large or small icon with a
window. The system displays the large icon in the ALT+TAB dialog box, and the small
icon in the window caption.
This message is sent prior to the CREATE message when a window is first created.
This message informs a window that its non-client area is being destroyed.
This message is sent when the size and position of a window's client area must be
calculated. By processing this message, an application can control the content of
the window's client area when the size or position of the window changes.
This message is sent to a window when the cursor moves, or when a mouse button is
pressed or released. If the mouse is not captured, the message is sent to the
window beneath the cursor. Otherwise, the message is sent to the window that has
captured the mouse.
This message is sent to a window when its frame must be painted.
This message is sent to a window when its non-client area needs to be changed to
indicate an active or inactive state.
This message is sent to the window procedure associated with a control. By default,
the system handles all keyboard input to the control; the system interprets certain
types of keyboard input as dialog box navigation keys. To override this default
behaviour, the control can respond to this message to indicate the types of input
it wants to process itself.
This message is used to synchronize painting while avoiding linking independent
GUI threads.
This message is posted to a window when the cursor is moved within the non-client
area of the window. This message is posted to the window that contains the cursor.
If a window has captured the mouse, this message is not posted.
This message is posted when the user presses the left mouse button while the cursor
is within the non-client area of a window. This message is posted to the window
that contains the cursor. If a window has captured the mouse, this message is not
posted.
This message is posted when the user releases the left mouse button while the
cursor is within the non-client area of a window. This message is posted to the
window that contains the cursor. If a window has captured the mouse, this message
is not posted.
This message is posted when the user double-clicks the left mouse button while the
cursor is within the non-client area of a window. This message is posted to the
window that contains the cursor. If a window has captured the mouse, this message
is not posted.
This message is posted when the user presses the right mouse button while the
cursor is within the non-client area of a window. This message is posted to the
window that contains the cursor. If a window has captured the mouse, this message
is not posted.
This message is posted when the user releases the right mouse button while the
cursor is within the non-client area of a window. This message is posted to the
window that contains the cursor. If a window has captured the mouse, this message
is not posted.
This message is posted when the user double-clicks the right mouse button while the
cursor is within the non-client area of a window. This message is posted to the
window that contains the cursor. If a window has captured the mouse, this message
is not posted.
This message is posted when the user presses the middle mouse button while the
cursor is within the non-client area of a window. This message is posted to the
window that contains the cursor. If a window has captured the mouse, this message
is not posted.
This message is posted when the user releases the middle mouse button while the
cursor is within the non-client area of a window. This message is posted to the
window that contains the cursor. If a window has captured the mouse, this message
is not posted.
This message is posted when the user double-clicks the middle mouse button while
the cursor is within the non-client area of a window. This message is posted to the
window that contains the cursor. If a window has captured the mouse, this message
is not posted.
This message is posted when the user presses the first or second X button while the
cursor is in the non-client area of a window. This message is posted to the window
that contains the cursor. If a window has captured the mouse, this message is not
posted.
This message is posted when the user releases the first or second X button while
the cursor is in the non-client area of a window. This message is posted to the
window that contains the cursor. If a window has captured the mouse, this message
is not posted.
This message is posted when the user double-clicks the first or second X button
while the cursor is in the non-client area of a window. This message is posted to
the window that contains the cursor. If a window has captured the mouse, this
message is not posted.
The message results in the default NCPAINT handler being called directly when
passed to the default window proc method.
The message results in the default NCPAINT handler being called directly when
passed to the default window proc method.
This message is sent to the window that registered to receive raw input. A window
receives this message through its WindowProc function.
This message is sent to the window that is getting raw input.
This message filters for keyboard messages.
This message is posted to the window with the keyboard focus when a non-system key
is pressed. A non-system key is a key that is pressed when the ALT key is not
pressed.
This message is posted to the window with the keyboard focus when a non-system key
is released. A non-system key is a key that is pressed when the ALT key is not
pressed, or a keyboard key that is pressed when a window has the keyboard focus.
This message is posted to the window with the keyboard focus when a KEYDown message
is translated by the TranslateMessage function. This message contains the character
code of the key that was pressed.
This message is posted to the window with the keyboard focus when a KEYUp message
is translated by the TranslateMessage function. This message specifies a character
code generated by a dead key. A dead key is a key that generates a character, such
as the umlaut (double-dot), that is combined with another character to form a
composite character.
This message is posted to the window with the keyboard focus when the user presses
the F10 key (which activates the menu bar) or holds down the ALT key and then
presses another key. It also occurs when no window currently has the keyboard
focus; in this case, the message is sent to the active window. The window that
receives the message can distinguish between these two contexts by checking the
context code in the long parameter.
This message is posted to the window with the keyboard focus when the user releases
a key that was pressed while the ALT key was held down. It also occurs when no
window currently has the keyboard focus; in this case, the message is sent to the
active window. The window that receives the message can distinguish between these
two contexts by checking the context code in the long parameter.
This message is posted to the window with the keyboard focus when a SYSKEYDown
message is translated by the TranslateMessage function. It specifies the character
code of a system character key — that is, a character key that is pressed while the
ALT key is down.
This message is sent to the window with the keyboard focus when a SYSKEYDown
message is translated by the TranslateMessage function. This message specifies the
character code of a system dead key — that is, a dead key that is pressed while
holding down the ALT key.
This message is posted to the window with the keyboard focus when a KEYDown message
is translated by the TranslateMessage function. This message contains the character
code of the key that was pressed.
This message filters for keyboard messages.
Sent immediately before the IME generates the composition string as a result of a
keystroke.
Sent to an application when the IME ends composition.
Sent to an application when the IME changes composition status as a result of a
keystroke.
Same as IME_COMPOSITION.
This message is sent to the dialog box procedure immediately before a dialog box is
displayed. Dialog box procedures typically use this message to initialize controls
and carry out any other initialization tasks that affect the appearance of the
dialog box.
This message is sent when the user selects a command item from a menu, when a
control sends a notification message to its parent window, or when an accelerator
keystroke is translated.
A window receives this message when the user chooses a command from the Window
menu, clicks the maximize button, minimize button, restore button, close button,
or moves the form . You can stop the form from moving by filtering this out.
This message is posted to the installing thread's message queue when a timer
expires. The message is posted by the GetMessage or PeekMessage function.
This message is sent to a window when a scroll event occurs in the window's
standard horizontal scroll bar. This message is also sent to the owner of a
horizontal scroll bar control when a scroll event occurs in the control.
This message is sent to a window when a scroll event occurs in the window's
standard vertical scroll bar. This message is also sent to the owner of a vertical
scroll bar control when a scroll event occurs in the control.
This message is sent when a menu is about to become active. It occurs when the user
clicks an item on the menu bar or presses a menu key. This allows the application
to modify the menu before it is displayed.
This message is sent when a drop-down menu or submenu is about to become active.
This allows an application to modify the menu before it is displayed, without
changing the entire menu.
This message is sent to a menu's owner window when the user selects a menu item.
This message is sent when a menu is active and the user presses a key that does not
correspond to any mnemonic or accelerator key. This message is sent to the window
that owns the menu.
This message is sent to the owner window of a modal dialog box or menu that is
entering an idle state. A modal dialog box or menu enters an idle state when no
messages are waiting in its queue after it has processed one or more previous
messages.
This message is sent when the user releases the right mouse button while the cursor
is on a menu item.
This message is sent to the owner of a drag-and-drop menu when the user drags a
menu item.
This message is sent to the owner of a drag-and-drop menu when the mouse cursor
enters a menu item or moves from the centre of the item to the top or bottom of
the item.
This message is sent when a drop-down menu or submenu has been destroyed.
This message is sent when the user makes a selection from a menu.
An application sends this message to indicate that the user interface (UI) state
should be changed.
An application sends this message to change the user interface (UI) state for the
specified window and all its child windows.
An application sends this message to retrieve the user interface (UI) state for a
window.
This message is sent to the owner window of a message box before Windows draws the
message box. By responding to this message, the owner window can set the text and
background colours of the message box by using the given display device context
handle.
An edit control that is not read-only or disabled sends this message to its parent
window when the control is about to be drawn. By responding to this message, the
parent window can use the specified device context handle to set the text and
background colours of the edit control.
Sent to the parent window of a list box before the system draws the list box.
By responding to this message, the parent window can set the text and background
colours of the list box by using the specified display device context handle.
This message is sent to the parent window of a button before drawing the button.
The parent window can change the button's text and background colours. However,
only owner-drawn buttons respond to the parent window processing this message.
This message is sent to a dialog box before the system draws the dialog box. By
responding to this message, the dialog box can set its text and background colours
using the specified display device context handle.
This message is sent to the parent window of a scroll bar control when the control
is about to be drawn. By responding to this message, the parent window can use the
display context handle to set the background colour of the scroll bar control.
A static control, or an edit control that is read-only or disabled, sends this
message to its parent window when the control is about to be drawn. By responding
to this message, the parent window can use the specified device context handle to
set the text and background colours of the static control.
Use this message to specify the first mouse message.
This message is posted to a window when the cursor moves. If the mouse is not
captured, the message is posted to the window that contains the cursor. Otherwise,
the message is posted to the window that has captured the mouse.
This message is posted when the user presses the left mouse button while the cursor
is in the client area of a window. If the mouse is not captured, the message is
posted to the window beneath the cursor. Otherwise, the message is posted to the
window that has captured the mouse.
This message is posted when the user releases the left mouse button while the
cursor is in the client area of a window. If the mouse is not captured, the message
is posted to the window beneath the cursor. Otherwise, the message is posted to the
window that has captured the mouse.
This message is posted when the user double-clicks the left mouse button while the
cursor is in the client area of a window. If the mouse is not captured, the message
is posted to the window beneath the cursor. Otherwise, the message is posted to the
window that has captured the mouse.
This message is posted when the user presses the right mouse button while the
cursor is in the client area of a window. If the mouse is not captured, the message
is posted to the window beneath the cursor. Otherwise, the message is posted to the
window that has captured the mouse.
This message is posted when the user releases the right mouse button while the
cursor is in the client area of a window. If the mouse is not captured, the message
is posted to the window beneath the cursor. Otherwise, the message is posted to the
window that has captured the mouse.
This message is posted when the user double-clicks the right mouse button while the
cursor is in the client area of a window. If the mouse is not captured, the message
is posted to the window beneath the cursor. Otherwise, the message is posted to the
window that has captured the mouse.
This message is posted when the user presses the middle mouse button while the
cursor is in the client area of a window. If the mouse is not captured, the message
is posted to the window beneath the cursor. Otherwise, the message is posted to the
window that has captured the mouse.
This message is posted when the user releases the middle mouse button while the
cursor is in the client area of a window. If the mouse is not captured, the message
is posted to the window beneath the cursor. Otherwise, the message is posted to the
window that has captured the mouse.
This message is posted when the user double-clicks the middle mouse button while
the cursor is in the client area of a window. If the mouse is not captured, the
message is posted to the window beneath the cursor. Otherwise, the message is
posted to the window that has captured the mouse.
This message is sent to the focus window when the mouse wheel is rotated. The
DefWindowProc function propagates the message to the window's parent. There should
be no internal forwarding of the message, since DefWindowProc propagates it up the
parent chain until it finds a window that processes it.
This message is posted when the user presses the first or second X button while the
cursor is in the client area of a window. If the mouse is not captured, the message
is posted to the window beneath the cursor. Otherwise, the message is posted to the
window that has captured the mouse.
This message is posted when the user releases the first or second X button while
the cursor is in the client area of a window. If the mouse is not captured, the
message is posted to the window beneath the cursor. Otherwise, the message is
posted to the window that has captured the mouse.
This message is posted when the user double-clicks the first or second X button
while the cursor is in the client area of a window. If the mouse is not captured,
the message is posted to the window beneath the cursor. Otherwise, the message is
posted to the window that has captured the mouse.
This message is sent to the focus window when the mouse's horizontal scroll wheel
is tilted or rotated. The DefWindowProc function propagates the message to the
window's parent. There should be no internal forwarding of the message, since
DefWindowProc propagates it up the parent chain until it finds a window that
processes it.
This to specify the last mouse message.
This message is sent to the parent of a child window when the child window is
created or destroyed, or when the user clicks a mouse button while the cursor is
over the child window. When the child window is being created, the system sends
this message just before the CreateWindow or CreateWindowEx function that creates
the window returns. When the child window is being destroyed, the system sends the
message before any processing to destroy the window takes place.
This message informs an application's main window procedure that a menu modal loop
has been entered.
This message informs an application's main window procedure that a menu modal loop
has been exited.
This message is sent to an application when the right or left arrow key is used to
switch between the menu bar and the system menu.
This message is sent to a window that the user is resizing. By processing this
message, an application can monitor the size and position of the drag rectangle
and, if needed, change its size or position.
This message is sent to the window that is losing the mouse capture.
This message is sent to a window that the user is moving. By processing this
message, an application can monitor the position of the drag rectangle and, if
needed, change its position.
Notifies applications that a power-management event has occurred.
Notifies an application of a change to the hardware configuration of a device on
the computer.
An application sends this message to a multiple-document interface (Mdi) client
window to create an Mdi child window.
An application sends this message to a multiple-document interface (Mdi) client
window to close an Mdi child window.
An application sends this message to a multiple-document interface (Mdi) client
window to instruct the client window to activate a different Mdi child window.
An application sends this message to a multiple-document interface (Mdi) client
window to restore an Mdi child window from maximized or minimized size.
An application sends this message to a multiple-document interface (Mdi) client
window to activate the next or previous child window.
An application sends this message to a multiple-document interface (Mdi) client
window to maximize an Mdi child window. The system resizes the child window to make
its client area fill the client window. The system places the child window's window
menu icon in the rightmost position of the frame window's menu bar, and places the
child window's restore icon in the leftmost position. The system also appends the
title bar text of the child window to that of the frame window.
An application sends this message to a multiple-document interface (Mdi) client
window to arrange all of its Mdi child windows in a tile format.
An application sends this message to a multiple-document interface (Mdi) client
window to arrange all its child windows in a cascade format.
An application sends this message to a multiple-document interface (Mdi) client
window to arrange all minimized Mdi child windows. It does not affect child windows
that are not minimized.
An application sends this message to a multiple-document interface (Mdi) client
window to retrieve the handle to the active Mdi child window.
An application sends this message to a multiple-document interface (Mdi) client
window to replace the entire menu of an Mdi frame window, to replace the window
menu of the frame window, or both.
This message is sent one time to a window after it enters the moving or sizing
modal loop. The window enters the moving or sizing modal loop when the user clicks
the window's title bar or sizing border, or when the window passes the SYSCOMMAND
message to the DefWindowProc function and the word parameter of the message
specifies the SC_MOVE or SC_SIZE value. The operation is complete when
DefWindowProc returns. The system sends this message regardless of whether the
dragging of full windows is enabled.
This message is sent one time to a window, after it has exited the moving or sizing
modal loop. The window enters the moving or sizing modal loop when the user clicks
the window's title bar or sizing border, or when the window passes the SYSCOMMAND
message to the DefWindowProc function and the word parameter of the message
specifies the SC_MOVE or SC_SIZE value. The operation is complete when
DefWindowProc returns.
Sent when the user drops a file on the window of an application that has registered
itself as a recipient of dropped files.
An application sends this message to a multiple-document interface (Mdi) client
window to refresh the window menu of the Mdi frame window.
Sent to an application when a window is activated.
Sent to an application to notify it of changes to the IME window.
Sent by an application to direct the IME window to carry out the requested command.
The application uses this message to control the IME window that it has created.
To send this message, the application calls the SendMessage function with the
following parameters.
Sent to an application when the IME window finds no space to extend the area for
the composition window.
Sent to an application when the operating system is about to change the current
IME.
Sent to an application when the IME gets a character of the conversion result.
Sent to an application to provide commands and request information.
Sent to an application by the IME to notify the application of a key press and to
keep message order.
Sent to an application by the IME to notify the application of a key release and to
keep message order.
This message is posted to a window when the cursor hovers over the client area of
the window for the period of time specified in a prior call to TrackMouseEvent.
This message is posted to a window when the cursor leaves the client area of the
window specified in a prior call to TrackMouseEvent.
This message is posted to a window when the cursor hovers over the non-client area
of the window for the period of time specified in a prior call to TrackMouseEvent.
This message is posted to a window when the cursor leaves the non-client area of
the window specified in a prior call to TrackMouseEvent.
This message notifies applications of changes in session state.
Same as the WTSSESSION_CHANGE message.
Same as the TABLET_FIRST message.
An application sends this message to an edit control or combo box to delete (cut)
the current selection, if any, in the edit control and copy the deleted text to the
clipboard in CF_TEXT format.
An application sends this message to an edit control or combo box to copy the
current selection to the clipboard in CF_TEXT format.
An application sends this message to an edit control or combo box to copy the
current content of the clipboard to the edit control at the current caret position.
Data is inserted only if the clipboard contains data in CF_TEXT format.
An application sends this message to an edit control or combo box to delete (clear)
the current selection, if any, from the edit control.
An application sends this message to an edit control to undo the last operation.
When this message is sent to an edit control, the previously deleted text is
restored or the previously added text is deleted.
This message is sent to the clipboard owner if it has delayed rendering a specific
clipboard format and if an application has requested data in that format. The
clipboard owner must render data in the specified format and place it on the
clipboard by calling the SetClipboardData function.
This message is sent to the clipboard owner before it is destroyed, if the
clipboard owner has delayed rendering one or more clipboard formats. For the
content of the clipboard to remain available to other applications, the clipboard
owner must render data in all the formats it is capable of generating, and place
the data on the clipboard by calling the SetClipboardData function.
This message is sent to the clipboard owner when a call to the EmptyClipboard
function empties the clipboard.
This message is sent to the first window in the clipboard viewer chain when the
content of the clipboard changes. This enables a clipboard viewer window to display
the new content of the clipboard.
This message is sent to the clipboard owner by a clipboard viewer window when the
clipboard contains data in the CF_OWNERDISPLAY format and the clipboard viewer's
client area needs repainting.
This message is sent to the clipboard owner by a clipboard viewer window when the
clipboard contains data in the CF_OWNERDISPLAY format and an event occurs in the
clipboard viewer's vertical scroll bar. The owner should scroll the clipboard image
and update the scroll bar values.
This message is sent to the clipboard owner by a clipboard viewer window when the
clipboard contains data in the CF_OWNERDISPLAY format and the clipboard viewer's
client area has changed size.
This message is sent to the clipboard owner by a clipboard viewer window to request
the name of a CF_OWNERDISPLAY clipboard format.
This message is sent to the first window in the clipboard viewer chain when a
window is being removed from the chain.
This message is sent to the clipboard owner by a clipboard viewer window. This
occurs when the clipboard contains data in the CF_OWNERDISPLAY format and an event
occurs in the clipboard viewer's horizontal scroll bar. The owner should scroll the
clipboard image and update the scroll bar values.
This message informs a window that it is about to receive the keyboard focus,
giving the window the opportunity to realize its logical palette when it receives
the focus.
This message informs applications that an application is going to realize its
logical palette.
This message is sent by the OS to all top-level and overlapped windows after the
window with the keyboard focus realizes its logical palette.
This message is posted when the user presses a hot key registered by the
RegisterHotKey function. The message is placed at the top of the message queue
associated with the thread that registered the hot key.
This message is sent to a window to request that it draw itself in the specified
device context, most commonly in a printer device context.
This message is sent to a window to request that it draw its client area in the
specified device context, most commonly in a printer device context.
This message notifies a window that the user generated an application command
event, for example, by clicking an application command button using the mouse or
typing an application command key on the keyboard.
This message is broadcast to every window following a theme change event. Examples
of theme change events are the activation of a theme, the deactivation of a theme,
or a transition from one theme to another.
Sent when the contents of the clipboard have changed.
The system will send a window this message to indicate that the availability of
desktop composition has changed.
This message is called when the non-client area rendering status of a window has
changed.
Sent to all top-level windows when the colourization colour has changed.
This message will let you know when a DWM composed window is maximized. You also
have to register for this message as well. You'd have other window go opaque when
this message is sent.
Sent to request extended title bar information.
Same as the GETTITLEBARINFOEX message.
Same as the HANDHELDFIRST message.
Same as the HANDHELDLAST message.
Same as the AFXFIRST message.
Same as the AFXLAST message.
Same as the PENWINFIRST message.
This constant is used by applications to help define private messages.
This constant is used by applications to help define private messages for use by
private window classes.
An application sends this message to Windows Control Panel to request that a
Control Panel application be started.
This message is sent when a Control Panel application, started by the CPL_LAUNCH
message, has closed. This message is sent to the window identified by the word
parameter of this message that started the application.
WM_SYSTIMER is a well-known yet still undocumented message.
Contains information about the size and position of a window.
A handle to the window.
The position of the window in Z order (front-to-back position).
The position of the left edge of the window.
The position of the top edge of the window.
The window width, in pixels.
The window height, in pixels.
The window position.
Determines whether the specified objects are equal to each other.
The first object to compare.
The second object to compare.
True if the specified objects are equal to each other; otherwise, false.
Determines whether the specified objects are not equal to each other.
The first object to compare.
The second object to compare.
True if the specified objects are not equal to each other; otherwise, false.
Serves as a hash function for a particular type.
A hash code for the current object.
Determines whether the specified object is equal to the current object.
The object to compare with the current object.
True if the specified object is equal to the current object; otherwise, false.
Determines whether the specified object is equal to the current object.
The object to compare with the current object.
True if the specified object is equal to the current object; otherwise, false.
Defines the different window styles that can be set when creating a new window.
The window has no style.
The window has a thin-line border.
The window has a title bar (includes the BORDER style).
The window is a child window. A window with this style cannot have a menu bar. This
style cannot be used with the POPUP style.
Excludes the area occupied by child windows when drawing occurs within the parent
window. This style is used when creating the parent window.
Clips child windows relative to each other; that is, when a particular child window
receives a PAINT message, the CLIPSIBLINGS style clips all other overlapping child
windows out of the region of the child window to be updated. If CLIPSIBLINGS is not
specified and child windows overlap, it is possible, when drawing within the client
area of a child window, to draw within the client area of a neighbouring child
window.
The window is initially disabled. A disabled window cannot receive input from the
user. To change this after a window has been created, use the EnableWindow
function.
The window has a border of a style typically used with dialog boxes. A window with
this style cannot have a title bar.
The window is the first control of a group of controls. The group consists of this
first control and all controls defined after it, up to the next control with the
GROUP style. The first control in each group usually has the TABSTOP style so that
the user can move from group to group. The user can subsequently change the
keyboard focus from one control in the group to the next control in the group by
using the direction keys. You can turn this style on and off to change dialog box
navigation. To change this style after a window has been created, use the
SetWindowLong function.
The window has a horizontal scroll bar.
The window is initially maximized.
The window has a maximize button.
The window is initially minimized.
The window has a minimize button.
The window is an overlapped window. An overlapped window has a title bar and a
border.
The window is an overlapped window.
The window is a pop-up window. This style cannot be used with the CHILD style.
The window is a pop-up window. The CAPTION and POPUPWINDOW styles must be combined
to make the window menu visible.
The window has a sizing border.
The window has a window menu on its title bar. The CAPTION style must also be
specified.
The window is a control that can receive the keyboard focus when the user presses
the TAB key. Pressing the TAB key changes the keyboard focus to the next control
with the TABSTOP style. You can turn this style on and off to change dialog box
navigation. To change this style after a window has been created, use the
SetWindowLong function. For user-created windows and modeless dialogs to work with
tab stops, alter the message loop to call the IsDialogMessage function.
The window is initially visible. This style can be turned on and off by using the
ShowWindow or SetWindowPos function.
The window has a vertical scroll bar.
Contains the window class attributes that can be registered using native methods.
The class style(s).
A pointer to the window procedure.
The number of extra bytes to allocate following the window-class structure.
The number of extra bytes to allocate following the window instance.
A handle to the instance that contains the window procedure for the class.
A handle to the class icon. This member must be a handle to an icon resource. If
this member is NULL, the system provides a default icon.
A handle to the class cursor. This member must be a handle to a cursor resource.
If this member is NULL, an application must explicitly set the cursor shape
whenever the mouse moves into the application's window.
A handle to the class background brush. This member can be a handle to the
physical brush to be used for painting the background, or it can be a colour value.
The resource name of the class menu, as the name appears in the resource file.
A pointer to a null-terminated string or is an atom.
Determines whether the specified objects are equal to each other.
The first object to compare.
The second object to compare.
True if the specified objects are equal to each other; otherwise, false.
Determines whether the specified objects are not equal to each other.
The first object to compare.
The second object to compare.
True if the specified objects are not equal to each other; otherwise, false.
Serves as a hash function for a particular type.
A hash code for the current object.
Determines whether the specified object is equal to the current object.
The object to compare with the current object.
True if the specified object is equal to the current object; otherwise, false.
Determines whether the specified object is equal to the current object.
The object to compare with the current object.
True if the specified object is equal to the current object; otherwise, false.
Contains information about the placement of a window on the screen.
The length of the structure, in bytes.
The flags that control the position of the minimized window and the method by which
the window is restored.
The current show state of the window.
The coordinates of the window's upper-left corner when the window is minimized.
The coordinates of the window's upper-left corner when the window is maximized.
The window's coordinates when the window is in the restored position.
Determines whether the specified objects are equal to each other.
The first object to compare.
The second object to compare.
True if the specified objects are equal to each other; otherwise, false.
Determines whether the specified objects are not equal to each other.
The first object to compare.
The second object to compare.
True if the specified objects are not equal to each other; otherwise, false.
Serves as a hash function for a particular type.
A hash code for the current object.
Determines whether the specified object is equal to the current object.
The object to compare with the current object.
True if the specified object is equal to the current object; otherwise, false.
Determines whether the specified object is equal to the current object.
The object to compare with the current object.
True if the specified object is equal to the current object; otherwise, false.
An application-defined function that processes messages sent to a window.
A handle to the window.
The message.
First additional message information. The contents of this parameter depend on the
value of the parameter.
Second additional message information. The contents of this parameter depend on the
value of the parameter.
The return value is the result of the message processing and depends on the message
sent.