ThreadSky
About ThreadSky
Log In
awakecoding.com
•
5 days ago
Got an idea why calling it with the \\?\ prefix doesn't work when LongPathsEnabled is false? That's the part I can't wrap my head around
Comments
Log in
with your Bluesky account to leave a comment
[–]
jborean.bsky.social
•
5 days ago
It should, if it doesn’t then you’ll need to understand what is calling the Win32 API and with what value.
0
reply
[–]
alovchin91.bsky.social
•
5 days ago
\\?\ should always work, regardless of the registry key. You might want to check what that native library does; maybe it strips the \\?\ prefix?
2
1
reply
[–]
alovchin91.bsky.social
•
5 days ago
It’s also weird that with LongPathsEnabled=1 it fails without the prefix.
1
1
reply
[–]
awakecoding.com
•
5 days ago
On the native side, I just have a simple wrapper that does UTF-8 to UTF-16 conversion before calling _wfsopen:
https://github.com/Devolutions/cadeau/blob/master/libxmf/XmfFile.c#L136
1
1
reply
[–]
alovchin91.bsky.social
•
5 days ago
I would usually write a simple C++ or Rust app that would directly call CreateFile with these paths, to see if it’s the API or something in between that’s misbehaving 🤔
2
reply
Posting Rules
Be respectful to others
No spam or self-promotion
Stay on topic
Follow Bluesky's terms of service
×
Reply
Post Reply
Comments