In C++ one can convert from PROPVARIANT to LONGLONG through the PropVariantToInt64 function. In Windows Store Apps this is not available. Does anybody know how to do this conversion?
Thanks
Ronald
The PROPVARIANT is just a union. You don't need helper functions to read it, just check the type and read the appropriate field. Something like:
if (propVal.vt == VT_I8) { return propVal.hVal; }