Trigger4Win Actions dealing with power and energy Suspends the system by shutting power down and entering a suspend (sleep) state. force has no effect Suspends the system by shutting power down and entering hibernation (S4). force has no effect Actions dealing with screens and screen settings The ChangeDisplaySettingsEx function changes the settings of the specified display device to the specified graphics mode. String that specifies the display device whose graphics mode will change. Only display device names as returned by EnumDisplayDevices are valid. The parameter can be NULL. A NULL value specifies the default display device. The default device can be determined by calling EnumDisplayDevices and checking for the DISPLAY_DEVICE_PRIMARY_DEVICE flag. A pointer to a structure that describes the new graphics mode. If is NULL, all the values currently in the registry will be used for the display setting. Passing NULL for the parameter and 0 for the parameter is the easiest way to return to the default mode after a dynamic mode change. The ChangeDisplaySettingsEx function changes the settings of the specified display device to the specified graphics mode. Use this one if you are not sure String that specifies the display device whose graphics mode will change. Only display device names as returned by EnumDisplayDevices are valid. The parameter can be NULL. A NULL value specifies the default display device. The default device can be determined by calling EnumDisplayDevices and checking for the DISPLAY_DEVICE_PRIMARY_DEVICE flag. A pointer to a structure that describes the new graphics mode. If is NULL, all the values currently in the registry will be used for the display setting. Passing NULL for the parameter and 0 for the parameter is the easiest way to return to the default mode after a dynamic mode change. Updates the screen's settings Updates the screen's settings and sets it as primary screen The settings change was successful. The computer must be restarted for the graphics mode to work. The display driver failed the specified graphics mode. The graphics mode is not supported. Unable to write settings to the registry. An invalid set of flags was passed in. An invalid parameter was passed in. This can include an invalid flag or combination of flags. The settings change was unsuccessful because the system is DualView capable. Indicates how the graphics mode should be changed The mode is temporary in nature.If you change to and from another desktop, this mode will not be reset. The settings will be saved in the global settings area so that they will affect all users on the machine. Otherwise, only the settings for the user are modified. This flag is only valid when specified with the UPDATEREGISTRY flag. The settings will be saved in the registry, but will not take effect. This flag is only valid when specified with the UPDATEREGISTRY flag. The settings should be changed, even if the requested settings are the same as the current settings. This device will become the primary device. The system tests if the requested graphics mode could be set. The graphics mode for the current screen will be changed dynamically and the graphics mode will be updated in the registry. The mode information is stored in the USER profile. When set, the lParam parameter is a pointer to a VIDEOPARAMETERS structure. Enables settings changes to unsafe graphics modes. Disables settings changes to unsafe graphics modes. Actions that can be done with the network. This includes The path to the internet settings in registry http://msdn.microsoft.com/en-us/library/windows/desktop/aa385328%28v=vs.85%29.aspx Searches for the WMI Win32_NetworkAdapter that represents the specified . If it is not found, null will be returned. Searches for the WMI Win32_NetworkAdapter that has the specified . If it is not found, null will be returned. .Id (like {123-456-789}) Searches for the WMI Win32_NetworkAdapterConfiguration that belongs to the specified Win32_NetworkAdapter . If it is not found, null will be returned. Searches for the WMI Win32_NetworkAdapterConfiguration that belongs to the Win32_NetworkAdapter with the specified . If it is not found, null will be returned. .Id (like {123-456-789}) Sets an Internet option. Handle on which to set information. Can be .Zero. Internet option to be set. Pointer to a buffer that contains the option setting. Size of the buffer. If contains a string, the size is in TCHARs. If contains anything other than a string, the size is in bytes. Returns TRUE if successful, or FALSE otherwise. To get a specific error message, call GetLastError. GetLastError will return the error ERROR_INVALID_PARAMETER if an option flag that cannot be set is specified. Like all other aspects of the WinINet API, this function cannot be safely called from within DllMain or the constructors and destructors of global objects. Disable the global proxy configuration Enables the global proxy configuration A with the required Server:Port and ByPass Addresses Causes the OS to refresh the settings, causing IP, proxy etc. to really update Gets the subnet mask out of the specified A subnet mask Sets a new IP Address and its Submask of the local machine This method requires admin privileges () The that shall be modified The IP Address An WMI Error Constant or some other error type 0x80041003: Current user does not have permission to perform the action. see http://msdn.microsoft.com/en-us/library/aa394559%28v=vs.85%29.aspx for 0x8******* or net helpmsg %ret% otherwise http://msdn.microsoft.com/en-us/library/aa390383%28v=vs.85%29.aspx Enables the configuration of the ip addresses and subnet mask through an DHCP server. This is the opposite of This method requires admin privileges () The that shall be modified An WMI Error Constant or some other error type 0x80041003: Current user does not have permission to perform the action. see http://msdn.microsoft.com/en-us/library/aa394559%28v=vs.85%29.aspx for 0x8******* or net helpmsg %ret% otherwise http://msdn.microsoft.com/en-us/library/aa390378%28v=vs.85%29.aspx Set the of the gateway This method requires admin privileges () The that shall be modified The of the gateway that shall be set An WMI Error Constant or some other error type 0x80041003: Current user does not have permission to perform the action. see http://msdn.microsoft.com/en-us/library/aa394559%28v=vs.85%29.aspx for 0x8******* or net helpmsg %ret% otherwise http://msdn.microsoft.com/en-us/library/aa393301%28v=vs.85%29.aspx Sets the of up to 5 Gateways This method requires admin privileges () The that shall be modified The of the gateway that shall be set. No more than 5 IPAdresses are allowed! An WMI Error Constant or some other error type 0x80041003: Current user does not have permission to perform the action. see http://msdn.microsoft.com/en-us/library/aa394559%28v=vs.85%29.aspx for 0x8******* or net helpmsg %ret% otherwise http://msdn.microsoft.com/en-us/library/aa393301%28v=vs.85%29.aspx Sets the of up to 5 Gateways This method requires admin privileges () The that shall be modified The of the gateway that shall be set. No more than 5 IPAdresses are allowed! The cost metric of the gateway used for route calculation An WMI Error Constant or some other error type 0x80041003: Current user does not have permission to perform the action. see http://msdn.microsoft.com/en-us/library/aa394559%28v=vs.85%29.aspx for 0x8******* or net helpmsg %ret% otherwise http://msdn.microsoft.com/en-us/library/aa393301%28v=vs.85%29.aspx Resets the DNS server search order This method requires admin privileges () The that shall be modified An WMI Error Constant or some other error type 0x80041003: Current user does not have permission to perform the action. see http://msdn.microsoft.com/en-us/library/aa394559%28v=vs.85%29.aspx for 0x8******* or net helpmsg %ret% otherwise http://msdn.microsoft.com/en-us/library/aa393295%28v=vs.85%29.aspx Sets the specified server as default server for DNS requests This method requires admin privileges () The that shall be modified The DNS server address An WMI Error Constant or some other error type 0x80041003: Current user does not have permission to perform the action. see http://msdn.microsoft.com/en-us/library/aa394559%28v=vs.85%29.aspx for 0x8******* or net helpmsg %ret% otherwise http://msdn.microsoft.com/en-us/library/aa393295%28v=vs.85%29.aspx Sets the specified servers as default servers for DNS requests This method requires admin privileges () The that shall be modified The DNS server addresses in descending? priority An WMI Error Constant or some other error type 0x80041003: Current user does not have permission to perform the action. see http://msdn.microsoft.com/en-us/library/aa394559%28v=vs.85%29.aspx for 0x8******* or net helpmsg %ret% otherwise http://msdn.microsoft.com/en-us/library/aa393295%28v=vs.85%29.aspx Set's WINS (Windows Internet Name Service = DNS in LANs) servers of the local machine This method requires admin privileges () The that shall be modified Primary WINS server address Secondary WINS server address Enables the given This method requires admin privileges () Enables the with the given This method requires admin privileges () .Id (like {123-456-789}) Whether the call was successful or not Sometimes this method works but a error code is returned anyway... Disables the This method requires admin privileges () Whether the call was successful or not Sometimes this method works but a error code is returned anyway... Enables the with the given This method requires admin privileges () .Id (like {123-456-789}) Whether the call was successful or not Sometimes this method works but a error code is returned anyway... The following option flags are used with the InternetQueryOption and InternetSetOption functions. All valid option flags have a value greater than or equal to INTERNET_FIRST_OPTION and less than or equal to INTERNET_LAST_OPTION. Sets or retrieves the Boolean value that determines if the system should check the network for newer content and overwrite edited cache entries if a newer version is found. If set to True, the system checks the network for newer content and overwrites the edited cache entry with the newer version. The default is False, which indicates that the edited cache entry should be used without checking the network. This is used by InternetQueryOption and InternetSetOption. It is valid only in Microsoft Internet Explorer 5 and later. No longer supported. Retrieves an INTERNET_CACHE_TIMESTAMPS structure that contains the LastModified time and Expires time from the resource stored in the Internet cache. This value is used by InternetQueryOption. Sets or retrieves the address of the callback function defined for this handle. This option can be used on all HINTERNET handles. Used by InternetQueryOption and InternetSetOption. This flag is not supported by InternetQueryOption. The lpBuffer parameter must be a pointer to a CERT_CONTEXT structure and not a pointer to a CERT_CONTEXT pointer. If an application receives ERROR_INTERNET_CLIENT_AUTH_CERT_NEEDED, it must call InternetErrorDlg or use InternetSetOption to supply a certificate before retrying the request. CertDuplicateCertificateContext is then called so that the certificate context passed can be independently released by the application. By default, the host or authority portion of the Unicode URL is encoded according to the IDN specification. Setting this option on the request, or connection handle, when IDN is disabled, specifies a code page encoding scheme for the host portion of the URL. The lpBuffer parameter in the call to InternetSetOption contains the desired DBCS code page. If no code page is specified in lpBuffer, WinINet uses the default system code page (CP_ACP). Note: This option is ignored if IDN is not disabled. For more information about how to disable IDN, see the IDN option. Windows XP with SP2 and Windows Server 2003 with SP1: This flag is not supported. By default, the path portion of the URL is UTF8 encoded. The WinINet API performs escape character (%) encoding on the high-bit characters. Setting this option on the request, or connection handle, disables the UTF8 encoding and sets a specific code page. The lpBuffer parameter in the call to InternetSetOption contains the desired DBCS codepage for the path. If no code page is specified in lpBuffer, WinINet uses the default CP_UTF8. Windows XP with SP2 and Windows Server 2003 with SP1: This flag is not supported. By default, the path portion of the URL is the default system code page (CP_ACP). The escape character (%) conversions are not performed on the extra portion. Setting this option on the request, or connection handle disables the CP_ACP encoding. The lpBuffer parameter in the call to InternetSetOption contains the desired DBCS codepage for the extra portion of the URL. If no code page is specified in lpBuffer, WinINet uses the default system code page (CP_ACP). Windows XP with SP2 and Windows Server 2003 with SP1: This flag is not supported. Sets or retrieves an unsigned long integer value that contains the number of times WinINet attempts to resolve and connect to a host. It only attempts once per IP address. For example, if you attempt to connect to a multihome host that has ten IP addresses and CONNECT_RETRIES is set to seven, WinINet only attempts to resolve and connect to the first seven IP addresses. Conversely, given the same set of ten IP addresses, if CONNECT_RETRIES is set to 20, WinINet attempts each of the ten only once. If a host has only one IP address and the first connection attempt fails, there are no further attempts. If a connection attempt still fails after the specified number of attempts, the request is canceled. The default value for CONNECT_RETRIES is five attempts. This option can be used on any HINTERNET handle, including a NULL handle. It is used by InternetQueryOption and InternetSetOption. Sets or retrieves an unsigned long integer value that contains the time-out value, in milliseconds, to use for Internet connection requests. Setting this option to infinite (0xFFFFFFFF) will disable this timer. If a connection request takes longer than this time-out value, the request is canceled. When attempting to connect to multiple IP addresses for a single host (a multihome host), the timeout limit is cumulative for all of the IP addresses. This option can be used on any HINTERNET handle, including a NULL handle. It is used by InternetQueryOption and InternetSetOption. Sets or retrieves an unsigned long integer value that contains the connected state. This is used by InternetQueryOption and InternetSetOption. Sets or retrieves a DWORD_PTR that contains the address of the context value associated with this HINTERNET handle. This option can be used on any HINTERNET handle. This is used by InternetQueryOption and InternetSetOption. Previously, this set the context value to the address stored in the lpBuffer pointer. This has been corrected so that the value stored in the buffer is used and the CONTEXT_VALUE flag is assigned a new value. The old value, 10, has been preserved so that applications written for the old behavior are still supported. Identical to RECEIVE_TIMEOUT. This is used by InternetQueryOption and InternetSetOption. Identical to SEND_TIMEOUT. This is used by InternetQueryOption and InternetSetOption. Sets or retrieves an unsigned long integer value that contains the time-out value, in milliseconds, to receive a response to a request for the data channel of an FTP transaction. If the response takes longer than this time-out value, the request is canceled. This option can be used on any HINTERNET handle, including a NULL handle. It is used by InternetQueryOption and InternetSetOption. This flag has no impact on HTTP functionality. Sets or retrieves an unsigned long integer value, in milliseconds, that contains the time-out value to send a request for the data channel of an FTP transaction. If the send takes longer than this time-out value, the send is canceled. This option can be used on any HINTERNET handle, including a NULL handle. It is used by InternetQueryOption and InternetSetOption. This flag has no impact on HTTP functionality. Retrieves a string value that contains the name of the file backing a downloaded entity. This flag is valid after InternetOpenUrl, FtpOpenFile, GopherOpenFile, or HttpOpenRequest has completed. This option can only be queried by InternetQueryOption. Sets a string value that contains the extension of the file backing a downloaded entity. This flag should be set before calling InternetOpenUrl, FtpOpenFile, GopherOpenFile, or HttpOpenRequest. This option can only be set by InternetSetOption. Retrieves an INTERNET_DIAGNOSTIC_SOCKET_INFO structure that contains data about a specified HTTP Request. This flag is used by InternetQueryOption. Windows 7: This option is no longer supported. Causes the system to log off the Digest authentication SSPI package, purging all of the credentials created for the process. No buffer is required for this option. It is used by InternetSetOption. Flushes entries not in use from the password cache on the hard disk drive. Also resets the cache time used when the synchronization mode is once-per-session. No buffer is required for this option. This is used by InternetSetOption. Sets an unsigned long integer value that contains the error masks that can be handled by the client application. Retrieves an unsigned long integer value that contains a Winsock error code mapped to the ERROR_INTERNET_ error messages last returned in this thread context. This option is used on a NULLHINTERNET handle by InternetQueryOption. Sets or retrieves an unsigned long integer value that contains the amount of time the system should wait for a response to a network request before checking the cache for a copy of the resource. If a network request takes longer than the time specified and the requested resource is available in the cache, the resource is retrieved from the cache. This is used by InternetQueryOption and InternetSetOption. Retrieves an unsigned long integer value that contains the type of the HINTERNET handles passed in. This is used by InternetQueryOption on any HINTERNET handle. Enables WinINet to perform decoding for the gzip and deflate encoding schemes. For more information, see Content Encoding. Sets or retrieves an HTTP_VERSION_INFO structure that contains the supported HTTP version. This must be used on a NULL handle. This is used by InternetQueryOption and InternetSetOption. On Windows 7, Windows Server 2008 R2, and later, the value of the dwMinorVersion member in the HTTP_VERSION_INFO structure is overridden by Internet Explorer settings. EnableHttp1_1 is a registry value under HKLM\Software\Microsoft\InternetExplorer\AdvacnedOptions\HTTP\GENABLE controlled by Internet Options set in Internet Explorer for the system. The EnableHttp1_1 value defaults to 1. The HTTP_VERSION_INFO structure is ignored for any HTTP version less than 1.1 if EnableHttp1_1 is set to 1. By default, the host or authority portion of the URL is encoded according to the IDN specification for both direct and proxy connections. This option can be used on the request, or connection handle to enable or disable IDN. When IDN is disabled, WinINet uses the system codepage to encode the host or authority portion of the URL. To disable IDN host conversion, set the lpBuffer parameter in the call to InternetSetOption to zero. To enable IDN conversion on only the direct connection, specify INTERNET_FLAG_IDN_DIRECT in the lpBuffer parameter in the call to InternetSetOption. To enable IDN conversion on only the proxy connection, specify INTERNET_FLAG_IDN_PROXY in the lpBuffer parameter in the call to InternetSetOption. Windows XP with SP2 and Windows Server 2003 with SP1: This flag is not supported. Sets or retrieves whether the global offline flag should be ignored for the specified request handle. No buffer is required for this option. This is used by InternetQueryOption and InternetSetOption with a request handle. This option is only valid in Internet Explorer 5 and later. Sets or retrieves an unsigned long integer value that contains the maximum number of connections allowed per HTTP/1.0 server. This is used by InternetQueryOption and InternetSetOption. This option is only valid in Internet Explorer 5 and later. Sets or retrieves an unsigned long integer value that contains the maximum number of connections allowed per CERN proxy. When this option is set or retrieved, the hInternet parameter must set to a null handle value. A null handle value indicates that the option should be set or queried for the current process. When calling InternetSetOption with this option, all existing proxy objects will receive the new value. This value is limited to a range of 2 to 128, inclusive. Version: Requires Internet Explorer 8.0. Sets or retrieves an unsigned long integer value that contains the maximum number of connections allowed per server. This is used by InternetQueryOption and InternetSetOption. This option is only valid in Internet Explorer 5 and later. Retrieves the parent handle to this handle. This option can be used on any HINTERNET handle by InternetQueryOption. Sets or retrieves a string value that contains the password associated with a handle returned by InternetConnect. This is used by InternetQueryOption and InternetSetOption. Sets or retrieves an INTERNET_PER_CONN_OPTION_LIST structure that specifies a list of options for a particular connection. This is used by InternetQueryOption and InternetSetOption. This option is only valid in Internet Explorer 5 and later. Note PER_CONNECTION_OPTION causes the settings to be changed on a system-wide basis when a NULL handle is used in the call to InternetSetOption. To refresh the global proxy settings, you must call InternetSetOption with the REFRESH option flag. Note To change proxy information for the entire process without affecting the global settings in Internet Explorer 5 and later, use this option on the handle that is returned from InternetOpen. The following code example changes the proxy for the whole process even though the HINTERNET handle is closed and is not used by any requests. For more information and code examples, see KB article 226473. Sets or retrieves an INTERNET_PROXY_INFO structure that contains the proxy data for an existing InternetOpen handle when the HINTERNET handle is not NULL. If the HINTERNET handle is NULL, the function sets or queries the global proxy data. This option can be used on the handle returned by InternetOpen. It is used by InternetQueryOption and InternetSetOption. Note It is recommended that PER_CONNECTION_OPTION be used instead of PROXY. For more information, see KB article 226473. Sets or retrieves a string value that contains the password used to access the proxy. This is used by InternetQueryOption and InternetSetOption. This option can be set on the handle returned by InternetConnect or HttpOpenRequest. Alerts the current WinInet instance that proxy settings have changed and that they must update with the new settings. To alert all available WinInet instances, set the Buffer parameter of InternetSetOption to NULL and BufferLength to 0 when passing this option. This option can be set on the handle returned by InternetConnect or HttpOpenRequest. Sets or retrieves a string value that contains the user name used to access the proxy. This is used by InternetQueryOption and InternetSetOption. This option can be set on the handle returned by InternetConnect or HttpOpenRequest. Sets or retrieves an unsigned long integer value that contains the size of the read buffer. This option can be used on HINTERNET handles returned by FtpOpenFile, FtpFindFirstFile, and InternetConnect (FTP session only). This option is used by InternetQueryOption and InternetSetOption. Sets or retrieves an unsigned long integer value that contains the time-out value, in milliseconds, to receive a response to a request. If the response takes longer than this time-out value, the request is canceled. This option can be used on any HINTERNET handle, including a NULL handle. It is used by InternetQueryOption and InternetSetOption. When used in reference to an FTP transaction, this option refers to the control channel. Causes the proxy data to be reread from the registry for a handle. No buffer is required. This option can be used on the HINTERNET handle returned by InternetOpen. It is used by InternetSetOption. Retrieves an unsigned long integer value that contains the special status flags that indicate the status of the download in progress. This is used by InternetQueryOption. Sets or retrieves an unsigned long integer value that contains the priority of requests that compete for a connection on an HTTP handle. This is used by InternetQueryOption and InternetSetOption. Starts a new cache session for the process. No buffer is required. This is used by InternetSetOption. Sets or retrieves a string value that contains the secondary cache key. This is used by InternetQueryOption and InternetSetOption. Retrieves the certificate for an SSL/PCT (Secure Sockets Layer/Private Communications Technology) server into a formatted string. This is used by InternetQueryOption. Retrieves the certificate for an SSL/PCT server into the INTERNET_CERTIFICATE_INFO structure. This is used by InternetQueryOption. Retrieves an unsigned long integer value that contains the security flags for a handle. This option is used by InternetQueryOption. Retrieves an unsigned long integer value that contains the bit size of the encryption key. The larger the number, the greater the encryption strength used. This is used by InternetQueryOption. Be aware that the data retrieved this way relates to a transaction that has already occurred, whose security level can no longer be changed. Sets or retrieves an unsigned long integer value, in milliseconds, that contains the time-out value to send a request. If the send takes longer than this time-out value, the send is canceled. This option can be used on any HINTERNET handle, including a NULL handle. It is used by InternetQueryOption and InternetSetOption. When used in reference to an FTP transaction, this option refers to the control channel. Retrieves the server’s certificate-chain context as a duplicated PCCERT_CHAIN_CONTEXT. You may pass this duplicated context to any Crypto API function which takes a PCCERT_CHAIN_CONTEXT. You must call CertFreeCertificateChain on the returned PCCERT_CHAIN_CONTEXT when you are done with the certificate-chain context. Version: Requires Internet Explorer 8.0. Notifies the system that the registry settings have been changed so that it verifies the settings on the next call to InternetConnect. This is used by InternetSetOption. Sets an HTTP request object such that it will not logon to origin servers, but will perform automatic logon to HTTP proxy servers. This option differs from the Request flag INTERNET_FLAG_NO_AUTH, which prevents authentication to both proxy servers and origin servers. Setting this mode will suppress the use of any credential material (either previously provided username/password or client SSL certificate) when communicating with an origin server. However, if the request must transit via an authenticating proxy, WinINet will still perform automatic authentication to the HTTP proxy per the Intranet Zone settings for the user. The default Intranet Zone setting is to permit automatic logon using the user’s default credentials. To ensure suppression of all identifying information, the caller should combine SUPPRESS_SERVER_AUTH with the INTERNET_FLAG_NO_COOKIES request flag. This option may only be set on request objects before they have been sent. Attempts to set this option after the request has been sent will return ERROR_INTERNET_INCORRECT_HANDLE_STATE. No buffer is required for this option. This is used by InternetSetOption on handles returned by HttpOpenRequest only. Version: Requires Internet Explorer 8.0 or later. A general purpose option that is used to suppress behaviors on a process-wide basis. The lpBuffer parameter of the function must be a pointer to a DWORD containing the specific behavior to suppress. This option cannot be queried with InternetQueryOption. Retrieves a string value that contains the full URL of a downloaded resource. If the original URL contained any extra data, such as search strings or anchors, or if the call was redirected, the URL returned differs from the original. This option is valid on HINTERNET handles returned by InternetOpenUrl, FtpOpenFile, GopherOpenFile, or HttpOpenRequest. It is used by InternetQueryOption. Sets or retrieves the user agent string on handles supplied by InternetOpen and used in subsequent HttpSendRequest functions, as long as it is not overridden by a header added by HttpAddRequestHeaders or HttpSendRequest. This is used by InternetQueryOption and InternetSetOption. Sets or retrieves a string that contains the user name associated with a handle returned by InternetConnect. This is used by InternetQueryOption and InternetSetOption. Retrieves an INTERNET_VERSION_INFO structure that contains the version number of Wininet.dll. This option can be used on a NULLHINTERNET handle by InternetQueryOption. Sets or retrieves an unsigned long integer value that contains the size, in bytes, of the write buffer. This option can be used on HINTERNET handles returned by FtpOpenFile and InternetConnect (FTP session only). It is used by InternetQueryOption and InternetSetOption. Actions dealing with the system Whether was already called Locks the workstation's display. Locking a workstation protects it from unauthorized use. If the function succeeds, the return value is nonzero. Because the function executes asynchronously, a nonzero return value indicates that the operation has been initiated. It does not indicate whether the workstation has been successfully locked. If the function fails, the return value is zero. To get extended error information, call GetLastError. Logs off the interactive user, shuts down the system, or shuts down and restarts the system. It sends the WM_QUERYENDSESSION message to all applications to determine if they can be terminated. The shutdown type The reason for initiating the shutdown. This parameter must be one of the system shutdown reason codes. If the function succeeds, the return value is nonzero. Because the function executes asynchronously, a nonzero return value indicates that the shutdown has been initiated. It does not indicate whether the shutdown will succeed. It is possible that the system, the user, or another application will abort the shutdown. If the function fails, the return value is zero. To get extended error information, call GetLastError. Retrieves a pseudo handle for the current process. The return value is a pseudo handle to the current process. The OpenProcessToken function opens the access token associated with a process. A handle to the process whose access token is opened. The process must have the PROCESS_QUERY_INFORMATION access permission. Specifies an access mask that specifies the requested types of access to the access token. These requested access types are compared with the discretionary access control list (DACL) of the token to determine which accesses are granted or denied. A pointer to a handle that identifies the newly opened access token when the function returns. 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. Close the access token handle returned through the TokenHandle parameter by calling CloseHandle. The LookupPrivilegeValue function retrieves the locally unique identifier (LUID) used on a specified system to locally represent the specified privilege name. A pointer to a null-terminated string that specifies the name of the system on which the privilege name is retrieved. If a null string is specified, the function attempts to find the privilege name on the local system. A pointer to a null-terminated string that specifies the name of the privilege, as defined in the Winnt.h header file. For example, this parameter could specify the constant, SE_SECURITY_NAME, or its corresponding string, "SeSecurityPrivilege". A pointer to a variable that receives the LUID by which the privilege is known on the system specified by the lpSystemName parameter. If the function succeeds, the function returns nonzero. If the function fails, it returns zero. To get extended error information, call GetLastError. The AdjustTokenPrivileges function enables or disables privileges in the specified access token. Enabling or disabling privileges in an access token requires TOKEN_ADJUST_PRIVILEGES access. A handle to the access token that contains the privileges to be modified. The handle must have TOKEN_ADJUST_PRIVILEGES access to the token. If the PreviousState parameter is not NULL, the handle must also have TOKEN_QUERY access. Specifies whether the function disables all of the token's privileges. If this value is TRUE, the function disables all privileges and ignores the NewState parameter. If it is FALSE, the function modifies privileges based on the information pointed to by the NewState parameter. A pointer to a TOKEN_PRIVILEGES structure that specifies an array of privileges and their attributes. If the DisableAllPrivileges parameter is FALSE, the AdjustTokenPrivileges function enables, disables, or removes these privileges for the token. The following table describes the action taken by the AdjustTokenPrivileges function, based on the privilege attribute. Specifies the size, in bytes, of the buffer pointed to by the parameter. This parameter can be zero if the parameter is NULL A pointer to a buffer that the function fills with a structure that contains the previous state of any privileges that the function modifies. That is, if a privilege has been modified by this function, the privilege and its previous state are contained in the TOKEN_PRIVILEGES structure referenced by PreviousState. If the Count member of is zero, then no privileges have been changed by this function. This parameter can be NULL. A pointer to a variable that receives the required size, in bytes, of the buffer pointed to by the parameter. This parameter can be NULL if is NULL. Brings the thread that created the specified window into the foreground and activates the window. Keyboard input is directed to the window, and various visual cues are changed for the user. The system assigns a slightly higher priority to the thread that created the foreground window than it does to other threads. A handle to the window that should be activated and brought to the foreground. If the window was brought to the foreground, the return value is nonzero. If the window was not brought to the foreground, the return value is zero. The system restricts which processes can set the foreground window. A process can set the foreground window only if one of the following conditions is true: The process is the foreground process. The process was started by the foreground process. The process received the last input event. There is no foreground process. The process is being debugged. The foreground process is not a Modern Application or the Start Screen. The foreground is not locked. The foreground lock time-out has expired. No menus are active. An application cannot force a window to the foreground while the user is working with another window. Instead, Windows flashes the taskbar button of the window to notify the user. Retrieves a handle to the top-level window whose class name and window name match the specified strings. This function does not search child windows. This function does not perform a case-sensitive search. The class name can be any name registered with RegisterClass or RegisterClassEx, or any of the predefined control-class names. This is not your .NET class name! If lpClassName is NULL, it finds any window whose title matches the lpWindowName parameter. The window name (the window's title). If this parameter is NULL, all window names match. This may be the Text property of your If the function succeeds, the return value is a handle to the window that has the specified class name and window name. 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. To post a message in the message queue associated with a thread, use the function. A handle to the window whose window procedure is to receive the message. The following values have special meanings. HWND_BROADCAST (0xFFFF): The message is posted to all top-level windows in the system NULL: The function behaves like a call to with the dwThreadId parameter set to the identifier of the current thread. The message to be posted. Additional message-specific information. Additional message-specific information. 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. GetLastError returns ERROR_NOT_ENOUGH_QUOTA when the limit is hit. http://msdn.microsoft.com/en-us/library/windows/desktop/ms644944%28v=vs.85%29.aspx 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. A handle to the window whose window procedure is to receive the message. The following values have special meanings. HWND_BROADCAST (0xFFFF): The message is posted to all top-level windows in the system NULL: The function behaves like a call to with the dwThreadId parameter set to the identifier of the current thread. The message to be posted. Additional message-specific information. Additional message-specific information. The return value specifies the result of the message processing; it depends on the message sent. http://msdn.microsoft.com/en-us/library/windows/desktop/ms644950%28v=vs.85%29.aspx Sends the specified message to a window or windows. If the window was created by the calling thread, SendNotifyMessage calls the window procedure for the window and does not return until the window procedure has processed the message. If the window was created by a different thread, SendNotifyMessage passes the message to the window procedure and returns immediately; it does not wait for the window procedure to finish processing the message. A handle to the window whose window procedure is to receive the message. The following values have special meanings. HWND_BROADCAST (0xFFFF): The message is posted to all top-level windows in the system NULL: The function behaves like a call to with the dwThreadId parameter set to the identifier of the current thread. The message to be posted. Additional message-specific information. Additional message-specific information. The return value specifies the result of the message processing; it depends on the message sent. http://msdn.microsoft.com/en-us/library/windows/desktop/ms644953%28v=vs.85%29.aspx Defines a new window message that is guaranteed to be unique throughout the system. The message value can be used when sending or posting messages. 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. To get extended error information, call GetLastError. http://msdn.microsoft.com/en-us/library/windows/desktop/ms644947%28v=vs.85%29.aspx Gets the shutdown privilege for this process Brings the thread that created the specified window into the foreground and activates the window. Keyboard input is directed to the window, and various visual cues are changed for the user. The system assigns a slightly higher priority to the thread that created the foreground window than it does to other threads. The that shall be brought to the foreground If the window was brought to the foreground, the return value is nonzero. If the window was not brought to the foreground, the return value is zero. The system restricts which processes can set the foreground window. A process can set the foreground window only if one of the following conditions is true: The process is the foreground process. The process was started by the foreground process. The process received the last input event. There is no foreground process. The process is being debugged. The foreground process is not a Modern Application or the Start Screen. The foreground is not locked. The foreground lock time-out has expired. No menus are active. An application cannot force a window to the foreground while the user is working with another window. Instead, Windows flashes the taskbar button of the window to notify the user. Locks the workstation's display. Locking a workstation protects it from unauthorized use. If the function succeeds, the return value is true. Because the function executes asynchronously, a true return value indicates that the shutdown has been initiated. It does not indicate whether the shutdown will succeed. It is possible that the system, the user, or another application will abort the shutdown. Shuts down the system and turns off the power If the function succeeds, the return value is true. Because the function executes asynchronously, a true return value indicates that the shutdown has been initiated. It does not indicate whether the shutdown will succeed. It is possible that the system, the user, or another application will abort the shutdown. Shuts down the system and turns off the power Beginning with Windows 8: You can prepare the system for a faster startup. , If the function succeeds, the return value is true. Because the function executes asynchronously, a true return value indicates that the shutdown has been initiated. It does not indicate whether the shutdown will succeed. It is possible that the system, the user, or another application will abort the shutdown. Shuts down the system and then restarts the system If the function succeeds, the return value is true. Because the function executes asynchronously, a true return value indicates that the shutdown has been initiated. It does not indicate whether the shutdown will succeed. It is possible that the system, the user, or another application will abort the shutdown. Shuts down the system and turns off the power The system forces running applications to stop when the allowed response time expires , If the function succeeds, the return value is true. Because the function executes asynchronously, a true return value indicates that the shutdown has been initiated. It does not indicate whether the shutdown will succeed. It is possible that the system, the user, or another application will abort the shutdown. Shuts down the system and then restarts the system The system forces running applications to stop when the allowed response time expires , If the function succeeds, the return value is true. Because the function executes asynchronously, a true return value indicates that the shutdown has been initiated. It does not indicate whether the shutdown will succeed. It is possible that the system, the user, or another application will abort the shutdown. Shuts down the system and turns off the power Forces processes to terminate if they do not respond to the WM_QUERYENDSESSION or WM_ENDSESSION message within the timeout interval , If the function succeeds, the return value is true. Because the function executes asynchronously, a true return value indicates that the shutdown has been initiated. It does not indicate whether the shutdown will succeed. It is possible that the system, the user, or another application will abort the shutdown. Shuts down the system and then restarts the system Forces processes to terminate if they do not respond to the WM_QUERYENDSESSION or WM_ENDSESSION message within the timeout interval , If the function succeeds, the return value is true. Because the function executes asynchronously, a true return value indicates that the shutdown has been initiated. It does not indicate whether the shutdown will succeed. It is possible that the system, the user, or another application will abort the shutdown. Shuts down all processes running in the logon session of the process that called the ExitWindowsEx function. Then it logs the user off. If the function succeeds, the return value is true. Because the function executes asynchronously, a true return value indicates that the shutdown has been initiated. It does not indicate whether the shutdown will succeed. It is possible that the system, the user, or another application will abort the shutdown. This allows the system to power down the display according to the power plan. This prevents the system from powering down the display. It will be kept on until is called, then the user inactivity timer starts according to the power plan. This resets the timer that will power down the display after a certain amount of user inactivity. This prevents the system from going to sleep mode, even if the user tells it to. Instead the system will only appear to be sleeping and perform task in the background (such as video recording or heavy calculation operations) This allows the system to go to sleep when the user or the power plan wishes to (see This allows the system to power down according to the power plan. This prevents the system from powering down. It will be kept on until is called, then the user inactivity timer starts according to the power plan. This resets the timer that will power down the system after a certain amount of user inactivity. This structure contains information about a set of privileges for an access token. http://msdn.microsoft.com/en-us/library/windows/desktop/aa379630%28v=vs.85%29.aspx This must be set to the number of entries in the Privileges array. ExitWindowsEx parameters Beginning with Windows 8: You can prepare the system for a faster startup by combining the EWX_HYBRID_SHUTDOWN flag with the EWX_SHUTDOWN flag. Shuts down all processes running in the logon session of the process that called the ExitWindowsEx function. Then it logs the user off. This flag can be used only by processes running in an interactive user's logon session. Shuts down the system and turns off the power. The system must support the power-off feature. The calling process must have the SE_SHUTDOWN_NAME privilege. To shut down or restart the system, the calling process must use the AdjustTokenPrivileges function to enable the SE_SHUTDOWN_NAME privilege. Shuts down the system and then restarts the system. The calling process must have the SE_SHUTDOWN_NAME privilege. To shut down or restart the system, the calling process must use the AdjustTokenPrivileges function to enable the SE_SHUTDOWN_NAME privilege. Shuts down the system and then restarts it, as well as any applications that have been registered for restart using the RegisterApplicationRestart function. These application receive the WM_QUERYENDSESSION message with lParam set to the ENDSESSION_CLOSEAPP value. For more information, see Guidelines for Applications. Shuts down the system to a point at which it is safe to turn off the power. All file buffers have been flushed to disk, and all running processes have stopped. The calling process must have the SE_SHUTDOWN_NAME privilege. Specifying this flag will not turn off the power even if the system supports the power-off feature. You must specify to do this. Windows XP with SP1: If the system supports the power-off feature, specifying this flag turns off the power. This flag has no effect if terminal services is enabled. Otherwise, the system does not send the WM_QUERYENDSESSION message. This can cause applications to lose data. Therefore, you should only use this flag in an emergency. During a shutdown or log-off operation, running applications are allowed a specific amount of time to respond to the shutdown request. If this time expires before all applications have stopped, the system displays a user interface that allows the user to forcibly shut down the system or to cancel the shutdown request. If the EWX_FORCE value is specified, the system forces running applications to stop when the time expires. Forces processes to terminate if they do not respond to the WM_QUERYENDSESSION or WM_ENDSESSION message within the timeout interval. If the EWX_FORCEIFHUNG value is specified, the system forces hung applications to close and does not display the dialog box. The thread's execution requirements. 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. The opposite of Continuous, used for masking 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. The opposite of AwayMode_Required, used for masking This value is not supported! Windows Server 2003 and Windows XP: Informs the system that a user is present and resets the display and system idle timers. UserPresent must be called with Continuous. Forces the display to be on by resetting the display idle timer. Windows 8: This flag can only keep a display turned on, it can't turn on a display that's currently off. The opposite of Display_Required, used for masking Forces the system to be in the working state by resetting the system idle timer. The opposite of System_Required, used for masking No state at all A device. This is very abstract Creates an instance of this Gets a unique code of this Compares to s (only the IDs) The name of the The Id of the The type of the Get the model of this disk. This is the manufacturer's name. Type of the This is an IDE disk (HDD, SDD, ...) This is a floppy disk This is a compact disk This is a digital video disk This is a blue ray disk This is a USB disk This can be any disk This is a screen An IDE disk. This can be a hard drive or solid stade disk A disk that can store something Number of bytes in one KB Number of bytes in one MB Number of bytes in one GB A list of s that are members of this Create a new from the letter Create a new from the corresponding Create a new with the specified , and Pretty print the disk. Adds a new partition Compares this with another object Get a unique hashcode of this object Converts the specified amount of and returns a string where it is formatted as a human readable size Finds the first valid drive letter from a mask of drive letters. The mask must be in the format bit 0 = A, bit 1 = B, bit 2 = C, and so on. A valid drive letter is defined when the corresponding bit is set to 1. Returns the first drive letter that was found. Creates a new from the specified Gets all available disks Gets all available disks of the specified Gets the name of this disk. This is the Windows identifier, drive letter. Gets the total size of the disk, specified in bytes. Gets the available free space on the disk, specified in bytes. Initialize a new instance with the given values. The Win32_CDROMDrive WMI class represents a CD-ROM drive on a computer system running Windows. Be aware that the name of the drive does not correspond to the logical drive letter assigned to the device. Initialize a new instance with the given values. Availabilities and status of the device. Array of capabilities of the media access device. Short description of the object—a one-line string. Windows Configuration Manager error code. Manufacturer of the Windows CD-ROM drive. Maximum size, in kilobytes, of media supported by this device. If True, a CD-ROM is in the drive. Type of media that can be used or accessed by this device. CdRomOnly, CdRomWrite, DVDRomOnly, DVDRomWrite Transfer rate of the CD-ROM drive. A value of -1 indicates that the rate cannot be determined. When this happens, the CD is not in the drive. (kB/s) The availabilitys of the Running / Full power The device is known to be in a power save mode, but its exact status is unknown. The device is in a power save state but still functioning, and may exhibit degraded performance. The device is not functioning, but could be brought to full power quickly. The device is in a warning state, though also in a power save mode. The capability of the Errors and their codes that the config manager can return Device is working properly. Device is not configured correctly. Windows cannot load the driver for this device. Driver for this device might be corrupted, or the system may be low on memory or other resources. Device is not working properly. One of its drivers or the registry might be corrupted. Driver for the device requires a resource that Windows cannot manage. Boot configuration for the device conflicts with other devices. Cannot filter. Driver loader for the device is missing. Device is not working properly. The controlling firmware is incorrectly reporting the resources for the device. Device cannot start. Device failed. Device cannot find enough free resources to use. Windows cannot verify the device's resources. Device cannot work properly until the computer is restarted. Device is not working properly due to a possible re-enumeration problem. Windows cannot identify all of the resources that the device uses. Device is requesting an unknown resource type. Device drivers must be reinstalled. Failure using the VxD loader. Registry might be corrupted. System failure. If changing the device driver is ineffective, see the hardware documentation. Windows is removing the device. Device is disabled. System failure. If changing the device driver is ineffective, see the hardware documentation. Device is not present, not working properly, or does not have all of its drivers installed. Windows is still setting up the device. Windows is still setting up the device. Device does not have valid log configuration. Device drivers are not installed. Device is disabled. The device firmware did not provide the required resources. Device is using an IRQ resource that another device is using. Device is not working properly. Windows cannot load the required device drivers. A partition of a disk Pretty print the disk. The name of the Gets the available free space on the disk, specified in bytes. Gets the name of this disk. This is the Windows identifier, drive letter. Gets the total size of the disk, specified in bytes. A USB stick/disk Initialize a new instance with the given values. A Windows PowerScheme Enumerates the specified elements in a power scheme. This function is normally called in a loop incrementing the Index parameter to retrieve subkeys until they've all been enumerated. This parameter is reserved for future use and must be set to NULL The identifier of the power scheme. If this parameter is NULL, an enumeration of the power policies is returned. The subgroup of power settings. If this parameter is NULL, an enumeration of settings under the PolicyGuid key is returned. A set of flags that specifies what will be enumerated ACCESS_SCHEME: 16, ACCESS_SUBGROUP: 17, ACCESS_INDIVIDUAL_SETTING: 18 The zero-based index of the scheme, subgroup, or setting that is being enumerated. A pointer to a variable to receive the elements. If this parameter is NULL, the function retrieves the size of the buffer required. A pointer to a variable that on input contains the size of the buffer pointed to by the Buffer parameter. If the Buffer parameter is NULL or if the BufferSize is not large enough, the function will return and the variable receives the required buffer size. Returns ERROR_SUCCESS (zero) if the call was successful, and a nonzero value if the call failed. If the buffer size passed in the BufferSize parameter is too small, or if the Buffer parameter is NULL, ERROR_MORE_DATA will be returned and the DWORD pointed to by the BufferSize parameter will be filled in with the required buffer size. The of this The 's name Contains all the additional settings of this There may be more interesting stuff then it is mapped with outside with other properties Creates a new instance of with the of the specified Creates a new instance of with the specified Initiates the properties using the specified Gets the name of the power plan Enumerate over the settings Compars two s and returns true if they have the same Guid A unique code of this Gets the currently active Gets a list with all available s The of this The 's name Whether the brightness is being adjusted adaptively Time until the screen is being dimmed Time until a disk drive will be shut down The brightness of the screen in percent The brightness of the screen when it is dimmed in percent Time until the screen is switched off Whether selective usb energy saving is enabled Time until the screen is locked (I think) The (DEVMODE) data structure contains information about the initialization and environment of a printer or a display device. Here it will only be used for screens The name of the device The version number of the initialization data specification on which the structure is based The driver version number assigned by the driver developer Specifies the size, in bytes, of the DEVMODE structure, not including any private driver-specific data that might follow the structure's public members. Set this member to sizeof (DEVMODE) to indicate the version of the DEVMODE structure being used. Contains the number of bytes of private driver-data that follow this structure. If a device driver does not use device-specific information, set this member to zero. Specifies whether certain members of the DEVMODE structure have been initialized. If a member is initialized, its corresponding bit is set, otherwise the bit is clear. A driver supports only those DEVMODE members that are appropriate for the printer or display technology. http://msdn.microsoft.com/en-us/library/windows/desktop/dd183565%28v=vs.85%29.aspx For display devices only, a POINTL structure that indicates the positional coordinates of the display device in reference to the desktop area. The primary display device is always located at coordinates (0,0). For display devices only, a POINTL structure that indicates the positional coordinates of the display device in reference to the desktop area. The primary display device is always located at coordinates (0,0). For display devices only, the orientation at which images should be presented. If DM_DISPLAYORIENTATION is not set, this member must be zero. If DM_DISPLAYORIENTATION is set, this member must be one of the following values DMDO_DEFAULT (0): The display orientation is the natural orientation of the display device; it should be used as the default. DMDO_90 (1): The display orientation is rotated 90 degrees (measured clockwise) from DMDO_DEFAULT. DMDO_180 (2): The display orientation is rotated 180 degrees (measured clockwise) from DMDO_DEFAULT. DMDO_270 (3): The display orientation is rotated 270 degrees (measured clockwise) from DMDO_DEFAULT. Windows 2000: Not supported For fixed-resolution display devices only, how the display presents a low-resolution mode on a higher-resolution display. For example, if a display device's resolution is fixed at 1024 x 768 pixels but its mode is set to 640 x 480 pixels, the device can either display a 640 x 480 image somewhere in the interior of the 1024 x 768 screen space or stretch the 640 x 480 image to fill the larger screen space. If DM_DISPLAYFIXEDOUTPUT is not set, this member must be zero. If DM_DISPLAYFIXEDOUTPUT is set, this member must be one of the following values DMDFO_DEFAULT: The display's default setting. DMDFO_CENTER: The low-resolution image is centered in the larger screen space. DMDFO_STRETCH: The low-resolution image is stretched to fill the larger screen space. Windows 2000: Not supported Switches between color and monochrome on color printers. The following are the possible values: DMCOLOR_COLORDMCOLOR_MONOCHROME Selects duplex or double-sided printing for printers capable of duplex printing. Following are the possible values. DMDUP_SIMPLEX: Normal (nonduplex) printing. DMDUP_HORIZONTAL: Short-edge binding, that is, the long edge of the page is horizontal. DMDUP_VERTICAL: Long-edge binding, that is, the long edge of the page is vertical. Specifies the y-resolution, in dots per inch, of the printer. If the printer initializes this member, the dmPrintQuality member specifies the x-resolution, in dots per inch, of the printer. Specifies how TrueType fonts should be printed. This member can be one of the following values. DMTT_BITMAP: Prints TrueType fonts as graphics. This is the default action for dot-matrix printers. DMTT_DOWNLOAD: Downloads TrueType fonts as soft fonts. This is the default action for Hewlett-Packard printers that use Printer Control Language (PCL). DMTT_DOWNLOAD_OUTLINE: Downloads TrueType fonts as outline soft fonts. DMTT_SUBDEV: Substitutes device fonts for TrueType fonts. This is the default action for PostScript printers. Specifies whether collation should be used when printing multiple copies. (This member is ignored unless the printer driver indicates support for collation by setting the dmFields member to DM_COLLATE.) This member can be one of the following values. DMCOLLATE_TRUE: Collate when printing multiple copies. DMCOLLATE_FALSE: Do not collate when printing multiple copies. A zero-terminated character array that specifies the name of the form to use; for example, "Letter" or "Legal". A complete set of names can be retrieved by using the EnumForms function. The number of pixels per logical inch. Printer drivers do not use this member. Specifies the color resolution, in bits per pixel, of the display device (for example: 4 bits for 16 colors, 8 bits for 256 colors, or 16 bits for 65,536 colors). Display drivers use this member, for example, in the ChangeDisplaySettings function. Printer drivers do not use this member. Specifies the width, in pixels, of the visible device surface. Display drivers use this member, for example, in the ChangeDisplaySettings function. Printer drivers do not use this member. Specifies the height, in pixels, of the visible device surface. Display drivers use this member, for example, in the ChangeDisplaySettings function. Printer drivers do not use this member. Specifies the device's display mode. This member can be a combination of the following values. DM_GRAYSCALE: Specifies that the display is a noncolor device. If this flag is not set, color is assumed. DM_INTERLACED: Specifies that the display mode is interlaced. If the flag is not set, noninterlaced is assumed. Specifies the frequency, in hertz (cycles per second), of the display device in a particular mode. This value is also known as the display device's vertical refresh rate. Display drivers use this member. It is used, for example, in the ChangeDisplaySettings function. Printer drivers do not use this member. When you call the EnumDisplaySettings function, the dmDisplayFrequency member may return with the value 0 or 1. These values represent the display hardware's default refresh rate. This default rate is typically set by switches on a display card or computer motherboard, or by a configuration program that does not use display functions such as ChangeDisplaySettings. Specifies how ICM is handled. For a non-ICM application, this member determines if ICM is enabled or disabled. For ICM applications, the system examines this member to determine how to handle ICM support. This member can be one of the following predefined values, or a driver-defined value greater than or equal to the value of DMICMMETHOD_USER. DMICMMETHOD_NONE: Specifies that ICM is disabled. DMICMMETHOD_SYSTEM: Specifies that ICM is handled by Windows. DMICMMETHOD_DRIVER: Specifies that ICM is handled by the device driver. DMICMMETHOD_DEVICE: Specifies that ICM is handled by the destination device. The printer driver must provide a user interface for setting this member. Most printer drivers support only the DMICMMETHOD_SYSTEM or DMICMMETHOD_NONE value. Drivers for PostScript printers support all values. Specifies which color matching method, or intent, should be used by default. This member is primarily for non-ICM applications. ICM applications can establish intents by using the ICM functions. This member can be one of the following predefined values, or a driver defined value greater than or equal to the value of DMICM_USER. DMICM_ABS_COLORIMETRIC: Color matching should optimize to match the exact color requested without white point mapping. This value is most appropriate for use with proofing. DMICM_COLORIMETRIC: Color matching should optimize to match the exact color requested. This value is most appropriate for use with business logos or other images when an exact color match is desired. DMICM_CONTRAST: Color matching should optimize for color contrast. This value is the most appropriate choice for scanned or photographic images when dithering is desired. DMICM_SATURATE: Color matching should optimize for color saturation. This value is the most appropriate choice for business graphs when dithering is not desired. Specifies the type of media being printed on. The member can be one of the following predefined values, or a driver-defined value greater than or equal to the value of DMMEDIA_USER. DMMEDIA_STANDARD: Plain paper. DMMEDIA_GLOSSY: Glossy paper. DMMEDIA_TRANSPARENCY: Transparent film. To retrieve a list of the available media types for a printer, use the DeviceCapabilities function with the DC_MEDIATYPES flag. Specifies how dithering is to be done. The member can be one of the following predefined values, or a driver-defined value greater than or equal to the value of DMDITHER_USER. DMDITHER_NONE: No dithering. DMDITHER_COARSE: Dithering with a coarse brush. DMDITHER_FINE: Dithering with a fine brush. DMDITHER_LINEART: Line art dithering, a special dithering method that produces well defined borders between black, white, and gray scaling. It is not suitable for images that include continuous graduations in intensity and hue, such as scanned photographs. DMDITHER_GRAYSCALE: Device does gray scaling. Not used; must be zero. Not used; must be zero. This member must be zero. This member must be zero. You really should use this constructor! Alternatively you have to set dmSize manually before using it: this.dmSize = (short)Marshal.SizeOf(this); Does not matter For fixed-resolution display devices only, how the display presents a low-resolution mode on a higher-resolution display. For example, if a display device's resolution is fixed at 1024 x 768 pixels but its mode is set to 640 x 480 pixels, the device can either display a 640 x 480 image somewhere in the interior of the 1024 x 768 screen space or stretch the 640 x 480 image to fill the larger screen space The display's default setting. The low-resolution image is centered in the larger screen space. The low-resolution image is stretched to fill the larger screen space. Specifies the color resolution, in bits per pixel, of the display device 4 Bit -> 16 Colors 4 Bit -> 16 Colors 8 Bit -> 256 Colors 8 Bit -> 256 Colors 16 Bit -> 65.536 Colors 16 Bit -> 65.536 Colors 32 Bit -> 4.294.967.296 Colors 32 Bit -> 4.294.967.296 Colors A class that provides more information than Gets the bounds of the display. Specifies the color resolution, in bits per pixel, of the display device Gets a value indicating whether a particular display is the primary device. The version number of the initialization data specification on which the structure is based The driver version number assigned by the driver developer For display devices only, the orientation at which images should be presented. For fixed-resolution display devices only, how the display presents a low-resolution mode on a higher-resolution display. For example, if a display device's resolution is fixed at 1024 x 768 pixels but its mode is set to 640 x 480 pixels, the device can either display a 640 x 480 image somewhere in the interior of the 1024 x 768 screen space or stretch the 640 x 480 image to fill the larger screen space The number of pixels per logical inch. Specifies the device's display mode. This member can be a combination of the following values. GRAYSCALE: Specifies that the display is a noncolor device. If this flag is not set, color is assumed. INTERLACED: Specifies that the display mode is interlaced. If the flag is not set, noninterlaced is assumed. Specifies the frequency, in hertz (cycles per second), of the display device in a particular mode. This value is also known as the display device's vertical refresh rate. Display drivers use this member. It is used, for example, in the ChangeDisplaySettings function. Printer drivers do not use this member. May be the value 0 or 1. These values represent the display hardware's default refresh rate. This default rate is typically set by switches on a display card or computer motherboard, or by a configuration program that does not use display functions such as ChangeDisplaySettings. Specifies whether certain members of the DEVMODE structure have been initialized. If a member is initialized, its corresponding bit is set, otherwise the bit is clear. A driver supports only those DEVMODE members that are appropriate for the printer or display technology. http://msdn.microsoft.com/en-us/library/windows/desktop/dd183565%28v=vs.85%29.aspx Create a new instance of A received from Converts this class to a struct which then may be used to update the settings Gets the bounds of the display. Specifies the color resolution, in bits per pixel, of the display device Specifies the color resolution, in bits per pixel, of the display device Gets a value indicating whether a particular display is the primary device. The version number of the initialization data specification on which the structure is based The driver version number assigned by the driver developer For display devices only, the orientation at which images should be presented. For fixed-resolution display devices only, how the display presents a low-resolution mode on a higher-resolution display. For example, if a display device's resolution is fixed at 1024 x 768 pixels but its mode is set to 640 x 480 pixels, the device can either display a 640 x 480 image somewhere in the interior of the 1024 x 768 screen space or stretch the 640 x 480 image to fill the larger screen space The number of pixels per logical inch. Specifies the device's display mode. This member can be a combination of the following values. GRAYSCALE: Specifies that the display is a noncolor device. If this flag is not set, color is assumed. INTERLACED: Specifies that the display mode is interlaced. If the flag is not set, noninterlaced is assumed. Specifies the frequency, in hertz (cycles per second), of the display device in a particular mode. This value is also known as the display device's vertical refresh rate. Display drivers use this member. It is used, for example, in the ChangeDisplaySettings function. Printer drivers do not use this member. May be the value 0 or 1. These values represent the display hardware's default refresh rate. This default rate is typically set by switches on a display card or computer motherboard, or by a configuration program that does not use display functions such as ChangeDisplaySettings. Specifies whether certain members of the DEVMODE structure have been initialized. If a member is initialized, its corresponding bit is set, otherwise the bit is clear. A driver supports only those DEVMODE members that are appropriate for the printer or display technology. Sent with a power setting event (WM_POWERBROADCAST / PBT_POWERSETTINGSCHANGE) and contains data about the specific change. Indicates the power setting for which this notification is being delivered. The size in bytes of the data in the Data member. The new value of the power setting. Power Management Events [PBT_APMQUERYSUSPEND is available for use in Windows XP. Support for this event was removed in Windows Vista. Use SetThreadExecutionState instead.] Requests permission to suspend the computer. An application that grants permission should carry out preparations for the suspension before returning. lParam: The action flags. If bit 0 is 1, the application can prompt the user for directions on how to prepare for the suspension; otherwise, the application must prepare without user interaction. All other bit values are reserved. An application should process this event as quickly as possible. The application can prompt the user for directions on how to prepare for suspension only if bit 0 in the Flags parameter is set. However, if this message is issued because the user is closing the laptop lid, it will not be possible to prompt the user. Applications should respect that the user expects a certain behavior when they close the laptop lid or press the power button and allow the transition to succeed. The system allows approximately 20 seconds for an application to remove the WM_POWERBROADCAST message that is sending the PBT_APMQUERYSUSPEND event from the application's message queue. If an application does not remove the message from its queue in less then 20 seconds, the system will assume that the application is in a non-responsive state, and that the application agrees to the sleep request. Applications that do not process their message queues may have their operations interrupted. After it removes the message from the message queue, an application can take as much time as needed to perform any required operations before entering the sleep state. Any operations that could take longer then 20 seconds should be performed at this time, since the system allows only 20 seconds for operations to complete during PBT_APMSUSPEND processing. [PBT_APMQUERYSUSPENDFAILED is available for use in Windows XP. Support for this event was removed in Windows Vista. Use SetThreadExecutionState instead.] Notifies applications that permission to suspend the computer was denied. This event is broadcast if any application or driver returned BROADCAST_QUERY_DENY to a previous PBT_APMQUERYSUSPEND event. lParam: Reserved, must be zero. Applications typically respond to this event by resuming normal operation. Notifies applications that the computer is about to enter a suspended state. This event is typically broadcast when all applications and installable drivers have returned TRUE to a previous PBT_APMQUERYSUSPEND event. lParam: Reserved, must be zero. An application should process this event by completing all tasks necessary to save data. This event may also be broadcast, without a prior PBT_APMQUERYSUSPEND event, if an application or device driver uses the SetSystemPowerState function to force suspension. The system allows approximately two seconds for an application to handle this notification. If an application is still performing operations after its time allotment has expired, the system may interrupt the application. [ is available for use in Windows XP. Support for this event was removed in Windows Vista. Use instead.] Notifies applications that the system has resumed operation. This event can indicate that some or all applications did not receive a event. For example, this event can be broadcast after a critical suspension caused by a failing battery. lParam: Reserved, must be zero. Because a critical suspension occurs without prior notification, resources and data previously available may not be present when the application receives this event. The application should attempt to restore its state to the best of its ability. While in a critical suspension, the system maintains the state of the DRAM and local hard disks, but may not maintain net connections. An application may need to take action with respect to files that were open on the network before critical suspension. Notifies applications that the system has resumed operation after being suspended. lParam: Reserved, must be zero. An application can receive this event only if it received the event before the computer was suspended. Otherwise, the application will receive a event. If the system wakes due to user activity (such as pressing the power button) or if the system detects user interaction at the physical console (such as mouse or keyboard input) after waking unattended, the system first broadcasts the event, then it broadcasts the event. In addition, the system turns on the display. Your application should reopen files that it closed when the system entered sleep and prepare for user input. If the system wakes due to an external wake signal (remote wake), the system broadcasts only the event. The event is not sent. [ is available for use in Windows XP. Support for this event was removed in Windows Vista. Use instead.] lParam: Reserved, must be zero This event is broadcast when a system's APM BIOS signals an APM battery low notification. Because some APM BIOS implementations do not provide notifications when batteries are low, this event may never be broadcast on some computers. Notifies applications of a change in the power status of the computer, such as a switch from battery power to A/C. The system also broadcasts this event when remaining battery power slips below the threshold specified by the user or if the battery power changes by a specified percentage. lParam: Reserved, must be zero. An application should process this event by calling the GetSystemPowerStatus function to retrieve the current power status of the computer. In particular, the application should check the ACLineStatus, BatteryFlag, BatteryLifeTime, and BatteryLifePercent members of the SYSTEM_POWER_STATUS structure for any changes. This event can occur when battery life drops to less than 5 minutes, or when the percentage of battery life drops below 10 percent, or if the battery life changes by 3 percent. [ is available for use in Windows XP. Support for this event was removed in Windows Vista.] lParam: The OEM-defined event code that was signaled by the system's APM BIOS. OEM event codes are in the range 0200h - 02FFh. Because not all APM BIOS implementations provide OEM event notifications, this event may never be broadcast on some computers. Notifies applications that the system is resuming from sleep or hibernation. This event is delivered every time the system resumes and does not indicate whether a user is present. lParam: Reserved, must be zero. If the system detects any user activity after broadcasting , it will broadcast a event to let applications know they can resume full interaction with the user. Power setting change event lParam: Pointer to a structure. Device Broadcast Events A request to change the current configuration (dock or undock) has been canceled. The current configuration has changed, due to a dock or undock. A custom event has occurred. A device or piece of media has been inserted and is now available. Permission is requested to remove a device or piece of media. Any application can deny this request and cancel the removal. A request to remove a device or piece of media has been canceled. A device or piece of media has been removed. A device or piece of media is about to be removed. Cannot be denied. A device-specific event has occurred. A device has been added to or removed from the system. Permission is requested to change the current configuration (dock or undock). The meaning of this message is user-defined. Class of devices. The structure is a structure. File system handle. The structure is a structure. OEM- or IHV-defined device type. The structure is a structure. Port device (serial or parallel). The structure is a structure. Logical dbcv. The structure is a structure. Serves as a standard header for information related to a device event reported through the WM_DEVICECHANGE message. The members of the structure are contained in each device management structure. To determine which structure you have received through WM_DEVICECHANGE, treat the structure as a structure and check its dbch_devicetype member. The size of this structure, in bytes. If this is a user-defined event, this member must be the size of this header, plus the size of the variable-length data in the DEV_BROADCAST_USERDEFINED structure. The device type, which determines the event-specific information that follows the first three members. DBT_DEVTYP_DEVICEINTERFACE (0x5): Class of devices. This structure is a DEV_BROADCAST_DEVICEINTERFACE structure. DBT_DEVTYP_HANDLE (0x6): File system handle. This structure is a DEV_BROADCAST_HANDLE structure. DBT_DEVTYP_OEM (0x0): OEM- or IHV-defined device type. This structure is a DEV_BROADCAST_OEM structure. DBT_DEVTYP_PORT (0x3): Port device (serial or parallel). This structure is a DEV_BROADCAST_PORT structure. DBT_DEVTYP_VOLUME (0x2): Logical dbcv. This structure is a DEV_BROADCAST_VOLUME structure. Reserved; do not use. The size of this structure, in bytes. If this is a user-defined event, this member must be the size of this header, plus the size of the variable-length data in the DEV_BROADCAST_USERDEFINED structure. The device type, which determines the event-specific information that follows the first three members. DBT_DEVTYP_DEVICEINTERFACE (0x5): Class of devices. This structure is a DEV_BROADCAST_DEVICEINTERFACE structure. DBT_DEVTYP_HANDLE (0x6): File system handle. This structure is a DEV_BROADCAST_HANDLE structure. DBT_DEVTYP_OEM (0x0): OEM- or IHV-defined device type. This structure is a DEV_BROADCAST_OEM structure. DBT_DEVTYP_PORT (0x3): Port device (serial or parallel). This structure is a DEV_BROADCAST_PORT structure. DBT_DEVTYP_VOLUME (0x2): Logical dbcv. This structure is a DEV_BROADCAST_VOLUME structure. Reserved; do not use. Bit 0=A, bit 1=B, and so on (bitmask) DBTF_MEDIA=0x01, DBTF_NET=0x02 (bitmask) Contains information about a OEM-defined device type. The size of this structure, in bytes. If this is a user-defined event, this member must be the size of this header, plus the size of the variable-length data in the DEV_BROADCAST_USERDEFINED structure. The device type, which determines the event-specific information that follows the first three members. DBT_DEVTYP_DEVICEINTERFACE (0x5): Class of devices. This structure is a DEV_BROADCAST_DEVICEINTERFACE structure. DBT_DEVTYP_HANDLE (0x6): File system handle. This structure is a DEV_BROADCAST_HANDLE structure. DBT_DEVTYP_OEM (0x0): OEM- or IHV-defined device type. This structure is a DEV_BROADCAST_OEM structure. DBT_DEVTYP_PORT (0x3): Port device (serial or parallel). This structure is a DEV_BROADCAST_PORT structure. DBT_DEVTYP_VOLUME (0x2): Logical dbcv. This structure is a DEV_BROADCAST_VOLUME structure. Reserved; do not use. The OEM-specific identifier for the device. The OEM-specific function value. Possible values depend on the device. Contains information about a modem, serial, or parallel port. The size of this structure, in bytes. If this is a user-defined event, this member must be the size of this header, plus the size of the variable-length data in the DEV_BROADCAST_USERDEFINED structure. The device type, which determines the event-specific information that follows the first three members. DBT_DEVTYP_DEVICEINTERFACE (0x5): Class of devices. This structure is a DEV_BROADCAST_DEVICEINTERFACE structure. DBT_DEVTYP_HANDLE (0x6): File system handle. This structure is a DEV_BROADCAST_HANDLE structure. DBT_DEVTYP_OEM (0x0): OEM- or IHV-defined device type. This structure is a DEV_BROADCAST_OEM structure. DBT_DEVTYP_PORT (0x3): Port device (serial or parallel). This structure is a DEV_BROADCAST_PORT structure. DBT_DEVTYP_VOLUME (0x2): Logical dbcv. This structure is a DEV_BROADCAST_VOLUME structure. Reserved; do not use. A null-terminated string specifying the friendly name of the port or the device connected to the port. Friendly names are intended to help the user quickly and accurately identify the device — for example, "COM1" and "Standard 28800 bps Modem" are considered friendly names. Contains information about a file system handle. The size of this structure, in bytes. If this is a user-defined event, this member must be the size of this header, plus the size of the variable-length data in the DEV_BROADCAST_USERDEFINED structure. The device type, which determines the event-specific information that follows the first three members. DBT_DEVTYP_DEVICEINTERFACE (0x5): Class of devices. This structure is a DEV_BROADCAST_DEVICEINTERFACE structure. DBT_DEVTYP_HANDLE (0x6): File system handle. This structure is a DEV_BROADCAST_HANDLE structure. DBT_DEVTYP_OEM (0x0): OEM- or IHV-defined device type. This structure is a DEV_BROADCAST_OEM structure. DBT_DEVTYP_PORT (0x3): Port device (serial or parallel). This structure is a DEV_BROADCAST_PORT structure. DBT_DEVTYP_VOLUME (0x2): Logical dbcv. This structure is a DEV_BROADCAST_VOLUME structure. Reserved; do not use. A handle to the device to be checked. A handle to the device notification. This handle is returned by RegisterDeviceNotification. The for the custom event. For more information, see Device Events. Valid only for DBT_CUSTOMEVENT. The offset of an optional string buffer. Valid only for DBT_CUSTOMEVENT. Optional binary data. This member is valid only for DBT_CUSTOMEVENT. Contains information about a class of devices. The size of this structure, in bytes. If this is a user-defined event, this member must be the size of this header, plus the size of the variable-length data in the DEV_BROADCAST_USERDEFINED structure. The device type, which determines the event-specific information that follows the first three members. DBT_DEVTYP_DEVICEINTERFACE (0x5): Class of devices. This structure is a DEV_BROADCAST_DEVICEINTERFACE structure. DBT_DEVTYP_HANDLE (0x6): File system handle. This structure is a DEV_BROADCAST_HANDLE structure. DBT_DEVTYP_OEM (0x0): OEM- or IHV-defined device type. This structure is a DEV_BROADCAST_OEM structure. DBT_DEVTYP_PORT (0x3): Port device (serial or parallel). This structure is a DEV_BROADCAST_PORT structure. DBT_DEVTYP_VOLUME (0x2): Logical dbcv. This structure is a DEV_BROADCAST_VOLUME structure. Reserved; do not use. The for the interface device class. A null-terminated string that specifies the name of the device. Represents the strongly named DataTable class. Represents strongly named DataRow class. that carry the new value of the event The new value after the event occured The new value (after the event occured) that carry the new value and the old value of the event that carry the new value and the old value of the event The value before the event occured The value after the event occured The old value (before the event occured) The new value (after the event occured) The value before the event occured The value after the event occured that carry a specific reason (is very similar to The reason why the event occured The reason why the event occured A that provides events for Devices It catches arriving and removed devices as well as inserted media and new network volumes An abstract class that every event plugin has to inherit from Returns an with the supported events Returns the current status of the A simple Event without any special arguments An event that also passes the new value An event that passes both the old and the new value The event that gives a reason why it occured Creates an instance of this class Disables all SystemEvents because they are static http://msdn.microsoft.com/en-us/library/microsoft.win32.systemevents.displaysettingschanged%28v=vs.110%29.aspx Get all events that are provided Get the current status of this A device (no media) has been inserted and becomes available. The system broadcasts the DBT_DEVICEQUERYREMOVE device event to request permission to remove a device or piece of media. This message is the last chance for applications and drivers to prepare for this removal. However, any application can deny this request and cancel the operation. A request to remove a device or piece of media has been canceled. A device or piece of media has been physically removed. A device or piece of media is being removed and is no longer available for use. A piece of media (CD, DVD, ...) has been inserted and becomes available A piece of media (CD, DVD, ...) has been inserted and becomes available A that provides events for Power stuff It catches changes in the PowerMode (Battery Status, Battery Availability, PowerLine Status), Suspend and Resumes and a change of the active Creates an instance of this class Disables all SystemEvents because they are static http://msdn.microsoft.com/en-us/library/microsoft.win32.systemevents.displaysettingschanged%28v=vs.110%29.aspx Occurs when the user suspends or resumes the system. Occurs when the user suspends the system. Occurs when the user resumes the system. Occurs when the user connects or disconnects the system from/to the power network. Occurs when the user connects or disconnects the computer from the battery. Occurs when the user connects or disconnects the computer from the battery. Occurs when the user selects antoher power plan. A that provides events for Processes It waits for newly created and exiting processes Occurs when a new instance of Win32_Process is created Occurs when a new instance of Win32_Process is Exited Occurs when a new instance of Win32_Process is created Occurs when a new instance of Win32_Process is Exited Disables all SystemEvents because they are static http://msdn.microsoft.com/en-us/library/microsoft.win32.systemevents.displaysettingschanged%28v=vs.110%29.aspx Occurs when the user changes the display settings (resolution, color depth, ...). Occurs when the user plugges a new screen. Occurs when the user unplugges a screen. Occurs when the user changes the resolution or color depth of a screen. Occurs when the user changes the color depth of a screen. Occurs when the user changes the resolution of a screen. Occurs when the user changes the RefreshRate of a screen. Occurs when the user changes the Position of a screen. Occurs when the user changes the Orientation of a screen. Occurs when the user The user chooses another screen as primary screen. Occurs when the user switches to an application that uses a different palette. Disables all SystemEvents because they are static http://msdn.microsoft.com/en-us/library/microsoft.win32.systemevents.displaysettingschanged%28v=vs.110%29.aspx Occurs when the user adds fonts to or removes fonts from the system. Occurs when the user adds fonts to the system. Occurs when the user removes fonts from the system. Occurs when the user is trying to log off or shut down the system. Occurs when the user is trying to log off. Occurs when the user is trying to shut down the system. Occurs when the currently logged-in user has changed. A session has been connected from the console. A session has been disconnected from the console. A session has been connected from a remote connection. A session has been disconnected from a remote connection. A session has been locked. A user has logged off from a session. A user has logged on to a session. A session has changed its status to or from remote controlled mode. A session has been unlocked. This takes care of all available s and provides access to instances of them when a needs it A list of the s Checks whether the with the specified exists Checks whether the exists Searches for an existing instance of the . If non is found, a new one is created. The that shall be loaded The specified does not exist! Creates a new instance of the specified passing the specified Additional arguments that shall be passed to the constructor The that shall be loaded The specified does not exist! Returns an instance of the passing the specified Additional arguments that shall be passed to the constructor Whether an existing instance of this class shall be reused. The that shall be loaded The specified does not exist! Returns the current status of this This includes the lists with available and with loaded s The type of the event A simple event with no further information An event which gives only one value (like a new item's name) An event which gives the previous and post status of a value A dictionary containing all the values before the event occurs Whether the event EventHandler of Checks all interfaces and calls events accordingly EventHandler of Throws the event if neccessary Occurs when the IP address of a network interface changes. Occurs when a new network interface was detected Occurs when a network interface was removed Occurs when the IP address of a specific network interface was changed Add extensions to Convert the given to a string, but return null if == null null or Concatenates a speceified separator between each element of a specified array, yielding a single concatenated string A The concatenated Concatenates a speceified separator between each element of a specified array, yielding a single concatenated string A T must be an enumerated type The concatenated Add extensions to Refresh the BindingContext of this Add extensions to Converts the first column of the specified to a Converts the column with the specified of the specified to a Name of the column that shall be converted Converts the column with the specified of the specified to a Index of the column that shall be converted Add extensions to Determines whether the specified is null or an string . True: String is null or empty. False: String is not null and not empty Determines whether the specified is null or an string or does match the specified string When the matches this it is also considered as "empty" . True: String is null or empty. False: String is not null and not empty Determines whether the specified is null or an string or does match the specified strings or When the matches this it is also considered as "empty" When the matches this it is also considered as "empty" . True: String is null or empty. False: String is not null and not empty Determines whether the specified is null or an string or any of the specified strings ( When the matches this it is also considered as "empty" . True: String is null or empty. False: String is not null and not empty Determines whether the specified is not null and not an string . True: String is not null and not empty. False: String is null or empty Determines whether the specified is not null, not an string and does not match the specified string When the matches this it is also considered as "empty" . True: String is not null, not empty and not equal to . False: String is null or empty Determines whether the specified is not null, not an string and does not match the specified strings or When the matches this this function also returns false When the matches this this function also returns false . True: String is not null, not empty and not equal to or . Determines whether the specified is not null, not an string and does not match any of the specified strings When the matches one of these s this function returns false ean. True: String is not null, not empty and not equal to . Join this array with the delimiter + and begin and end at the beginning and at the end respectively Example: Begin: "B", End: "E-" --> B1E-B2E-B3E- Example: Begin: "B", End: "E-" --> B1E-B2E-B3E- Join this array with the delimiter + and begin and end at the beginning and at the end respectively Example: Begin: "B", End: "E-" --> B1E-B2E-B3E Example: Begin: "B", Delimiter "-", End: "E" --> B1E-B2E-B3E Concatenates a specified separator between each element of a specified array, yielding a single concatenated string between the array elements A single concatenated string Retrieves a substring from this instance. The substring starts at a specified character position and has a specified . If the length of the instance is shorter than the specified the ing itself is returned Character position where substring shall start, beginning at 0 The (maximum) length of the substring Substring Returns the value of this or .Value if the string or matches When the matches this it is also considered as "empty" The or Add extensions to Concatenates a speceified separator between each element of a specified array, yielding a single concatenated string A The concatenated Add extensions to Concatenates a speceified separator between each element of a specified array, yielding a single concatenated string A The concatenated A for logging purposes Our Appends the specified to the log box Appends the specified to the log box prepending the current time Appends the specified to the log box () and opens a new line Appends the specified to the log box () prepending the current time and opens a new line Creates a new line in the log box Shows this in the foreground Hides this Prevent this form from closing, simply hide it This is neccessary because we may want to have a look at the log later again Clears the log Saves the settings which logs shall be displayed Opens the See .RefreshStatus Close the application Enable some keys Opens the Erforderliche Designervariable. Verwendete Ressourcen bereinigen. True, wenn verwaltete Ressourcen gelöscht werden sollen; andernfalls False. Erforderliche Methode für die Designerunterstützung. Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden. The type of the logged message This is a network event This is a system event This is a power event This is a screen event This is a process event This is a device event This is a command line event This is an action This is an message without type This is an error message The main This is invisible The logging The global EventManager The global TaskManager Creates a new or refreshes the existing Check if the app was started as administrator or restart it with those permissions This method has to be called during the initialization process because otherwise the app will be restarted when trying to perform an action that requires administrator priviliges Whether administrator privileges are possible and requested When the user cancels UAC or some other error occurs this will return false. Close the application Ask the user and close the application Whether the user shall be asked first Do not show this Exit application Show the Log Show the log Show : Required designer variable. Clean up any resources being used. true if managed resources should be disposed; otherwise, false. Required method for Designer support - do not modify the contents of this method with the code editor. Takes care of thread safe access to this class Which messages shall be processed Enable the specified for being processed and forwared Disable the specified for being processed and forwared The actual method that is being called when a is broadcasted Is triggered when the application is already running and then gets called with command line arguments Is triggered when the application is already running and then gets called with command line arguments When a Win32 was received You may have to register this Form for receiving such messages first When a Win32 was received You may have to register this Form for receiving such messages first A that enables the user to choose which s shall be enabled and disabled Our A to display the in the A list with all available plugins and whether they are enabled Create a new instance of CellClick-Event of Update the dictionary and refresh the FormClosing-Event of Save the plugin settings and notify the Required designer variable. Clean up any resources being used. true if managed resources should be disposed; otherwise, false. Required method for Designer support - do not modify the contents of this method with the code editor. Der Haupteinstiegspunkt für die Anwendung. This is a that displays all available information from the and the Refreshes all elements in the Gets a list of all available Status using Reflection Required designer variable. Clean up any resources being used. true if managed resources should be disposed; otherwise, false. Required method for Designer support - do not modify the contents of this method with the code editor. Provides methods to get the status of the system regarding devices Gets the status related to devices Gets all available disks on the system Returns the current Power status Gets the current system power status Gets the current battery charge status. Checks whether a battery is available on the system May be null if the is unknown Gets the reported full charge lifetime of the primary battery power source Gets the approximate amount of full battery charge remaining Gets the approximate of battery time remaining. Provides methods to get the status of the currently running tasks Gets a dictionary with the currently running processes, indexed by PID Gets a list with the currently running processes Returns the current System status Gets a list of all displays on the system Gets the primary screen Gets the orientation of the screen But which screen? Gets a List of es of the with the specified The ID of the Gets a List of es of the specified The Gets the with the specified Checks whether the has an IP address that begins with the specified .Id IP Address or just the beginning of a IP Address Checks whether the specified has an IP address that begins with the specified IP Address or just the beginning of a IP Address Checks whether the has this specified DNS .Id DNS suffix Checks whether the has this specified DNS DNS suffix Returns the current Network status Returns the current Proxy configuration Gets a value indicating whether a network connection is present Returns the current System status Gets a list with all installed s Gets the name of the domain the user belongs to Gets the user name associated with the current thread Information about the that we are running on The of this OS Whether this is Windows 8.1 Whether this is Windows 8 Whether this is Windows 7 Whether this is Windows Vista Whether this is Windows XP Whether this is Windows 2000 Whether the current process is running as 32bit process Checks whether the operating system is 64bit Registers the event The form Registers the event and should take care to only measure the time it is taking for it's own initialization The form should be stopped before loading an event and continued afterwards. Unregisters all events so the task can be unloaded Gets the current status of this It may give some status information or only the name Checks the current connections (s) and sets Proxy accordingly This takes care of all available s and automatically loads them on startup Our A List of available s A List of actually loaded (=active) s A List with the instances of the s Returns the current status of this This includes the lists with available and with loaded s Gets a list of all available s using Reflection Loads all s that are not found or enabled in settings Loads all s that are enabled in and not yet loaded and unloads all s that are disabled in and but still loaded This method is used by to notify us about changes The list of plugins and whether they shall be enabled Creates an instance of the specified Creates an instance of the specified Destructs the instance of the specified Eine stark typisierte Ressourcenklasse zum Suchen von lokalisierten Zeichenfolgen usw. Gibt die zwischengespeicherte ResourceManager-Instanz zurück, die von dieser Klasse verwendet wird. Überschreibt die CurrentUICulture-Eigenschaft des aktuellen Threads für alle Ressourcenzuordnungen, die diese stark typisierte Ressourcenklasse verwenden. Command line options Prints some help text The name of the event that shall be triggered Every registered event handler has to compare this integer to the event it is waiting for