ReactOS  0.4.15-dev-1070-ge1a01de
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 BiČ™oc George (fraizeraust99 at gmail dot com)
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 
30 typedef struct
31 {
40  WCHAR szRunning[MAX_BUFFER];
41  WCHAR szNotRunning[MAX_BUFFER];
42  WCHAR szGrpBoxTitle[MAX_BUFFER];
44 
45 typedef struct _UTILMAN_STATE
46 {
52 
53 typedef struct _REGISTRY_SETTINGS
54 {
55  /* Accessibility Registry settings */
66 
67  /* Utility Manager Registry settings */
70 
71 typedef struct _REGISTRY_DATA
72 {
73  /* On-Screen Keyboard Registry data */
76 
77  /* Magnify Registry data */
81 
82 /* ENUMERATIONS ***************************************************************/
83 
84 typedef enum _WRITE_REGISTRY
85 {
89 
90 /* DECLARATIONS ***************************************************************/
91 
92 /* umandlg.c */
93 VOID InitUtilsList(IN BOOL bInitGui);
95 VOID ShowAboutDlg(IN HWND hDlgParent);
97 VOID UpdateUtilityState(IN BOOL bUtilState);
101 
102 /* process.c */
103 DWORD GetProcessID(IN LPCWSTR lpszProcessName);
104 BOOL IsProcessRunning(IN LPCWSTR lpszProcessName);
105 BOOL LaunchProcess(IN LPCWSTR lpszProcessName);
106 BOOL CloseProcess(IN LPCWSTR lpszProcessName);
107 
108 /* registry.c */
109 BOOL InitAppRegKey(IN HKEY hPredefinedKey, IN LPCWSTR lpszSubKey, OUT PHKEY phKey, OUT LPDWORD lpdwDisposition);
110 BOOL QueryAppSettings(IN HKEY hKey, IN LPCWSTR lpszSubKey, IN LPCWSTR lpszRegValue, OUT PVOID ReturnedData, IN OUT LPDWORD lpdwSizeData);
111 BOOL SaveAppSettings(IN HKEY hKey, IN LPCWSTR lpszRegValue, IN DWORD dwRegType, IN PVOID Data, IN DWORD cbSize);
112 
113 /* Struct variable declaration */
114 extern UTILMAN_GLOBALS Globals;
116 extern REGISTRY_DATA RegData;
117 
118 #endif /* UMANDLG_H_ */
119 
120 /* EOF */
#define IN
Definition: typedefs.h:39
static HICON
Definition: imagelist.c:84
UINT uNameId
Definition: umandlg.h:48
struct _UTILMAN_STATE * PUTILMAN_STATE
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
struct @1607 Msg[]
LPCWSTR lpszOskDisplayName
Definition: umandlg.h:75
HINSTANCE hInstance
Definition: umandlg.h:32
WCHAR szResource[MAX_BUFFER]
Definition: umandlg.h:49
BOOL WINAPI UManStartDlg(VOID)
Definition: umandlg.c:383
UTILMAN_GLOBALS Globals
Definition: clipbrd.c:13
UINT_PTR WPARAM
Definition: windef.h:207
BOOL CloseProcess(IN LPCWSTR lpszProcessName)
Definition: process.c:192
int32_t INT_PTR
Definition: typedefs.h:64
enum _WRITE_REGISTRY WRITE_REGISTRY
int32_t INT
Definition: typedefs.h:58
WPARAM wParam
Definition: combotst.c:138
BOOL LaunchProcess(IN LPCWSTR lpszProcessName)
Definition: process.c:117
struct _REGISTRY_DATA * PREGISTRY_DATA
LPCWSTR lpszErrorOnLaunch
Definition: umandlg.h:60
REGISTRY_DATA RegData
Definition: registry.c:15
VOID ShowAboutDlg(IN HWND hDlgParent)
Definition: umandlg.c:167
BOOL bStartWithROS
Definition: umandlg.h:63
unsigned int BOOL
Definition: ntddk_ex.h:94
LPCWSTR lpszAppPath
Definition: umandlg.h:56
BOOL InitAppRegKey(IN HKEY hPredefinedKey, IN LPCWSTR lpszSubKey, OUT PHKEY phKey, OUT LPDWORD lpdwDisposition)
Definition: registry.c:51
LONG_PTR LPARAM
Definition: windef.h:208
BOOL QueryAppSettings(IN HKEY hKey, IN LPCWSTR lpszSubKey, IN LPCWSTR lpszRegValue, OUT PVOID ReturnedData, IN OUT LPDWORD lpdwSizeData)
Definition: registry.c:103
LPCWSTR lpszAppName
Definition: umandlg.h:59
HICON hIcon
Definition: umandlg.h:33
HWND hDlgCtlStart
Definition: umandlg.h:36
__wchar_t WCHAR
Definition: xmlstorage.h:180
BOOL bStartWithUtilman
Definition: umandlg.h:62
#define WINAPI
Definition: msvc.h:6
unsigned long DWORD
Definition: ntddk_ex.h:95
VOID UpdateUtilityState(IN BOOL bUtilState)
Definition: umandlg.c:208
INT_PTR APIENTRY DlgProc(IN HWND hDlg, IN UINT Msg, IN WPARAM wParam, IN LPARAM lParam)
Definition: umandlg.c:292
unsigned __int3264 UINT_PTR
Definition: mstsclib_h.h:274
BOOL bState
Definition: umandlg.h:50
LPCWSTR lpszProgram
Definition: umandlg.h:47
HWND hDlgCtlStop
Definition: umandlg.h:37
#define MAX_BUFFER
Definition: umandlg.h:26
LPCWSTR lpszOskPath
Definition: umandlg.h:74
LPCWSTR lpszHungRespondAction
Definition: umandlg.h:64
enum _WRITE_REGISTRY * PWRITE_REGISTRY
_WRITE_REGISTRY
Definition: umandlg.h:84
LPCWSTR lpszMagnifyDisplayName
Definition: umandlg.h:79
INT ListBoxRefreshContents(VOID)
Definition: umandlg.c:226
VOID GroupBoxUpdateTitle(VOID)
Definition: umandlg.c:187
struct _REGISTRY_SETTINGS REGISTRY_SETTINGS
DWORD GetProcessID(IN LPCWSTR lpszProcessName)
Definition: process.c:26
HWND hMainDlg
Definition: umandlg.h:39
unsigned int UINT
Definition: ndis.h:50
BOOL DlgInitHandler(IN HWND hDlg)
Definition: umandlg.c:97
VOID InitUtilsList(IN BOOL bInitGui)
Definition: umandlg.c:38
struct _REGISTRY_DATA REGISTRY_DATA
BOOL SaveAppSettings(IN HKEY hKey, IN LPCWSTR lpszRegValue, IN DWORD dwRegType, IN PVOID Data, IN DWORD cbSize)
Definition: registry.c:167
HWND hListDlg
Definition: umandlg.h:38
#define OUT
Definition: typedefs.h:40
uint32_t * LPDWORD
Definition: typedefs.h:59
struct _UTILMAN_STATE UTILMAN_STATE
BOOL IsProcessRunning(IN LPCWSTR lpszProcessName)
Definition: process.c:71
LPCWSTR lpszMagnifyPath
Definition: umandlg.h:78
INT iSelectedIndex
Definition: umandlg.h:35
LPARAM lParam
Definition: combotst.c:139
struct _REGISTRY_SETTINGS * PREGISTRY_SETTINGS
DWORD dwHungTimeOut
Definition: umandlg.h:65
#define APIENTRY
Definition: api.h:79
UINT_PTR iTimer
Definition: umandlg.h:34
REGISTRY_SETTINGS Settings
Definition: charmap.c:26
DWORD dwClientControlCode
Definition: umandlg.h:58