I can tell you one thing, when the executive showed this to the system programmers, seconds later they all ran out the door screaming at the top of their lungs.
Man, it has been a while, but whether this function is from the windows API, it definitely has a prototype like it.
It seems a bit awkward that some functions did try to take on multiple responsibilities. But then again, they are system API. You can factor your code anyway you choose, and provide convenience classes and functions, but the OS is not responsible for the layout of your code. It only provides the functionality. If you need better programming style, you have to wrap it up.
Such function could also be an attempt to write such wrapper code. Because, sometimes you need to create a certain parameters structure, fill it and pass it to the API, and this could be used as a generic structure filler to circumvent the hassle.