Process Hacker
options.c
Go to the documentation of this file.
1 /*
2  * Process Hacker Network Tools -
3  * options dialog
4  *
5  * Copyright (C) 2010-2013 wj32
6  * Copyright (C) 2012-2013 dmex
7  *
8  * This file is part of Process Hacker.
9  *
10  * Process Hacker is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation, either version 3 of the License, or
13  * (at your option) any later version.
14  *
15  * Process Hacker is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with Process Hacker. If not, see <http://www.gnu.org/licenses/>.
22  */
23 
24 #include "nettools.h"
25 
26 INT_PTR CALLBACK OptionsDlgProc(
27  _In_ HWND hwndDlg,
28  _In_ UINT uMsg,
29  _In_ WPARAM wParam,
30  _In_ LPARAM lParam
31  )
32 {
33  switch (uMsg)
34  {
35  case WM_INITDIALOG:
36  {
38  }
39  break;
40  case WM_COMMAND:
41  {
42  switch (LOWORD(wParam))
43  {
44  case IDCANCEL:
45  EndDialog(hwndDlg, IDCANCEL);
46  break;
47  case IDOK:
48  {
49  ULONG maxPingTimeout = GetDlgItemInt(hwndDlg, IDC_MAXTIMEOUTTEXT, NULL, FALSE);
50 
52 
53  EndDialog(hwndDlg, IDOK);
54  }
55  break;
56  }
57  }
58  break;
59  }
60 
61  return FALSE;
62 }