How to set up a C++/WinRT class that accepts Win32 structs as method parameters

145 Views Asked by At

I'm creating a desktop C++/WinRT project, and I'd like to declare a runtime class, using MIDL 3.0, that accepts certain Win32 types as method parameters. For example, structs like PROPERTYKEY.

This isn't possible, however, as those aren't MIDL 3.0-compatible types, and from what I understand, they can't be packaged up as objects using box_value either.

I've gone through the documentation and searched at length, but I can't seem to locate a solution. Any help is appreciated.

0

There are 0 best solutions below