15#define FIVE_MINS_IN_MS (5 * 60 * 1000)
35 for (
i = 0;
i < 4;
i++)
44 if (pGlobalData->serialKeys.lpszActivePort && pGlobalData->serialKeys.lpszActivePort[0])
46 i = pGlobalData->serialKeys.lpszActivePort[3] -
'1';
54 _tcscpy(pGlobalData->serialKeys.lpszActivePort,
_T(
"COM1"));
69 if (pGlobalData->serialKeys.iBaudRate ==
nBaudArray[
i])
82 _stprintf(pGlobalData->serialKeys.lpszActivePort,
_T(
"COM%d"),
i);
114 for (
i = 0;
i < 6;
i++)
116 _stprintf(szBuffer,
_T(
"%u %s"), (
i + 1) * 5, szMinutes);
143 _T(
"Control Panel\\Accessibility"),
155 _T(
"Warning Sounds"),
162 _T(
"Sound On Activation"),
189 if (pGlobalData ==
NULL)
199 pGlobalData->accessTimeout.iTimeOutMSec =
max(
FIVE_MINS_IN_MS, pGlobalData->accessTimeout.iTimeOutMSec);
200 iCurSel = (pGlobalData->accessTimeout.iTimeOutMSec /
FIVE_MINS_IN_MS) - 1;
245 pGlobalData->bWarningSounds = !pGlobalData->bWarningSounds;
250 pGlobalData->bSoundOnActivation = !pGlobalData->bSoundOnActivation;
struct _GLOBAL_DATA * PGLOBAL_DATA
#define RegCloseKey(hKey)
INT_PTR CALLBACK SerialKeysDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
static VOID FillResetComboBox(HWND hwnd)
INT_PTR CALLBACK GeneralPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
static VOID WriteGlobalData(PGLOBAL_DATA pGlobalData)
static UINT nBaudArray[BAUDTICKS]
#define IDC_ADMIN_USERS_BOX
#define IDC_NOTIFICATION_MESSAGE
#define IDC_ADMIN_LOGON_BOX
#define IDD_SERIALKEYSOPTIONS
#define IDC_SERIAL_BUTTON
#define IDC_SERIAL_PORT_COMBO
#define IDC_NOTIFICATION_SOUND
#define IDC_SERIAL_BAUD_COMBO
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
#define REG_OPTION_NON_VOLATILE
#define PropSheet_Changed(d, w)
struct _PSHNOTIFY * LPPSHNOTIFY
ACCESSTIMEOUT accessTimeout
#define HKEY_CURRENT_USER
BOOL WINAPI CheckDlgButton(_In_ HWND, _In_ int, _In_ UINT)
#define SPI_SETACCESSTIMEOUT
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
#define SPIF_UPDATEINIFILE
BOOL WINAPI EnableWindow(_In_ HWND, _In_ BOOL)
HWND WINAPI GetParent(_In_ HWND)
#define SERKF_SERIALKEYSON
#define SystemParametersInfo
#define SendDlgItemMessage
BOOL WINAPI EndDialog(_In_ HWND, _In_ INT_PTR)