win-variant is a crate to improve the ergonomics of working with VARIANTS from winapi.
The crate uses enums and conversion traits to allow for modern rust usage as well as provides utilities to easily free VARIANTS correctly.
VariantArg is a type to simplify the conversion of rust types into variants that are used by windows APIs. Make sure to use the free_variant(s) functions if you convert the VariantArg to VARIANT.
VariantResult is a tyoe that can be converted from VARIANT to automatically convert the VARIANT value to a rust type that is easier to work with. The VARIANT can be dropped after the conversion as the data is copied into the VariantResult.
free_variant is a utility to properly free the allocated resources of a variant.
free_variants is a utility to properly free the allocated resources of variants.