___crtGetStringTypeW
function · crt · host
- Address
0x413ed3· 453 bytes, up to0x414097- Signature
int32_t __cdecl (uint32_t type, const wchar_t *src, int32_t count, uint16_t *out, int32_t code_page, int32_t lcid)- Meaning
- Answers characters' types by GetStringTypeW, or by GetStringTypeA on converted bytes without it
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- crt/ctype#wide-character-types
Finding: Wide character types in crt: characters
___crtGetStringTypeW(type, src, n, out, code_page, lcid) decides on its first call whether the
system has GetStringTypeW, by calling it on a one-unit empty string. When it has, each call is
GetStringTypeW(type, src, n, out). When it has not and GetStringTypeA answers, it converts
the units to bytes in the code page, the runtime's by default, asks GetStringTypeA for the
locale, the locale word by default, and copies the n answers out only when the call wrote
exactly n; otherwise, or when neither call works, it answers 0. _iswctype asks it for one
unit's CT_CTYPE1 bits.
The derivation is in the doc.
Callers 2
Callees 3
- __alloca_probe crt
- _memset crt
- 0x4100f0 crt
Calls and jumps by a bare address, from tables/calls.tsv.