Skip to content

ntdll RtlpGetUserOrMachineUILanguage4NLS definition #2568

@440bx

Description

@440bx

the definition of RtlpGetUserOrMachineUILanguage4NLS seems to still be missing.

The definition of RtlpGetUserOrMachineUILanguage4NLS (in Pascal) is:

function RtlpGetUserOrMachineUILanguage4NLS
             (
              { _in_    } InUserPreferred  : boolean; { true = user, false = machine         }
              { _out_   } OutBuffer        : pointer;
              { _inout_ } InoutBufferSize  : PDWORD
             )
         : NTSTATUS; stdcall; external ntdll;

Parameter description:

{ true -> returns the value under HKEY_CURRENT_USER\Control Panel\Desktop\PreferredUILanguages }
{ false -> returns the value under HKEY_CURRENT_USER\Control Panel\Desktop\MuiCached\MachinePreferredUILanguages }

{ returns C0000034 if the registry key is not found }

{ the size returned includes the null terminator(s) }

{ NOTE: multiple widechar strings may be returned in the buffer }

{ IMPORTANT: the first parameter is a true boolean, the code compares it }
{ against the numeral 1 (not simply for not zero) }

HTH.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions