Microsoft.WindowsAPICodePack Provides access to the Application Restart and Recovery features available in Windows Vista or higher. Application Restart and Recovery lets an application do some recovery work to save data before the process exits. Registers an application for recovery by Application Restart and Recovery. An object that specifies the callback method, an optional parameter to pass to the callback method and a time interval. The registration failed due to an invalid parameter. The registration failed. The time interval is the period of time within which the recovery callback method calls the method to indicate that it is still performing recovery work. Removes an application's recovery registration. The attempt to unregister for recovery failed. Removes an application's restart registration. The attempt to unregister for restart failed. Called by an application's method to indicate that it is still performing recovery work. A value indicating whether the user canceled the recovery. This method must be called from a registered callback method. Called by an application's method to indicate that the recovery work is complete. This should be the last call made by the method because Windows Error Reporting will terminate the application after this method is invoked. true to indicate the the program was able to complete its recovery work before terminating; otherwise false. Registers an application for automatic restart if the application is terminated by Windows Error Reporting. An object that specifies the command line arguments used to restart the application, and the conditions under which the application should not be restarted. Registration failed due to an invalid parameter. The attempt to register failed. A registered application will not be restarted if it executed for less than 60 seconds before terminating. This exception is thrown when there are problems with registering, unregistering or updating applications using Application Restart Recovery. Default constructor. Initializes an exception with a custom message. A custom message for the exception. Initializes an exception with custom message and inner exception. A custom message for the exception. Inner exception. Initializes an exception with custom message and error code. A custom message for the exception. An error code (hresult) from which to generate the exception. Initializes an exception from serialization info and a context. Serialization info from which to create exception. Streaming context from which to create exception. The that represents the callback method invoked by the system when an application has registered for application recovery. An application-defined state object that is passed to the callback method. The callback method will be invoked prior to the application being terminated by Windows Error Reporting (WER). To keep WER from terminating the application before the callback method completes, the callback method must periodically call the method. Defines a class that contains a callback delegate and properties of the application as defined by the user. Initializes a recovery data wrapper with a callback method and the current state of the application. The callback delegate. The current state of the application. Gets or sets a value that determines the recovery callback function. Gets or sets a value that determines the application state. Invokes the recovery callback function. Defines methods and properties for recovery settings, and specifies options for an application that attempts to perform final actions after a fatal event, such as an unhandled exception. This class is used to register for application recovery. See the class. Initializes a new instance of the RecoverySettings class. A recovery data object that contains the callback method (invoked by the system before Windows Error Reporting terminates the application) and an optional state object. The time interval within which the callback method must invoke to prevent WER from terminating the application. Gets the recovery data object that contains the callback method and an optional parameter (usually the state of the application) to be passed to the callback method. A object. Gets the time interval for notifying Windows Error Reporting. The method must invoke within this interval to prevent WER from terminating the application. The recovery ping interval is specified in milliseconds. By default, the interval is 5 seconds. If you specify zero, the default interval is used. Returns a string representation of the current state of this object. A object. Specifies the conditions when Windows Error Reporting should not restart an application that has registered for automatic restart. Always restart the application. Do not restart when the application has crashed. Do not restart when the application is hung. Do not restart when the application is terminated due to a system update. Do not restart when the application is terminated because of a system reboot. Specifies the options for an application to be automatically restarted by Windows Error Reporting. Regardless of these settings, the application will not be restarted if it executed for less than 60 seconds before terminating. Creates a new instance of the RestartSettings class. The command line arguments used to restart the application. A bitwise combination of the RestartRestrictions values that specify when the application should not be restarted. Gets the command line arguments used to restart the application. A object. Gets the set of conditions when the application should not be restarted. A set of values. Returns a string representation of the current state of this object. A that displays the command line arguments and restrictions for restarting the application. This exception is thrown when there are problems with getting piece of data within PowerManager. Default constructor. Initializes an excpetion with a custom message. A custom message for the exception. Initializes an exception with custom message and inner exception. A custom message for the exception. An inner exception on which to base this exception. Initializes an exception from serialization info and a context. SerializationInfo for the exception. StreamingContext for the exception. Gets the Guid relating to the currently active power scheme. Reserved for future use, this must be set to IntPtr.Zero Returns a Guid referring to the currently active power scheme. A snapshot of the state of the battery. Gets a value that indicates whether the battery charger is operating on external power. A value. True indicates the battery charger is operating on AC power. Gets the maximum charge of the battery (in mW). An value. Gets the current charge of the battery (in mW). An value. Gets the rate of discharge for the battery (in mW). If plugged in, fully charged: DischargeRate = 0. If plugged in, charging: DischargeRate = positive mW per hour. If unplugged: DischargeRate = negative mW per hour. An value. Gets the estimated time remaining until the battery is empty. A object. Gets the manufacturer's suggested battery charge level that should cause a critical alert to be sent to the user. An value. Gets the manufacturer's suggested battery charge level that should cause a warning to be sent to the user. An value. Generates a string that represents this BatteryState object. A representation of this object's current state. This class keeps track of the current state of each type of event. The MessageManager class tracks event handlers. This class only deals with each event type (i.e. BatteryLifePercentChanged) as a whole. Determines if a message should be caught, preventing the event handler from executing. This is needed when an event is initially registered. The event to check. A boolean value. Returns true if the message should be caught. Enumeration of execution states. No state configured. Forces the system to be in the working state by resetting the system idle timer. Forces the display to be on by resetting the display idle timer. Enables away mode. This value must be specified with ES_CONTINUOUS. Away mode should be used only by media-recording and media-distribution applications that must perform critical background processing on desktop computers while the computer appears to be sleeping. See Remarks. Windows Server 2003 and Windows XP/2000: ES_AWAYMODE_REQUIRED is not supported. Informs the system that the state being set should remain in effect until the next call that uses ES_CONTINUOUS and one of the other state flags is cleared. This class generates .NET events based on Windows messages. The PowerRegWindow class processes the messages from Windows. Registers a callback for a power event. Guid for the event. Event handler for the specified event. Unregisters an event handler for a power event. Guid for the event. Event handler to unregister. Ensures that the hidden window is initialized and listening for messages. Catch Windows messages and generates events for power specific messages. Adds an event handler to call when Windows sends a message for an event. Guid for the event. Event handler for the event. Removes an event handler. Guid for the event. Event handler to remove. Cannot unregister a function that is not registered. Executes any registered event handlers. ArrayList of event handlers. This method is called when a Windows message is sent to this window. The method calls the registered event handlers. Registers the application to receive power setting notifications for the specific power setting event. Handle indicating where the power setting notifications are to be sent. The GUID of the power setting for which notifications are to be sent. Returns a notification handle for unregistering power notifications. Enables registration for power-related event notifications and provides access to power settings. Raised each time the active power scheme changes. The event handler specified for removal was not registered. Requires Vista/Windows Server 2008. Raised when the power source changes. The event handler specified for removal was not registered. Requires Vista/Windows Server 2008. Raised when the remaining battery life changes. The event handler specified for removal was not registered. Requires Vista/Windows Server 2008. Raised when the monitor status changes. The event handler specified for removal was not registered. Requires Vista/Windows Server 2008. Raised when the system will not be moving into an idle state in the near future so applications should perform any tasks that would otherwise prevent the computer from entering an idle state. The event handler specified for removal was not registered. Requires Vista/Windows Server 2008. Gets a snapshot of the current battery state. A instance that represents the state of the battery at the time this method was called. The system does not have a battery. Requires XP/Windows Server 2003 or higher. Gets or sets a value that indicates whether the monitor is set to remain active. Requires XP/Windows Server 2003 or higher. The caller does not have sufficient privileges to set this property. This information is typically used by applications that display information but do not require user interaction. For example, video playback applications. to set this property. Demand value: ; Named Permission Sets: FullTrust. A value. True if the monitor is required to remain on. Gets or sets a value that indicates whether the system is required to be in the working state. Requires XP/Windows Server 2003 or higher. The caller does not have sufficient privileges to set this property. to set this property. Demand value: ; Named Permission Sets: FullTrust. A value. Gets a value that indicates whether a battery is present. The battery can be a short term battery. Requires XP/Windows Server 2003 or higher. A value. Gets a value that indicates whether the battery is a short term battery. Requires XP/Windows Server 2003 or higher. A value. Gets a value that indicates a UPS is present to prevent sudden loss of power. Requires XP/Windows Server 2003 or higher. A value. Gets a value that indicates the current power scheme. Requires Vista/Windows Server 2008. A value. Gets a value that indicates the remaining battery life (as a percentage of the full battery charge). This value is in the range 0-100, where 0 is not charged and 100 is fully charged. The system does not have a battery. Requires Vista/Windows Server 2008. An value. Gets a value that indictates whether the monitor is on. Requires Vista/Windows Server 2008. A value. Gets the current power source. Requires Vista/Windows Server 2008. A value. Allows an application to inform the system that it is in use, thereby preventing the system from entering the sleeping power state or turning off the display while the application is running. The thread's execution requirements. Thrown if the SetThreadExecutionState call fails. Specifies the supported power personalities. The power personality Guid does not match a known value. Power settings designed to deliver maximum performance at the expense of power consumption savings. Power settings designed consume minimum power at the expense of system performance and responsiveness. Power settings designed to balance performance and power consumption. Specifies the power source currently supplying power to the system. Application should be aware of the power source because some power sources provide a finite power supply. An application might take steps to conserve power while the system is using such a source. The computer is powered by an AC power source or a similar device, such as a laptop powered by a 12V automotive adapter. The computer is powered by a built-in battery. A battery has a limited amount of power; applications should conserve resources where possible. The computer is powered by a short-term power source such as a UPS device. Abstract base class for all dialog controls Creates a new instance of a dialog control Creates a new instance of a dialog control with the specified name. The name for this dialog. The native dialog that is hosting this control. This property is null is there is not associated dialog Gets the name for this control. A value. Gets the identifier for this control. An value. Calls the hosting dialog, if it exists, to check whether the property can be set in the dialog's current state. The host should throw an exception if the change is not supported. Note that if the dialog isn't set yet, there are no restrictions on setting the property. The name of the property that is changing Calls the hosting dialog, if it exists, to to indicate that a property has changed, and that the dialog should do whatever is necessary to propagate the change to the native control. Note that if the dialog isn't set yet, there are no restrictions on setting the property. The name of the property that is changing. Compares two objects to determine whether they are equal The object to compare against. A value. Serves as a hash function for a particular type. An hash code for this control. Strongly typed collection for dialog controls. DialogControl Inserts an dialog control at the specified index. The location to insert the control. The item to insert. A control with the same name already exists in this collection -or- the control is being hosted by another dialog -or- the associated dialog is showing and cannot be modified. Removes the control at the specified index. The location of the control to remove. The associated dialog is showing and cannot be modified. Defines the indexer that supports accessing controls by name. Control names are case sensitive. This indexer is useful when the dialog is created in XAML rather than constructed in code. The name cannot be null or a zero-length string. If there is more than one control with the same name, only the first control will be returned. Searches for the control who's id matches the value passed in the parameter. An integer containing the identifier of the control being searched for. A DialogControl who's id matches the value of the parameter. Indicates that the implementing class is a dialog that can host customizable dialog controls (subclasses of DialogControl). Returns if changes to the collection are allowed. true if collection change is allowed. Applies changes to the collection. Handle notifications of individual child pseudo-controls' properties changing.. Prefilter should throw if the property cannot be set in the dialog's current state. PostProcess should pass on changes to native control, if appropriate. The name of the property. The control propertyName applies to. true if the property change is allowed. Called when a control currently in the collection has a property changed. The name of the property changed. The control whose property has changed. Dialog Show State Pre Show Currently Showing Currently Closing Closed Encapsulates the native logic required to create, configure, and show a TaskDialog, via the TaskDialogIndirect() Win32 function. A new instance of this class should be created for each messagebox show, as the HWNDs for TaskDialogs do not remain constant across calls to TaskDialogIndirect. Encapsulates additional configuration needed by NativeTaskDialog that it can't get from the TASKDIALOGCONFIG struct. Internal class containing most native interop declarations used throughout the library. Functions that are not performance intensive belong in this class. Gets the handle to the Icon Encapsulates a new-to-Vista Win32 TaskDialog window - a powerful successor to the MessageBox available in previous versions of Windows. Occurs when a progress bar changes. Occurs when a user clicks a hyperlink. Occurs when the TaskDialog is closing. Occurs when a user clicks on Help. Occurs when the TaskDialog is opened. Gets or sets a value that contains the owner window's handle. Gets or sets a value that contains the message text. Gets or sets a value that contains the instruction text. Gets or sets a value that contains the caption text. Gets or sets a value that contains the footer text. Gets or sets a value that contains the footer check box text. Gets or sets a value that contains the expanded text in the details section. Gets or sets a value that determines if the details section is expanded. Gets or sets a value that contains the expanded control text. Gets or sets a value that contains the collapsed control text. Gets or sets a value that determines if Cancelable is set. Gets or sets a value that contains the TaskDialog main icon. Gets or sets a value that contains the footer icon. Gets or sets a value that contains the standard buttons. Gets a value that contains the TaskDialog controls. Gets or sets a value that determines if hyperlinks are enabled. Gets or sets a value that indicates if the footer checkbox is checked. Gets or sets a value that contains the expansion mode for this dialog. Gets or sets a value that contains the startup location. Gets or sets the progress bar on the taskdialog. ProgressBar a visual representation of the progress of a long running operation. Creates a basic TaskDialog window Creates and shows a task dialog with the specified message text. The text to display. The dialog result. Creates and shows a task dialog with the specified supporting text and main instruction. The supporting text to display. The main instruction text to display. The dialog result. Creates and shows a task dialog with the specified supporting text, main instruction, and dialog caption. The supporting text to display. The main instruction text to display. The caption for the dialog. The dialog result. Creates and shows a task dialog. The dialog result. Close TaskDialog if TaskDialog is not showing. Close TaskDialog with a given TaskDialogResult TaskDialogResult to return from the TaskDialog.Show() method if TaskDialog is not showing. Sets important text properties. An instance of a object. Dispose TaskDialog Resources TaskDialog Finalizer Dispose TaskDialog Resources If true, indicates that this is being called via Dispose rather than via the finalizer. Indicates whether this feature is supported on the current platform. Defines a common class for all task dialog bar controls, such as the progress and marquee bars. Creates a new instance of this class. Creates a new instance of this class with the specified name. The name for this control. Gets or sets the state of the progress bar. Resets the state of the control to normal. Implements a button that can be hosted in a task dialog. Creates a new instance of this class. Creates a new instance of this class with the specified property settings. The name of the button. The button label. Gets or sets a value that controls whether the elevation icon is displayed. Defines the abstract base class for task dialog buttons. Classes that inherit from this class will inherit the Text property defined in this class. Creates a new instance on a task dialog button. Creates a new instance on a task dialog button with the specified name and text. The name for this button. The label for this button. Raised when the task dialog button is clicked. Gets or sets the button text. Gets or sets a value that determines whether the button is enabled. The enabled state can cannot be changed before the dialog is shown. Gets or sets a value that indicates whether this button is the default button. Returns the Text property value for this button. A . Data associated with event. Gets or sets the standard button that was clicked. Gets or sets the text of the custom button that was clicked. Represents a command-link. Creates a new instance of this class. Creates a new instance of this class with the specified name and label. The name for this button. The label for this button. Creates a new instance of this class with the specified name,label, and instruction. The name for this button. The label for this button. The instruction for this command link. Gets or sets the instruction associated with this command link button. Returns a string representation of this object. A Declares the abstract base class for all custom task dialog controls. Creates a new instance of a task dialog control. Creates a new instance of a task dialog control with the specified name. The name for this control. Specifies the options for expand/collapse sections in dialogs. Do not show the content. Show the content. Expand the footer content. Defines event data associated with a HyperlinkClick event. Creates a new instance of this class with the specified link text. The text of the hyperlink that was clicked. Gets or sets the text of the hyperlink that was clicked. Provides a visual representation of the progress of a long running operation. Creates a new instance of this class. Creates a new instance of this class with the specified name. And using the default values: Min = 0, Max = 100, Current = 0 The name of the control. Creates a new instance of this class with the specified minimum, maximum and current values. The minimum value for this control. The maximum value for this control. The current value for this control. Gets or sets the minimum value for the control. Gets or sets the maximum value for the control. Gets or sets the current value for the control. Verifies that the progress bar's value is between its minimum and maximum. Resets the control to its minimum value. Sets the state of a task dialog progress bar. Uninitialized state, this should never occur. Normal state. An error occurred. The progress is paused. Displays marquee (indeterminate) style progress Defines a radio button that can be hosted in by a object. Creates a new instance of this class. Creates a new instance of this class with the specified name and text. The name for this control. The value for this controls property. Indicates the various buttons and options clicked by the user on the task dialog. No button was selected. "OK" button was clicked "Yes" button was clicked "No" button was clicked "Cancel" button was clicked "Retry" button was clicked "Close" button was clicked A custom button was clicked. Identifies one of the standard buttons that can be displayed via TaskDialog. No buttons on the dialog. An "OK" button. A "Yes" button. A "No" button. A "Cancel" button. A "Retry" button. A "Close" button. Specifies the icon displayed in a task dialog. Displays no icons (default). Displays the warning icon. Displays the error icon. Displays the Information icon. Displays the User Account Control shield. Specifies the initial display location for a task dialog. The window placed in the center of the screen. The window centered relative to the window that launched the dialog. The event data for a TaskDialogTick event. Initializes the data associated with the TaskDialog tick event. The total number of ticks since the control was activated. Gets a value that determines the current number of ticks. Represents a network on the local machine. It can also represent a collection of network connections with a similar network signature. Instances of this class are obtained by calling methods on the class. Gets or sets the category of a network. The categories are trusted, untrusted, or authenticated. A value. Gets the local date and time when the network was connected. A object. Gets the network connections for the network. A object. Gets the connectivity state of the network. A value. Connectivity provides information on whether the network is connected, and the protocols in use for network traffic. Gets the local date and time when the network was created. A object. Gets or sets a description for the network. A value. Gets the domain type of the network. A value. The domain indictates whether the network is an Active Directory Network, and whether the machine has been authenticated by Active Directory. Gets a value that indicates whether there is network connectivity. A value. Gets a value that indicates whether there is Internet connectivity. A value. Gets or sets the name of the network. A value. Gets a unique identifier for the network. A value. An enumerable collection of objects. Returns the strongly typed enumerator for this collection. An object. Returns the enumerator for this collection. An object. Represents a connection to a network. A collection containing instances of this class is obtained by calling the property. Retrieves an object that represents the network associated with this connection. A object. Gets the adapter identifier for this connection. A object. Gets the unique identifier for this connection. A object. Gets a value that indicates the connectivity of this connection. A value. Gets a value that indicates whether the network associated with this connection is an Active Directory network and whether the machine has been authenticated by Active Directory. A value. Gets a value that indicates whether this connection has Internet access. A value. Gets a value that indicates whether this connection has network connectivity. A value. An enumerable collection of objects. Returns the strongly typed enumerator for this collection. A object. Returns the enumerator for this collection. A object. Specifies types of network connectivity. The underlying network interfaces have no connectivity to any network. There is connectivity to the Internet using the IPv4 protocol. There is connectivity to a routed network using the IPv4 protocol. There is connectivity to a network, but the service cannot detect any IPv4 network traffic. There is connectivity to the local subnet using the IPv4 protocol. There is connectivity to the Internet using the IPv4 protocol. There is connectivity to a local network using the IPv6 protocol. There is connectivity to a network, but the service cannot detect any IPv6 network traffic There is connectivity to the local subnet using the IPv6 protocol. Specifies the domain type of a network. The network is not an Active Directory network. The network is an Active Directory network, but this machine is not authenticated against it. The network is an Active Directory network, and this machine is authenticated against it. Specifies the trust level for a network. The network is a public (untrusted) network. The network is a private (trusted) network. The network is authenticated against an Active Directory domain. Specifies the level of connectivity for networks returned by the class. Networks that the machine is connected to. Networks that the machine is not connected to. All networks. Provides access to objects that represent networks and network connections. Retrieves a collection of objects that represent the networks defined for this machine. The that specify the connectivity level of the returned objects. A of objects. Retrieves the identified by the specified network identifier. A that specifies the unique identifier for the network. The that represents the network identified by the identifier. Retrieves a collection of objects that represent the connections for this machine. A containing the network connections. Retrieves the identified by the specified connection identifier. A that specifies the unique identifier for the network connection. The identified by the specified identifier. Gets a value that indicates whether this machine has Internet connectivity. A value. Gets a value that indicates whether this machine has network connectivity. A value. Gets the connectivity state of this machine. A value. Defines a unique key for a Shell Property A unique GUID for the property Property identifier (PID) PropertyKey Constructor A unique GUID for the property Property identifier (PID) PropertyKey Constructor A string represenstion of a GUID for the property Property identifier (PID) Returns whether this object is equal to another. This is vital for performance of value types. The object to compare against. Equality result. Returns the hash code of the object. This is vital for performance of value types. Returns whether this object is equal to another. This is vital for performance of value types. The object to compare against. Equality result. Implements the == (equality) operator. First property key to compare. Second property key to compare. true if object a equals object b. false otherwise. Implements the != (inequality) operator. First property key to compare Second property key to compare. true if object a does not equal object b. false otherwise. Override ToString() to provide a user friendly string representation String representing the property key A strongly-typed resource class, for looking up localized strings, etc. Returns the cached ResourceManager instance used by this class. Overrides the current thread's CurrentUICulture property for all resource lookups using this strongly typed resource class. Looks up a localized string similar to Failed to register application for restart due to bad parameters.. Looks up a localized string similar to Application was not registered for recovery due to bad parameters.. Looks up a localized string similar to Application failed to register for recovery.. Looks up a localized string similar to Application failed to registered for restart.. Looks up a localized string similar to Unregister for recovery failed.. Looks up a localized string similar to Unregister for restart failed.. Looks up a localized string similar to This method must be called from the registered callback method.. Looks up a localized string similar to ACOnline: {1}{0}Max Charge: {2} mWh{0}Current Charge: {3} mWh{0}Discharge Rate: {4} mWh{0}Estimated Time Remaining: {5}{0}Suggested Critical Battery Charge: {6} mWh{0}Suggested Battery Warning Charge: {7} mWh{0}. Looks up a localized string similar to Cancelable cannot be changed while dialog is showing.. Looks up a localized string similar to Dialog caption cannot be changed while dialog is showing.. Looks up a localized string similar to CheckBox text cannot be changed while dialog is showing.. Looks up a localized string similar to Collapsed control text cannot be changed while dialog is showing.. Looks up a localized string similar to Only supported on Windows 7 or newer.. Looks up a localized string similar to Only supported on Windows Vista or newer.. Looks up a localized string similar to Only supported on Windows XP or newer.. Looks up a localized string similar to Dialog cannot have more than one control with the same name.. Looks up a localized string similar to Dialog control must be removed from current collections first.. Looks up a localized string similar to Control name cannot be null or zero length.. Looks up a localized string similar to Modifying controls collection while dialog is showing is not supported.. Looks up a localized string similar to Dialog control name cannot be empty or null.. Looks up a localized string similar to Dialog controls cannot be renamed.. Looks up a localized string similar to Application. Looks up a localized string similar to . Looks up a localized string similar to . Looks up a localized string similar to Expanded information mode cannot be changed while dialog is showing.. Looks up a localized string similar to Expanded control label cannot be changed while dialog is showing.. Looks up a localized string similar to Expanding state of the dialog cannot be changed while dialog is showing.. Looks up a localized string similar to Hyperlinks cannot be enabled/disabled while dialog is showing.. Looks up a localized string similar to Reference path is invalid.. Looks up a localized string similar to The specified event handler has not been registered.. Looks up a localized string similar to An error has occurred in dialog configuration.. Looks up a localized string similar to Invalid arguments to Win32 call.. Looks up a localized string similar to Dialog contents too complex.. Looks up a localized string similar to An unexpected internal error occurred in the Win32 call: {0:x}. Looks up a localized string similar to TaskDialog feature needs to load version 6 of comctl32.dll but a different version is current loaded in memory.. Looks up a localized string similar to Dialog owner cannot be changed while dialog is showing.. Looks up a localized string similar to SetThreadExecutionState call failed.. Looks up a localized string similar to The caller had insufficient access rights to get the system battery state.. Looks up a localized string similar to The caller had insufficient access rights to get the system power capabilities.. Looks up a localized string similar to Failed to get active power scheme.. Looks up a localized string similar to Battery is not present on this system.. Looks up a localized string similar to Progress bar cannot be changed while dialog is showing.. Looks up a localized string similar to Progress bar cannot be hosted in multiple dialogs.. Looks up a localized string similar to {0}, {1}. Looks up a localized string similar to Unable to initialize PropVariant.. Looks up a localized string similar to Multi-dimensional SafeArrays not supported.. Looks up a localized string similar to String argument cannot be null or empty.. Looks up a localized string similar to This Value type is not supported.. Looks up a localized string similar to Cannot be cast to unsupported type.. Looks up a localized string similar to delegate: {0}, state: {1}, ping: {2}. Looks up a localized string similar to command: {0} restrictions: {1}. Looks up a localized string similar to StandardButtons cannot be changed while dialog is showing.. Looks up a localized string similar to Startup location cannot be changed while dialog is showing.. Looks up a localized string similar to Bad button ID in closing event.. Looks up a localized string similar to Button text must be non-empty.. Looks up a localized string similar to Check box text must be provided to enable the dialog check box.. Looks up a localized string similar to Attempting to close a non-showing dialog.. Looks up a localized string similar to Application. Looks up a localized string similar to . Looks up a localized string similar to . Looks up a localized string similar to Cannot have more than one default button of a given type.. Looks up a localized string similar to Maximum value provided must be greater than the minimum value.. Looks up a localized string similar to Minimum value provided must be a positive number.. Looks up a localized string similar to Minimum value provided must less than the maximum value.. Looks up a localized string similar to Value provided must be greater than equal to the minimum value and less than the maximum value.. Looks up a localized string similar to Dialog cannot display both non-standard buttons and standard buttons.. Looks up a localized string similar to Dialog cannot display both non-standard buttons and command links.. Looks up a localized string similar to Unknown dialog control type.. HRESULT Wrapper S_OK S_FALSE E_INVALIDARG E_OUTOFMEMORY E_NOINTERFACE E_FAIL E_ELEMENTNOTFOUND TYPE_E_ELEMENTNOTFOUND NO_OBJECT Win32 Error code: ERROR_CANCELLED ERROR_CANCELLED The requested resource is in use The requested resources is read-only. Provide Error Message Helper Methods. This is intended for Library Internal use only. This is intended for Library Internal use only. This is intended for Library Internal use only. This is intended for Library Internal use only. The Windows API error code. The equivalent HRESULT. This is intended for Library Internal use only. The error code. True if the error code indicates success. This is intended for Library Internal use only. The error code. True if the error code indicates success. This is intended for Library Internal use only. The error code. True if the error code indicates failure. This is intended for Library Internal use only. The error code. True if the error code indicates failure. This is intended for Library Internal use only. The COM error code. The Win32 error code. Inticates that the Win32 error code corresponds to the COM error code. Common Helper methods Determines if the application is running on XP Throws PlatformNotSupportedException if the application is not running on Windows XP Determines if the application is running on Vista Throws PlatformNotSupportedException if the application is not running on Windows Vista Determines if the application is running on Windows 7 Throws PlatformNotSupportedException if the application is not running on Windows 7 Get a string resource given a resource Id The resource Id The string resource corresponding to the given resource Id. Returns null if the resource id is invalid or the string cannot be retrieved for any other reason. Wrappers for Native Methods and Structs. This type is intended for internal use only Places (posts) 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. Handle to the window whose window procedure will receive the message. If this parameter is HWND_BROADCAST, the message is sent to all top-level windows in the system, including disabled or invisible unowned windows, overlapped windows, and pop-up windows; but the message is not sent to child windows. Specifies the message to be sent. Specifies additional message-specific information. Specifies additional message-specific information. A return code specific to the message being sent. Sends the specified message to a window or windows. The SendMessage function calls the window procedure for the specified window and does not return until the window procedure has processed the message. Handle to the window whose window procedure will receive the message. If this parameter is HWND_BROADCAST, the message is sent to all top-level windows in the system, including disabled or invisible unowned windows, overlapped windows, and pop-up windows; but the message is not sent to child windows. Specifies the message to be sent. Specifies additional message-specific information. Specifies additional message-specific information. A return code specific to the message being sent. Sends the specified message to a window or windows. The SendMessage function calls the window procedure for the specified window and does not return until the window procedure has processed the message. Handle to the window whose window procedure will receive the message. If this parameter is HWND_BROADCAST, the message is sent to all top-level windows in the system, including disabled or invisible unowned windows, overlapped windows, and pop-up windows; but the message is not sent to child windows. Specifies the message to be sent. Specifies additional message-specific information. Specifies additional message-specific information. A return code specific to the message being sent. Sends the specified message to a window or windows. The SendMessage function calls the window procedure for the specified window and does not return until the window procedure has processed the message. Handle to the window whose window procedure will receive the message. If this parameter is HWND_BROADCAST, the message is sent to all top-level windows in the system, including disabled or invisible unowned windows, overlapped windows, and pop-up windows; but the message is not sent to child windows. Specifies the message to be sent. Specifies additional message-specific information. Specifies additional message-specific information. A return code specific to the message being sent. Sends the specified message to a window or windows. The SendMessage function calls the window procedure for the specified window and does not return until the window procedure has processed the message. Handle to the window whose window procedure will receive the message. If this parameter is HWND_BROADCAST, the message is sent to all top-level windows in the system, including disabled or invisible unowned windows, overlapped windows, and pop-up windows; but the message is not sent to child windows. Specifies the message to be sent. Specifies additional message-specific information. Specifies additional message-specific information. A return code specific to the message being sent. Sends the specified message to a window or windows. The SendMessage function calls the window procedure for the specified window and does not return until the window procedure has processed the message. Handle to the window whose window procedure will receive the message. If this parameter is HWND_BROADCAST, the message is sent to all top-level windows in the system, including disabled or invisible unowned windows, overlapped windows, and pop-up windows; but the message is not sent to child windows. Specifies the message to be sent. Specifies additional message-specific information. Specifies additional message-specific information. A return code specific to the message being sent. Destroys an icon and frees any memory the icon occupied. Handle to the icon to be destroyed. The icon must not be in use. 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. Gets the HiWord The value to get the hi word from. Size The upper half of the dword. Gets the LoWord The value to get the low word from. The lower half of the dword. A Wrapper for a SIZE struct Width Height Represents the OLE struct PROPVARIANT. This class is intended for internal use only. Originally sourced from http://blogs.msdn.com/adamroot/pages/interop-with-propvariants-in-net.aspx and modified to support additional types including vectors and ability to set values Attempts to create a PropVariant by finding an appropriate constructor. Object from which PropVariant should be created. Default constrcutor Set a string value Set a string vector Set a bool vector Set a short vector Set a short vector Set an int vector Set an uint vector Set a long vector Set a ulong vector > Set a double vector Set a DateTime vector Set a bool value Set a DateTime value Set a byte value Set a sbyte value Set a short value Set an unsigned short value Set an int value Set an unsigned int value Set a decimal value Create a PropVariant with a contained decimal array. Decimal array to wrap. Create a PropVariant containing a float type. Creates a PropVariant containing a float[] array. Set a long Set a ulong Set a double Set an IUnknown value The new value to set. Set a safe array value The new value to set. Gets or sets the variant type. Checks if this has an empty or null value Gets the variant value. Disposes the object, calls the clear function. Finalizer Provides an simple string representation of the contained data and type. Base class for Safe handles with Null IntPtr as invalid Default constructor Determines if this is a valid handle Safe Icon Handle Release the handle true if handled is release successfully, false otherwise Safe Region Handle Release the handle true if handled is release successfully, false otherwise Safe Window Handle Release the handle true if handled is release successfully, false otherwise