15#define MAX_VALUE_NAME 16383
81 DWORD dwIndex, dwType;
88 WCHAR szValueName[
sizeof(
"65535")];
93 L"System\\CurrentControlSet\\Control\\Nls\\CodePage",
106 for (dwIndex = 0, cchValueName =
ARRAYSIZE(szValueName);
108 szValueName, &cchValueName,
111 ++dwIndex, cchValueName =
ARRAYSIZE(szValueName))
135 if (CodePage == 0)
continue;
161 if (pConInfo->CursorSize <= 25)
169 else if (pConInfo->CursorSize <= 50)
199 if (pConInfo->FullScreen)
332 sizeBuff =
min(
max(sizeBuff, 1), 999);
343 numBuff =
min(
max(numBuff, 1), 999);
static HWND hWndList[5+1]
#define RegCloseKey(hKey)
PCONSOLE_STATE_INFO ConInfo
VOID ApplyConsoleInfo(HWND hwndDlg)
UINT BisectListSortedByValue(IN PLIST_CTL ListCtl, IN ULONG_PTR Value, OUT PUINT pValueItem OPTIONAL, IN BOOL BisectRightOrLeft)
#define ResetFontPreview(Preview)
static UINT CurrentCodePage
static VOID AddCodePage(IN PLIST_CTL ListCtl, IN UINT CodePage)
static INT List_GetCount(IN PLIST_CTL ListCtl)
static VOID BuildCodePageList(IN HWND hDlg, IN UINT CurrentCodePage)
static VOID UpdateDialogElements(IN HWND hDlg, IN PCONSOLE_STATE_INFO pConInfo)
static ULONG_PTR List_GetData(IN PLIST_CTL ListCtl, IN INT Index)
INT_PTR CALLBACK OptionsProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
#define IDC_EDIT_NUM_BUFFER
#define IDC_CHECK_INSERT_MODE
#define IDC_RADIO_MEDIUM_CURSOR
#define IDC_EDIT_BUFFER_SIZE
#define IDC_UPDOWN_NUM_BUFFER
#define IDC_UPDOWN_BUFFER_SIZE
#define IDC_CHECK_QUICK_EDIT
#define IDC_RADIO_DISPLAY_WINDOW
#define IDC_RADIO_DISPLAY_FULL
#define IDC_CHECK_DISCARD_DUPLICATES
#define IDC_RADIO_SMALL_CURSOR
#define IDC_RADIO_LARGE_CURSOR
LONG WINAPI RegOpenKeyExW(HKEY hKey, LPCWSTR lpSubKey, DWORD ulOptions, REGSAM samDesired, PHKEY phkResult)
LONG WINAPI RegEnumValueW(_In_ HKEY hKey, _In_ DWORD index, _Out_ LPWSTR value, _Inout_ PDWORD val_count, _Reserved_ PDWORD reserved, _Out_opt_ PDWORD type, _Out_opt_ LPBYTE data, _Inout_opt_ PDWORD count)
#define ERROR_NO_MORE_ITEMS
BOOL WINAPI IsValidCodePage(UINT codepage)
BOOL WINAPI GetCPInfoExW(UINT codepage, DWORD dwFlags, LPCPINFOEXW cpinfo)
_Check_return_ _CRTIMP long __cdecl _wtol(_In_z_ const wchar_t *_Str)
#define PropSheet_Changed(d, w)
struct _PSHNOTIFY * LPPSHNOTIFY
struct _NM_UPDOWN * LPNMUPDOWN
STRSAFEAPI StringCchPrintfW(STRSAFE_LPWSTR pszDest, size_t cchDest, STRSAFE_LPCWSTR pszFormat,...)
ULONG NumberOfHistoryBuffers
WCHAR CodePageName[MAX_PATH]
_In_ WDFCOLLECTION _In_ ULONG Index
#define HKEY_LOCAL_MACHINE
BOOL WINAPI CheckDlgButton(_In_ HWND, _In_ int, _In_ UINT)
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
LRESULT WINAPI SendDlgItemMessageW(_In_ HWND, _In_ int, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
UINT WINAPI IsDlgButtonChecked(_In_ HWND, _In_ int)
BOOL WINAPI SetDlgItemInt(_In_ HWND, _In_ int, _In_ UINT, _In_ BOOL)
HWND WINAPI GetParent(_In_ HWND)
BOOL WINAPI CheckRadioButton(_In_ HWND, _In_ int, _In_ int, _In_ int)
UINT WINAPI GetDlgItemInt(_In_ HWND, _In_ int, _Out_opt_ PBOOL, _In_ BOOL)
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)