ReactOS 0.4.15-dev-8207-gd73a838
umandlg.h
Go to the documentation of this file.
1/*
2 * PROJECT: ReactOS Utility Manager Resources DLL (UManDlg.dll)
3 * LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
4 * PURPOSE: DLL header file
5 * COPYRIGHT: Copyright 2020 George Bișoc (george.bisoc@reactos.org)
6 */
7
8#ifndef _UMANDLG_H
9#define _UMANDLG_H
10
11/* INCLUDES ******************************************************************/
12
13#include <stdlib.h>
14#include <windows.h>
15#include <commctrl.h>
16#include <tlhelp32.h>
17#include <windowsx.h>
18#include <debug.h>
19#include <wchar.h>
20#include <strsafe.h>
21
22#include "resource.h"
23
24/* DEFINES ********************************************************************/
25
26#define MAX_BUFFER 256
27
28/* TYPES **********************************************************************/
29
30typedef struct
31{
40 WCHAR szRunning[MAX_BUFFER];
41 WCHAR szNotRunning[MAX_BUFFER];
42 WCHAR szGrpBoxTitle[MAX_BUFFER];
44
45typedef struct _UTILMAN_STATE
46{
52
53typedef struct _REGISTRY_SETTINGS
54{
55 /* Accessibility Registry settings */
66
67 /* Utility Manager Registry settings */
70
71typedef struct _REGISTRY_DATA
72{
73 /* On-Screen Keyboard Registry data */
76
77 /* Magnify Registry data */
81
82/* ENUMERATIONS ***************************************************************/
83
84typedef enum _WRITE_REGISTRY
85{
89
90/* DECLARATIONS ***************************************************************/
91
92/* umandlg.c */
93VOID InitUtilsList(IN BOOL bInitGui);
95VOID ShowAboutDlg(IN HWND hDlgParent);
97VOID UpdateUtilityState(IN BOOL bUtilState);
101
102/* process.c */
103DWORD GetProcessID(IN LPCWSTR lpszProcessName);
104BOOL IsProcessRunning(IN LPCWSTR lpszProcessName);
105BOOL LaunchProcess(IN LPCWSTR lpszProcessName);
106BOOL CloseProcess(IN LPCWSTR lpszProcessName);
107
108/* registry.c */
109BOOL InitAppRegKey(IN HKEY hPredefinedKey, IN LPCWSTR lpszSubKey, OUT PHKEY phKey, OUT LPDWORD lpdwDisposition);
110BOOL QueryAppSettings(IN HKEY hKey, IN LPCWSTR lpszSubKey, IN LPCWSTR lpszRegValue, OUT PVOID ReturnedData, IN OUT LPDWORD lpdwSizeData);
111BOOL SaveAppSettings(IN HKEY hKey, IN LPCWSTR lpszRegValue, IN DWORD dwRegType, IN PVOID Data, IN DWORD cbSize);
112
113/* Struct variable declaration */
117
118#endif /* UMANDLG_H_ */
119
120/* EOF */
WPARAM wParam
Definition: combotst.c:138
LPARAM lParam
Definition: combotst.c:139
struct @1643 Msg[]
DLGPROC DlgProc
Definition: desk.c:122
#define APIENTRY
Definition: api.h:79
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
FxAutoRegKey hKey
static HICON
Definition: imagelist.c:84
unsigned __int3264 UINT_PTR
Definition: mstsclib_h.h:274
unsigned int UINT
Definition: ndis.h:50
HICON hIcon
Definition: umandlg.h:33
HINSTANCE hInstance
Definition: umandlg.h:32
UINT_PTR iTimer
Definition: umandlg.h:34
HWND hListDlg
Definition: umandlg.h:38
INT iSelectedIndex
Definition: umandlg.h:35
HWND hDlgCtlStop
Definition: umandlg.h:37
HWND hMainDlg
Definition: umandlg.h:39
HWND hDlgCtlStart
Definition: umandlg.h:36
LPCWSTR lpszMagnifyDisplayName
Definition: umandlg.h:79
LPCWSTR lpszMagnifyPath
Definition: umandlg.h:78
LPCWSTR lpszOskPath
Definition: umandlg.h:74
LPCWSTR lpszOskDisplayName
Definition: umandlg.h:75
DWORD dwClientControlCode
Definition: umandlg.h:58
BOOL bStartWithUtilman
Definition: umandlg.h:62
LPCWSTR lpszErrorOnLaunch
Definition: umandlg.h:60
BOOL bStartWithROS
Definition: umandlg.h:63
DWORD dwHungTimeOut
Definition: umandlg.h:65
LPCWSTR lpszHungRespondAction
Definition: umandlg.h:64
LPCWSTR lpszAppName
Definition: umandlg.h:59
LPCWSTR lpszAppPath
Definition: umandlg.h:56
BOOL bState
Definition: umandlg.h:50
UINT uNameId
Definition: umandlg.h:48
LPCWSTR lpszProgram
Definition: umandlg.h:47
WCHAR szResource[MAX_BUFFER]
Definition: umandlg.h:49
int32_t INT_PTR
Definition: typedefs.h:64
uint32_t * LPDWORD
Definition: typedefs.h:59
int32_t INT
Definition: typedefs.h:58
#define IN
Definition: typedefs.h:39
#define OUT
Definition: typedefs.h:40
BOOL WINAPI UManStartDlg(VOID)
Definition: umandlg.c:383
BOOL InitAppRegKey(IN HKEY hPredefinedKey, IN LPCWSTR lpszSubKey, OUT PHKEY phKey, OUT LPDWORD lpdwDisposition)
Definition: registry.c:50
VOID ShowAboutDlg(IN HWND hDlgParent)
Definition: umandlg.c:167
BOOL CloseProcess(IN LPCWSTR lpszProcessName)
Definition: process.c:192
VOID InitUtilsList(IN BOOL bInitGui)
Definition: umandlg.c:38
#define MAX_BUFFER
Definition: umandlg.h:26
struct _UTILMAN_STATE UTILMAN_STATE
BOOL DlgInitHandler(IN HWND hDlg)
Definition: umandlg.c:97
struct _REGISTRY_SETTINGS * PREGISTRY_SETTINGS
struct _REGISTRY_DATA REGISTRY_DATA
UTILMAN_GLOBALS Globals
Definition: clipbrd.c:13
BOOL IsProcessRunning(IN LPCWSTR lpszProcessName)
Definition: process.c:71
DWORD GetProcessID(IN LPCWSTR lpszProcessName)
Definition: process.c:26
enum _WRITE_REGISTRY WRITE_REGISTRY
struct _REGISTRY_SETTINGS REGISTRY_SETTINGS
REGISTRY_SETTINGS Settings
Definition: charmap.c:25
VOID UpdateUtilityState(IN BOOL bUtilState)
Definition: umandlg.c:208
BOOL SaveAppSettings(IN HKEY hKey, IN LPCWSTR lpszRegValue, IN DWORD dwRegType, IN PVOID Data, IN DWORD cbSize)
Definition: registry.c:166
BOOL LaunchProcess(IN LPCWSTR lpszProcessName)
Definition: process.c:117
VOID GroupBoxUpdateTitle(VOID)
Definition: umandlg.c:187
REGISTRY_DATA RegData
Definition: registry.c:14
struct _UTILMAN_STATE * PUTILMAN_STATE
BOOL QueryAppSettings(IN HKEY hKey, IN LPCWSTR lpszSubKey, IN LPCWSTR lpszRegValue, OUT PVOID ReturnedData, IN OUT LPDWORD lpdwSizeData)
Definition: registry.c:102
_WRITE_REGISTRY
Definition: umandlg.h:85
@ REGISTRY_UTILMAN
Definition: umandlg.h:87
@ REGISTRY_ACCESSIBILITY
Definition: umandlg.h:86
struct _REGISTRY_DATA * PREGISTRY_DATA
INT ListBoxRefreshContents(VOID)
Definition: umandlg.c:226
enum _WRITE_REGISTRY * PWRITE_REGISTRY
LONG_PTR LPARAM
Definition: windef.h:208
UINT_PTR WPARAM
Definition: windef.h:207
#define WINAPI
Definition: msvc.h:6
__wchar_t WCHAR
Definition: xmlstorage.h:180
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185