-
-
Notifications
You must be signed in to change notification settings - Fork 393
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
Add partial wininet bindings. #304
Conversation
Size and alignement of structs is now checked. |
This PR will need to be updated to the winapi 0.3 new world order. #316 |
PR has been updated. The one thing I'm not sure about is that I've had to add an I mean, it's for Gopher, so I'm not sure anyone'll miss it. Well, right away; you know how people are. |
I'd prefer leaving the struct in with insufficient alignment for now, and commenting out the test, and having a fixme to fix it later. |
pub const AUTODIAL_MODE_NEVER: DWORD = 1; | ||
pub const AUTODIAL_MODE_ALWAYS: DWORD = 2; | ||
pub const AUTODIAL_MODE_NO_NETWORK_PRESENT: DWORD = 4; | ||
pub type INTERNET_STATUS_CALLBACK = Option<unsafe extern "system" fn( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We now have FN!
for this.
Updated fixes. From commit:
Note that the vtable struct still uses literal types, since there's no |
Merge conflicts and CI is failing. |
526eff6
to
ab7faaf
Compare
My bad; I think I forgot to enable features when testing the fixes I made. And then I forgot that Looks good now. I hope. |
"um-winioctl", | ||
"um-winnt", | ||
"um-winnt", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I blame git gui for this.
This also includes a single definition from winineti.h, and a list of symbols dumped from wininet.dll that *aren't* in wininet.h. Includes the wininet.dll import libs for MinGW.
Includes what should be all the types and constants from wininet.h,
and some of the functions.
Note that, unlike other header bindings, the
wininet
module is notre-exported in the root
winapi
module. This is becausewininet.h
and
winhttp.h
define the same constants/enums with different values.