-
Notifications
You must be signed in to change notification settings - Fork 511
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
Adding more Variant types #2983
Comments
Happy to review additions. I assume you mean |
We also need |
|
Excellent! |
|
To add to this request - I have to access |
@kennykerr Did you find time to look at this again? If not, would you be willing to take a look at a redux of my previous PR? The addition of the desired APIs should not exactly need to come necessarily after the wanted refactor, but can be achieved in parallel, no? |
Sorry I've not had any time to return to this yet. I did have a quick look at your old PR and I'm not sure that's the right sustainable approach in general. We probably need a generic |
But then again, this and that could be done separately, no? For example, implementing the variants first would mean having |
I'd just rather not rush into a solution. If you're blocked, I'd suggest you write a helper function to cover the missing functionality for the time being. |
I finally settled on moving the |
Suggestion
Hey,
Using
windows-rs 0.52.0
I had my ownVariant
helper.In
windows-rs 0.54.0
I see thatwindows::core::Variant
was added, which is nice.With that change, all
Windows::Win32::System::Variant::VARIANT*
where removed (which completely breaks myVariant
implementation).I would be happy to migrate to
windows::core::Variant
but it is missing types support that I used:fn null() -> Variant
to construct aVT_NULL
variantTryFrom<&[String]> for Variant
to constructVT_ARRAY_BSTR
variantTryFrom<&[u8]> for Variant
to constructVT_ARRAY_UI1
variantIf I can, I'm going to have a try at it.
The text was updated successfully, but these errors were encountered: