News for hackers. Stuff that matters.
Re:Windows drive letters are not limited to A-Z by thrtythreeforty on Sunday November 30, 2025 @09:38AM (#46096988)
The cursedness of "€:\" is awesome. It's amazing how much more flexible the NT kernel is vs what's exposed to the user.
Re:Windows drive letters are not limited to A-Z by jeffbee on Sunday November 30, 2025 @12:08PM (#46098412)
Yeah only the DOS façade of Windows NT is well known. Under that skin lurks some pretty wild late-1980s concepts. One of the core things to understand is that a lot of the features are based on a reverse map of GUIDs to various actions, and resolution of these map entries pervades the UI. That's why you can put {hexspew} as the name of a shortcut on the Windows desktop and have it magically become a deep link to some feature that Windows doesn't otherwise let you create a shortcut to, and also why you can just add things to the control panel which doesn't seem like it would be an intentional feature. And these actions can be named symbols inside DLLs, so they can do literally anything the OS is capable of doing. This is also why Windows has always been ground zero for malware.
Re:Windows drive letters are not limited to A-Z by pixl97 on Sunday November 30, 2025 @01:04PM (#46098901)
>so they can do literally anything the OS is capable of doing

Yea, over the years someone thought of something they wanted to do and then did it without a systematic consideration of what that level of power meant, especially as multi-user network connectivity and untrusted data became the norm.

Re:Windows drive letters are not limited to A-Z by p_ing on Sunday November 30, 2025 @01:44PM (#46099203)
Those weren't a consideration when the NT OS/2 Design Workbook was being written.
Re:Windows drive letters are not limited to A-Z by sedatk on Sunday November 30, 2025 @02:13PM (#46099461)
Those GUIDs aren't related to NT kernel but Windows Explorer and its COM-based component system. They were introduced with Windows 95, IIRC.
Re:Windows drive letters are not limited to A-Z by Wonkey on Sunday November 30, 2025 @03:11PM (#46099959)
That sounds fun. Do you have a link or and example “hexspew”
Re:Windows drive letters are not limited to A-Z by bialpio on Sunday November 30, 2025 @04:23PM (#46100561)
Re:Windows drive letters are not limited to A-Z by Dwedit on Sunday November 30, 2025 @12:55PM (#46098823)
Very cursed, and the drive letter won't even be accessible under certain codepages.
Re:Windows drive letters are not limited to A-Z by jeroenhd on Sunday November 30, 2025 @02:10PM (#46099437)
As far as I can tell, the drive will still be accessible, it'll just require the character equivalent to € on the other code page as a drive letter.

As long as your code page doesn't have gaps, that should be doable. It'll definitely confuse the hell out of anyone who doesn't know about this setup, though!

Re:Windows drive letters are not limited to A-Z by Dwedit on Sunday November 30, 2025 @06:45PM (#46101674)
I don't think it works that way, the actual drive letter is a UTF-16 Unicode path. The application must be able to provide an "ANSI" string that encodes to that UTF-16 value if it uses an "ANSI" function to open the file. It's not like 8-bit systems where they just want the same 8-bit value.
Re:Windows drive letters are not limited to A-Z by moffkalast on Sunday November 30, 2025 @05:09PM (#46100931)
It's not flexible enough until we can have a joy face emoji as the drive letter.
Re:Windows drive letters are not limited to A-Z by nolok on Friday December 05, 2025 @04:45AM (#46159101)
I'm pretty sure the kernel would be ok with that, from it's point of view joy face emoji or korean jamo or japanese kenji are all the same

Explorer, not so much ...