26
26
import com .sun .jna .LastErrorException ;
27
27
import com .sun .jna .Native ;
28
28
import com .sun .jna .Pointer ;
29
- import com .sun .jna .StringArray ;
30
29
import com .sun .jna .ptr .IntByReference ;
31
30
import com .sun .jna .ptr .PointerByReference ;
32
31
import com .sun .jna .win32 .StdCallLibrary ;
@@ -4399,13 +4398,7 @@ Pointer VirtualAllocEx(HANDLE hProcess, Pointer lpAddress, SIZE_T dwSize,
4399
4398
* to use on the Windows console.
4400
4399
* </p>
4401
4400
*
4402
- * @param LangId Language identifier for the user interface language for the thread.
4403
- *
4404
- * @return Returns the input language identifier if successful.
4405
- * If the input identifier is nonzero, the function returns that value.
4406
- * If the language identifier is 0, the function always succeeds and returns
4407
- * the identifier of the language that best supports the Windows console.
4408
- *
4401
+ * <p><strong>Remarks</strong></p>
4409
4402
* <p>
4410
4403
* When a thread is created, the thread user interface language setting is empty and the user interface for
4411
4404
* the thread is displayed in the user-selected language. This function enables the application to change
@@ -4417,6 +4410,13 @@ Pointer VirtualAllocEx(HANDLE hProcess, Pointer lpAddress, SIZE_T dwSize,
4417
4410
* a valid nonzero language identifier, the function sets a particular user interface language for the thread.
4418
4411
* </p>
4419
4412
*
4413
+ * @param LangId Language identifier for the user interface language for the thread.
4414
+ *
4415
+ * @return Returns the input language identifier if successful.
4416
+ * If the input identifier is nonzero, the function returns that value.
4417
+ * If the language identifier is 0, the function always succeeds and returns
4418
+ * the identifier of the language that best supports the Windows console.
4419
+ *
4420
4420
* @see <a href="https://learn.microsoft.com/en-us/windows/win32/api/winnls/nf-winnls-setthreaduilanguage">SetThreadUILanguage</a>
4421
4421
*/
4422
4422
int SetThreadUILanguage (int LangId );
@@ -4446,9 +4446,9 @@ Pointer VirtualAllocEx(HANDLE hProcess, Pointer lpAddress, SIZE_T dwSize,
4446
4446
* @param pulNumLanguages Pointer to the number of languages that the function has set in the thread preferred UI languages list.
4447
4447
* When the application specifies one of the filtering flags, the function must set this parameter to NULL.
4448
4448
*
4449
- * @return Returns TRUE if the function succeeds or FALSE otherwise.
4449
+ * @return Returns {@code true} if the function succeeds or {@code false} otherwise.
4450
4450
*/
4451
- boolean SetThreadPreferredUILanguages (DWORD dwFlags , StringArray pwszLanguagesBuffer , ULONGByReference pulNumLanguages );
4451
+ boolean SetThreadPreferredUILanguages (int dwFlags , String [] pwszLanguagesBuffer , IntByReference pulNumLanguages );
4452
4452
4453
4453
/**
4454
4454
* Returns the language identifier of the first user interface language for the current thread.
0 commit comments