Skip to content

Namespace of IsCharLowerW seems wrong #2030

@nooriro

Description

@nooriro

Summary

user32.dll exports 8 functions that start with "IsChar".

**********************************************************************
** Visual Studio 2022 Developer Command Prompt v17.11.5
** Copyright (c) 2022 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x64'

C:\Program Files\Microsoft Visual Studio\2022\Community>cd /d %SystemRoot%\System32

C:\Windows\System32>dumpbin /exports user32.dll | findstr IsChar
       2057  225 00083B60 IsCharAlphaA
       2058  226 00083B80 IsCharAlphaNumericA
       2059  227 00033150 IsCharAlphaNumericW
       2060  228 00083BA0 IsCharAlphaW
       2061  229 00083BC0 IsCharLowerA
       2062  22A 00083BE0 IsCharLowerW
       2063  22B 00083C00 IsCharUpperA
       2064  22C 00083C20 IsCharUpperW

C:\Windows\System32>

All these functions except IsCharLowerW() are contained in the windows_sys::Win32::UI::WindowsAndMessaging module.
https://github.com/microsoft/windows-rs/blob/d41381de6f3b10f008b30d81e35f046124ccb75d/crates/libs/sys/src/Windows/Win32/UI/WindowsAndMessaging/mod.rs#L237-L243

But IsCharLowerW() is solely contained in the windows_sys::Win32::UI::Controls module.
https://github.com/microsoft/windows-rs/blob/d41381de6f3b10f008b30d81e35f046124ccb75d/crates/libs/sys/src/Windows/Win32/UI/Controls/mod.rs#L236

Is this intended? If not, IsCharLowerW() should probably be contained in the windows_sys::Win32::UI::WindowsAndMessaging module like the other functions.

Crate manifest

Crate code

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions