ReactOS 0.4.16-dev-340-g0540c21
|
#include <stdlib.h>
#include <windows.h>
#include <commctrl.h>
#include <tlhelp32.h>
#include <windowsx.h>
#include <debug.h>
#include <wchar.h>
#include <strsafe.h>
#include "resource.h"
Go to the source code of this file.
Classes | |
struct | UTILMAN_GLOBALS |
struct | _UTILMAN_STATE |
struct | _REGISTRY_SETTINGS |
struct | _REGISTRY_DATA |
Macros | |
#define | MAX_BUFFER 256 |
Typedefs | |
typedef struct _UTILMAN_STATE | UTILMAN_STATE |
typedef struct _UTILMAN_STATE * | PUTILMAN_STATE |
typedef struct _REGISTRY_SETTINGS | REGISTRY_SETTINGS |
typedef struct _REGISTRY_SETTINGS * | PREGISTRY_SETTINGS |
typedef struct _REGISTRY_DATA | REGISTRY_DATA |
typedef struct _REGISTRY_DATA * | PREGISTRY_DATA |
typedef enum _WRITE_REGISTRY | WRITE_REGISTRY |
typedef enum _WRITE_REGISTRY * | PWRITE_REGISTRY |
Enumerations | |
enum | _WRITE_REGISTRY { REGISTRY_ACCESSIBILITY , REGISTRY_UTILMAN } |
Functions | |
VOID | InitUtilsList (IN BOOL bInitGui) |
BOOL | DlgInitHandler (IN HWND hDlg) |
VOID | ShowAboutDlg (IN HWND hDlgParent) |
VOID | GroupBoxUpdateTitle (VOID) |
VOID | UpdateUtilityState (IN BOOL bUtilState) |
INT_PTR APIENTRY | DlgProc (IN HWND hDlg, IN UINT Msg, IN WPARAM wParam, IN LPARAM lParam) |
INT | ListBoxRefreshContents (VOID) |
BOOL WINAPI | UManStartDlg (VOID) |
DWORD | GetProcessID (IN LPCWSTR lpszProcessName) |
BOOL | IsProcessRunning (IN LPCWSTR lpszProcessName) |
BOOL | LaunchProcess (IN LPCWSTR lpszProcessName) |
BOOL | CloseProcess (IN LPCWSTR lpszProcessName) |
BOOL | InitAppRegKey (IN HKEY hPredefinedKey, IN LPCWSTR lpszSubKey, OUT PHKEY phKey, OUT LPDWORD lpdwDisposition) |
BOOL | QueryAppSettings (IN HKEY hKey, IN LPCWSTR lpszSubKey, IN LPCWSTR lpszRegValue, OUT PVOID ReturnedData, IN OUT LPDWORD lpdwSizeData) |
BOOL | SaveAppSettings (IN HKEY hKey, IN LPCWSTR lpszRegValue, IN DWORD dwRegType, IN PVOID Data, IN DWORD cbSize) |
Variables | |
UTILMAN_GLOBALS | Globals |
REGISTRY_SETTINGS | Settings |
REGISTRY_DATA | RegData |
typedef struct _REGISTRY_DATA * PREGISTRY_DATA |
typedef struct _REGISTRY_SETTINGS * PREGISTRY_SETTINGS |
typedef struct _UTILMAN_STATE * PUTILMAN_STATE |
typedef enum _WRITE_REGISTRY * PWRITE_REGISTRY |
typedef struct _REGISTRY_DATA REGISTRY_DATA |
typedef struct _UTILMAN_STATE UTILMAN_STATE |
typedef enum _WRITE_REGISTRY WRITE_REGISTRY |
@CloseProcess
Closes a process.
[in] | lpszProcessName | The name of the executable process. |
Definition at line 192 of file process.c.
Referenced by DlgProc().
@DlgInitHandler
Function which processes several operations for WM_INITDIALOG.
[in] | hDlg | The handle object of the dialog. |
Definition at line 97 of file umandlg.c.
Referenced by DlgProc().
@DlgProc
Main dialog application procedure function.
[in] | hDlg | The handle object of the dialog. |
[in] | Msg | Message events (in unsigned int). |
[in] | wParam | Message parameter (in UINT_PTR). |
[in] | lParam | Message parameter (in LONG_PTR). |
Definition at line 292 of file umandlg.c.
@GetProcessID
Returns the process executable ID based on the given executable name.
[in] | lpszProcessName | The name of the executable process. |
Definition at line 26 of file process.c.
Referenced by CloseProcess(), and IsProcessRunning().
@GroupBoxUpdateTitle
Updates the title of the groupbox.
Definition at line 187 of file umandlg.c.
Referenced by UpdateUtilityState().
BOOL InitAppRegKey | ( | IN HKEY | hPredefinedKey, |
IN LPCWSTR | lpszSubKey, | ||
OUT PHKEY | phKey, | ||
OUT LPDWORD | lpdwDisposition | ||
) |
@InitAppRegKey
Initialize a key. The function may not necessarily create it but open the key if it already exists. The disposition pointed lpdwDisposition determines that. This is a function helper.
[in] | hPredefinedKey | The predefined key (e.g. HKEY_CLASSES_ROOT). |
[in] | lpszSubKey | The path to the sub key to be created. |
[out] | phKey | A pointer that receives a handle to the key given by the function. |
[out] | lpdwDisposition | A pointer that receives the disposition given by the function. |
Definition at line 50 of file registry.c.
@InitUtilsList
Initializes the list of accessibility utilities.
[in] | bInitGui | Whether we are initializing the UI list (TRUE) or the internal array (FALSE). |
Definition at line 38 of file umandlg.c.
Referenced by DlgInitHandler(), and UManStartDlg().
@IsProcessRunning
Checks if a process is running.
[in] | lpszProcessName | The name of the executable process. |
Definition at line 71 of file process.c.
Referenced by InitUtilsList(), and ListBoxRefreshContents().
@LaunchProcess
Executes a process.
[in] | lpProcessName | The name of the executable process. |
Definition at line 117 of file process.c.
Referenced by DlgProc().
@ListBoxRefreshContents
Handle the tasks on a periodic cycle. This function handles WM_TIMER message.
Definition at line 226 of file umandlg.c.
Referenced by DlgInitHandler(), and DlgProc().
BOOL QueryAppSettings | ( | IN HKEY | hKey, |
IN LPCWSTR | lpszSubKey, | ||
IN LPCWSTR | lpszRegValue, | ||
OUT PVOID | ReturnedData, | ||
IN OUT LPDWORD | lpdwSizeData | ||
) |
@QueryAppSettings
Query the setting from the application's key. This is a function helper.
[in] | hKey | A handle to a key. |
[in] | lpszSubKey | The path to a sub-key. |
[in] | lpszRegValue | The registry value where we need to get the data from. |
[out] | ReturnedData | An arbitrary pointer that receives the returned data. Being arbitrary, the data can be of any type. |
[in,out] | lpdwSizeData | A pointer to the returned data pointed by ReturnedData parameter that retrieves the size of the aforementioned data, in bytes. |
Definition at line 102 of file registry.c.
BOOL SaveAppSettings | ( | IN HKEY | hKey, |
IN LPCWSTR | lpszRegValue, | ||
IN DWORD | dwRegType, | ||
IN PVOID | Data, | ||
IN DWORD | cbSize | ||
) |
@SaveAppSettings
Save an application's setting data to the Registry. This is a function helper.
[in] | hKey | A handle to a key. |
[in] | lpszRegValue | The path to the sub key where the value needs to be created. |
[out] | dwRegType | The type of registry value to be created (e.g. a REG_DWORD). |
[in] | Data | A pointer to an arbitrary data for the value to be set. Being arbitrary, the data can be of any type (in conformity with the registry type pointed by dwRegType) otherwise the function might lead to a undefined behaviour. |
[in] | cbSize | The size of the buffer data pointed by Data parameter, in bytes. |
Definition at line 166 of file registry.c.
@ShowAboutDlg
Displays the Shell "About" dialog box.
[in] | hDlgParent | A handle to the parent dialog window. |
Definition at line 167 of file umandlg.c.
Referenced by DlgProc().
@UManStartDlg
Executes the dialog initialization mechanism and starts Utility Manager. The function is exported for use by the main process.
Definition at line 383 of file umandlg.c.
Referenced by wWinMain().
@UpdateUtilityState
Checks the state of the given accessibility tool.
[in] | bUtilState | State condition (boolean TRUE: started / FALSE: stopped). |
Definition at line 208 of file umandlg.c.
Referenced by DlgProc(), and ListBoxRefreshContents().
|
extern |
|
extern |
Definition at line 14 of file registry.c.
|
extern |