38 WCHAR *pszSeparator =
L":";
41 pszToken =
wcstok(szField, pszSeparator);
68 DWORD dwDefaultLocaleId;
69 DWORD dwDefaultLayoutId;
75 pCurrentLocale !=
NULL;
76 pCurrentLocale = pCurrentLocale->
pNext)
81 if (pCurrentLocale->
dwId == dwDefaultLocaleId)
90 pCurrentLayout !=
NULL;
91 pCurrentLayout = pCurrentLayout->
pNext)
96 if (pCurrentLayout->
dwKLID == dwDefaultLayoutId)
102 if (dwDefaultLayoutId == 0)
146 if (pCurrentLocale !=
NULL)
156 for (iIndex = 0; iIndex < iCount; iIndex++)
162 if (pCurrentLayout !=
NULL && pCurrentLayout->
dwKLID == dwLayoutId)
static VOID OnCommandAddDialog(HWND hwndDlg, WPARAM wParam)
INT_PTR CALLBACK AddDialogProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
static VOID OnInitAddDialog(HWND hwndDlg)
static DWORD GetDefaultLayoutForLocale(DWORD dwLocaleId)
#define INVALID_HANDLE_VALUE
LCID WINAPI GetSystemDefaultLCID(void)
HINF WINAPI SetupOpenInfFileW(PCWSTR name, PCWSTR class, DWORD style, UINT *error)
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
LAYOUT_LIST_NODE * LayoutList_GetFirst(VOID)
LOCALE_LIST_NODE * LocaleList_GetFirst(VOID)
_Check_return_ _CRTIMP wchar_t *__cdecl wcstok(_Inout_opt_z_ wchar_t *_Str, _In_z_ const wchar_t *_Delim)
STRSAFEAPI StringCchPrintfW(STRSAFE_LPWSTR pszDest, size_t cchDest, STRSAFE_LPCWSTR pszFormat,...)
struct _LAYOUT_LIST_NODE * pNext
struct _LOCALE_LIST_NODE * pNext
BOOL WINAPI SetupGetStringFieldW(IN PINFCONTEXT Context, IN ULONG FieldIndex, OUT PWSTR ReturnBuffer, IN ULONG ReturnBufferSize, OUT PULONG RequiredSize)
BOOL WINAPI SetupFindFirstLineW(IN HINF InfHandle, IN PCWSTR Section, IN PCWSTR Key, IN OUT PINFCONTEXT Context)
ULONG WINAPI SetupGetFieldCount(IN PINFCONTEXT Context)
VOID WINAPI SetupCloseInfFile(IN HINF InfHandle)
#define ComboBox_SetCurSel(hwndCtl, index)
#define ComboBox_GetItemData(hwndCtl, index)
#define ComboBox_GetCount(hwndCtl)
#define ComboBox_GetCurSel(hwndCtl)
#define ComboBox_AddString(hwndCtl, lpsz)
#define ComboBox_SetItemData(hwndCtl, index, data)
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
BOOL WINAPI EndDialog(_In_ HWND, _In_ INT_PTR)