示例#1
0
/*
 * @implemented
 */
NTSTATUS
NTAPI
NtSetDefaultUILanguage(IN LANGID LanguageId)
{
    NTSTATUS Status;
    PAGED_CODE();

    /* Check if the caller specified a language id */
    if (LanguageId)
    {
        /* Set the pending MUI language id */
        Status = ExpSetCurrentUserUILanguage(L"MUILanguagePending", LanguageId);
    }
    else
    {
        /* Otherwise get the pending MUI language id */
        Status = ExpGetCurrentUserUILanguage(L"MUILanguagePending", &LanguageId);
        if (!NT_SUCCESS(Status))
        {
            return Status;
        }

        /* And apply it as actual */
        Status = ExpSetCurrentUserUILanguage(L"MultiUILanguageId", LanguageId);
    }

    return Status;
}
示例#2
0
文件: locale.c 项目: killvxk/NT_OS
/*
 * @implemented
 */
NTSTATUS
NTAPI
NtSetDefaultUILanguage(IN LANGID LanguageId)
{
    PAGED_CODE();

    /* Check if we don't have a default yet */
    if (!LanguageId)
    {
        /* FIXME */
        DPRINT1("TODO\n");
        ASSERT(FALSE);
    }

    /* Otherwise, call the internal routine */
    return ExpSetCurrentUserUILanguage(L"MUILanguagePending", LanguageId);
}