> For the complete documentation index, see [llms.txt](https://aldertlake.gitbook.io/windows-native-toolkit/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://aldertlake.gitbook.io/windows-native-toolkit/miscellaneous/keyboard-layouts.md).

# Keyboard Layouts

Below is a list of common keyboard layout codes that the `GetCurrentKeyboardLayout` function can return on Windows, along with their meanings. These codes represent the active input locale identifier (KLID) for the current thread.

| Layout Code | Language/Region          |
| ----------- | ------------------------ |
| 00000409    | English (United States)  |
| 00000809    | English (United Kingdom) |
| 0000040C    | French (France)          |
| 00000407    | German (Germany)         |
| 00000410    | Italian (Italy)          |
| 0000040A    | Spanish (Spain)          |
| 00000411    | Japanese                 |
| 00000412    | Korean                   |
| 00000404    | Chinese (Taiwan)         |
| 00000804    | Chinese (PRC)            |
| 00000405    | Czech                    |
| 00000406    | Danish                   |
| 00000413    | Dutch (Netherlands)      |
| 0000040B    | Finnish                  |
| 00000408    | Greek                    |
| 0000040E    | Hungarian                |
| 00000414    | Norwegian (Bokmål)       |
| 00000415    | Polish                   |
| 00000416    | Portuguese (Brazil)      |
| 00000816    | Portuguese (Portugal)    |
| 00000419    | Russian                  |
| 0000041D    | Swedish                  |
| 0000041F    | Turkish                  |

### Variant Keyboard Layouts

Some languages have variant layouts with non-zero variant identifiers. Here are a few examples:

| Layout Code | Language/Region             |
| ----------- | --------------------------- |
| 00010409    | United States-International |
| 00020409    | United States-Dvorak        |
| 0001040C    | French (Belgium)            |
| 00020408    | Greek Latin                 |
| 00010407    | German (IBM)                |
| 0001040A    | Spanish (Latin America)     |

### Notes

* **Standard Layouts**: Codes like "00000409" represent the default layout for a language.
* **Variant Layouts**: Codes like "00010409" indicate alternative layouts for the same language.
* **Dynamic Output**: The function returns the active layout code, which depends on the user’s current settings and can change (e.g., via Alt+Shift).
* For a complete list, refer to [Microsoft’s Keyboard Layout Documentation](https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/windows-language-pack-default-values?view=windows-11).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://aldertlake.gitbook.io/windows-native-toolkit/miscellaneous/keyboard-layouts.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
