You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For NtCreateFile and NtOpenFile parameters, mutable pointers (*mut) are used where the SAL annotation is IN only (*const). This is not particularly essential but it is nice to have (it's likely also true of other functions). (fixed in )
Summary of current issues with updating the standard library to the new windows-bindgen:
PUNICODE_STRINGaliases to*mut LSA_UNICODE_STRINGinstead of*mut UNICODE_STRING(fixed inwindows-clangavoid macro expansion #4759)FILE_DISPOSITION_INFOsingle field is calledDeleteFileAinstead ofDeleteFile(fixed inwindows-clangavoid macro expansion #4759)INVALID_SOCKETis au32onx86andu64otherwise on 64-bit. The type would be better asusize. (fixed inwindows-clangavoid macro expansion #4759)NtCreateFileandNtOpenFileparameters, mutable pointers (*mut) are used where the SAL annotation isINonly (*const). This is not particularly essential but it is nice to have (it's likely also true of other functions). (fixed in )NTSTATUScodes are sometimesu32instead ofNTSTATUS, SeeSTATUS_PENDING,STATUS_INVALID_PARAMETER,STATUS_INVALID_HANDLE(fixed inwindows-clangSTATUS_*constants now come fromntstatus.hand are correctly typed asNTSTATUS#4760)\r\nline endings whereas before it was\n(fixed inwindows-bindgennow explicitly defaults tonewline_style=Unix#4761)FARPROCis defined to returni32onx86andisizeotherwise. It would be better if this was alwaysisize. (fixed inwindows-clangnormalize unmerged scalar signatures #4763)AF_constants should be of typeADDRESS_FAMILY(e.g.AF_INET,AF_UNIX, etc)i32values need to be converted tou32to use them in functions or structures, seewindows-bindgen(trunk) /SW_NORMAL/u32vsi32#4725Working as intended
_PROC_THREAD_ATTRIBUTE_LISThas a leading underscore (Problems with the newwindows-bindgenin the rust standard library #4758 (comment))IPPROTOconstants arei32instead ofIPPROTO. SeeIPPROTO_IPandIPPROTO_RM(Problems with the newwindows-bindgenin the rust standard library #4758 (comment))Experimental PR to the rust-lang/rust repo: rust-lang/rust#160185