boostorg / winapi

Windows API declarations without <windows.h>, for internal Boost use.
62 stars 58 forks source link

Additions II. #14

Closed klemens-morgenstern closed 8 years ago

klemens-morgenstern commented 8 years ago

@Lastique , I hope that's more acceptable, I've incorporated most of the changes.

In order to keep you from premature pull requests, where the author just copied stuff, he tested - obviously incomplete - in another context, I've added a travis.yml. You can see the results here: res.

The constants in show_windows are related to the ShowWindow function. I actually only need the SWHide constant in STARTUPINFOA, that's why there's no actual showWindow function imported.

klemens-morgenstern commented 8 years ago

Currently testet with MSVC-14.0 and mingw-w64 5.2.0 (x32 & x64)

Lastique commented 8 years ago

Looks better. Still, there are several issues:

Regarding the Travis script, I really have no idea how to use it and if it is correct. I would prefer it to be excluded from this PR. If support for Travis is to be added in the future, it should be done in a separate PR.

klemens-morgenstern commented 8 years ago

Thanks for the feedback, I'll add that.

GetSystemDirectory_ has an underscore because of the GetSystemDirectory macro (broke the test because then it looked for GetSystemDirectoryW). I could've named it get_system_directory, but thought that would look strange next to GetCurrentProcess etc.

I'll create an PR for the Travis script. It is correct, since you can see it compile all headers - and it also failed with older versions of mine.

Lastique commented 8 years ago

GetSystemDirectory_ has an underscore because of the GetSystemDirectory macro

Ah, I see. I guess, the current naming scheme is broken then. Let it be get_system_directory.hpp then. I'll think about converting the rest in due time.

I'll create an PR for the Travis script. It is correct, since you can see it compile all headers - and it also failed with older versions of mine.

Actually, following the "Build Passing" link shows nothing but the same "Build Passing" icon on a blank page. Not sure if that's what I'm supposed to see.

klemens-morgenstern commented 8 years ago

You were supposed to see that: https://travis-ci.org/klemens-morgenstern/winapi

klemens-morgenstern commented 8 years ago

Oh btw: if you leave the pull request open, you'll see my future commits here, since I requested the pull of a whole branch. So I wouldn't need to open yet another one, rather the changes could be seen in place.

And since I will work on that at the last on the weekend, it should not become a pr-zombie.

Lastique commented 8 years ago

I'm closing the PRs in order to know when you feel the modifications are completed for the next round of review (i.e. when you create the next PR). GitHub doesn't notify about individual commits added to the PR and it certainly doesn't know when the work is ready.

klemens-morgenstern commented 8 years ago

Ah ok, that makes sense. I would've just tagged you in the comments and asked you.