-
Notifications
You must be signed in to change notification settings - Fork 120
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
IEnumWbemClassObject::Next
hard to use
#1266
Comments
This enum is coming from the headers as is, and it looks like the enum is typed as int already, as is the |
The constants I should be able to say But if those two constants were typed The confusion may come from the fact that they're declared as old-fashioned C-style enums which are nothing more than global constants, rather than C++-style enums which are scoped. |
Ok. We can exclude the enum from the header and declare the constants manually. |
Windows.Win32.System.Wmi.WBEM_TIMEOUT_TYPE removed |
The first parameter is a timeout that you can use for an arbitrary timeout, or you can pass either
WBEM_NO_WAIT
orWBEM_INFINITE
. Unfortunately, those constants are grouped into an enum, making it hard to pass directly to this function which expects an integer. These constants should just be loose integer constants rather than an enum.The text was updated successfully, but these errors were encountered: