-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate to windows[-sys] crate #40
Comments
I'll take a look at this today or tomorrow |
I apologise in advance for some of the code quality; this was implemented from necessity - I think its broadly fine and there is room to tidy it up, isolate the unsafe more etc. Just shout out if anything is unobvious (for example why X function rather than Y which is supported). And you can find me on the rust (https://discord.gg/rust-lang) discord as |
https://github.com/microsoft/windows-rs/issues/2333 Is there a reason we couldn't just create a safe shim over |
RtlUnicodeString doesn't handle long strings correctly, ..Ex does. Compare https://www.geoffchappell.com/studies/windows/km/ntoskrnl/api/rtl/string/initunicodestringex.htm and https://www.geoffchappell.com/studies/windows/km/ntoskrnl/api/rtl/string/initunicodestring.htm |
(That said, I have no objection to using the non-Ex version, but we'll want to add the safety belts ourselves: since we're dealing with considerable unsafe code, I feel it is important to be as safe as possible ourselves). |
PR up at #42 |
Thank you, I've had a quick look. I'm ok in principle with having local definitions as these things don't move super fast. OTOH the windows crate folk have been decently quick about the other bugs I've filed in the past, so perhaps lets get all the bugs filed and give them a week, and then if its still some undefined future time, we can merge and carry the local definitions. |
Sounds good to me! |
This is partially done, but a little stuck on:
@Xaeroxe offered in XAMPPRocky/remove_dir_all#42 to help out; this is a call for that help :)
The text was updated successfully, but these errors were encountered: