This documentation is archived and is not being maintained.

Microsoft.Win32 Namespace

The Microsoft.Win32 namespace provides two types of classes: those that handle events raised by the operating system and those that manipulate the system registry.

Public classCommonDialogAn abstract base class for displaying common Win32 dialogs.
Public classFileDialogAn abstract base class that encapsulates functionality that is common to file dialogs, including OpenFileDialog and SaveFileDialog.
Public classFileDialogCustomPlaceRepresents an entry in a FileDialog custom place list.
Public classFileDialogCustomPlacesDefines the known folders for custom places in file dialog boxes.
Public classIntranetZoneCredentialPolicyDefines a credential policy to be used for resource requests that are made using WebRequest and its derived classes.
Public classOpenFileDialogRepresents a common dialog box that allows a user to specify a filename for one or more files to open.
Public classPowerModeChangedEventArgsProvides data for the PowerModeChanged event.
Public classRegistryProvides RegistryKey objects that represent the root keys in the Windows registry, and static methods to access key/value pairs.
Public classRegistryKeyRepresents a key-level node in the Windows registry. This class is a registry encapsulation.
Public classSaveFileDialogRepresents a common dialog that allows the user to specify a filename to save a file as. SaveFileDialog cannot be used by an application that is executing under partial trust.
Public classSessionEndedEventArgsProvides data for the SessionEnded event.
Public classSessionEndingEventArgsProvides data for the SessionEnding event.
Public classSessionSwitchEventArgsProvides data for the SessionSwitch event.
Public classSystemEventsProvides access to system event notifications. This class cannot be inherited.
Public classTimerElapsedEventArgsProvides data for the TimerElapsed event.
Public classUserPreferenceChangedEventArgsProvides data for the UserPreferenceChanged event.
Public classUserPreferenceChangingEventArgsProvides data for the UserPreferenceChanging event.

Public delegatePowerModeChangedEventHandlerRepresents the method that will handle the PowerModeChanged event.
Public delegateSessionEndedEventHandlerRepresents the method that will handle the SessionEnded event.
Public delegateSessionEndingEventHandlerRepresents the method that will handle the SessionEnding event from the operating system.
Public delegateSessionSwitchEventHandlerRepresents the method that will handle the SessionSwitch event.
Public delegateTimerElapsedEventHandlerRepresents the method that will handle the TimerElapsed event.
Public delegateUserPreferenceChangedEventHandlerRepresents the method that will handle the UserPreferenceChanged event.
Public delegateUserPreferenceChangingEventHandlerRepresents the method that will handle the UserPreferenceChanging event.

Public enumerationPowerModesDefines identifiers for power mode events reported by the operating system.
Public enumerationRegistryHiveRepresents the possible values for a top-level node on a foreign machine.
Public enumerationRegistryKeyPermissionCheckSpecifies whether security checks are performed when opening registry keys and accessing their name/value pairs.
Public enumerationRegistryOptionsSpecifies options to use when creating a registry key.
Public enumerationRegistryValueKindSpecifies the data types to use when storing values in the registry, or identifies the data type of a value in the registry.
Public enumerationRegistryValueOptionsSpecifies optional behavior when retrieving name/value pairs from a registry key.
Public enumerationRegistryViewSpecifies which registry view to target on a 64-bit operating system.
Public enumerationSessionEndReasonsDefines identifiers that represent how the current logon session is ending.
Public enumerationSessionSwitchReasonDefines identifiers used to represent the type of a session switch event.
Public enumerationUserPreferenceCategoryDefines identifiers that represent categories of user preferences.