Service = (ENUM_SERVICE_STATUS_PROCESS *)item.lParam;\r
\r
/* open the registry key for the service */\r
- _sntprintf(buf, 300, Path, Service->lpServiceName);\r
+ _sntprintf(buf, sizeof(buf) / sizeof(TCHAR), Path, Service->lpServiceName);\r
RegOpenKeyEx(HKEY_LOCAL_MACHINE,\r
buf,\r
0,\r
\r
/* set the service name */\r
DlgInfo.lpServiceName = Service->lpServiceName;\r
- SendDlgItemMessageW(hwndDlg, IDC_SERV_NAME, WM_SETTEXT, 0, (LPARAM)DlgInfo.lpServiceName);\r
+ SendDlgItemMessage(hwndDlg, IDC_SERV_NAME, WM_SETTEXT, 0, (\r
+ LPARAM)DlgInfo.lpServiceName);\r
\r
\r
/* set the display name */\r
DlgInfo.lpDisplayName = Service->lpDisplayName;\r
- SendDlgItemMessageW(hwndDlg, IDC_DISP_NAME, WM_SETTEXT, 0, (LPARAM)DlgInfo.lpDisplayName);\r
+ SendDlgItemMessage(hwndDlg, IDC_DISP_NAME, WM_SETTEXT, 0,\r
+ (LPARAM)DlgInfo.lpDisplayName);\r
\r
\r
/* set the description */\r
if (GetDescription(hKey, &DlgInfo.lpDescription))\r
- SendDlgItemMessageW(hwndDlg, IDC_DESCRIPTION, WM_SETTEXT, 0, (LPARAM)DlgInfo.lpDescription);\r
+ SendDlgItemMessage(hwndDlg, IDC_DESCRIPTION, WM_SETTEXT, 0,\r
+ (LPARAM)DlgInfo.lpDescription);\r
\r
\r
/* FIXME: needs implementing. Use code base at bottom of query.c */\r
/* set the executable path */\r
if (GetExecutablePath(&DlgInfo.lpPathToExe))\r
- SendDlgItemMessageW(hwndDlg, IDC_EXEPATH, WM_SETTEXT, 0, (LPARAM)DlgInfo.lpPathToExe);\r
+ SendDlgItemMessage(hwndDlg, IDC_EXEPATH, WM_SETTEXT, 0, (LPARAM)DlgInfo.lpPathToExe);\r
\r
\r
/* set startup type */\r
{\r
case WM_INITDIALOG:\r
GetDlgInfo(hwndDlg);\r
-\r
break;\r
\r
case WM_COMMAND:\r
switch(LOWORD(wParam))\r
{\r
case IDC_START:\r
+ SendMessage(hMainWnd, WM_COMMAND, ID_START, 0);\r
break;\r
\r
case IDC_STOP:\r
+ SendMessage(hMainWnd, WM_COMMAND, ID_STOP, 0);\r
+ break;\r
+\r
+ case IDC_PAUSE:\r
+ SendMessage(hMainWnd, WM_COMMAND, ID_PAUSE, 0);\r
+ break;\r
\r
+ case IDC_RESUME:\r
+ SendMessage(hMainWnd, WM_COMMAND, ID_RESUME, 0);\r
break;\r
}\r
break;\r